UserAgent-Spy is a WordPress plugin which displays the user’s Operative System and Web Browser in the comments. It shows a message with an icon of the browser and O.S. You can customize the way the operative system and the browser are displayed, with text and icons, just icons, and where to display it. More customization could come soon.
It uses the comment->agent property to access the UserAgent string, and through a series of regular expresions, detects the O.S. and browser.
The development has been moved to GitHub. Please make feature requests, bug reports or just fork and do a pull request on new code through Github. Your feedback is very important, new features have been added by request, so if there’s something you would like to see in UA-Spy, leave a comment, and I’ll see what I can do.
Images created with The Gimp – http://www.gimp.org/
- Detects most popular web browsers and Operative Systems (It’s a work in progress, many more browsers/o.s. ’s to come)
- Shows browser icon, name, and a link to the browser’s homepage (this will be customizable in future versions).
- Shows browser/os in the comments management page (unless using “custom” option).
- Customizable, has its own Options Page where you can change the size of the browser/o.s. icon, and where you want it to be displayed.
- Published under GPLv3
Some of you may compare this to another well-known plugin named browsersniff. UserAgent-Spy is written completelly from scratch, with several improvements over browsersniff:
- Easy standard installation, just upload to wp-plugins and activate it.
- Customizable options.
- No basic knowledge of PHP or editing WordPress templates required
- Published under GPLv3.
No questions yet. Got any question?
- Bugfix with device image always showing even when no device detected.
- Added a bunch of Samsung devices, Sony PlayStation 3, PSP, Vita.
- Added WebKit detection.
- Apple devices iOS version.
- Added 64 bits differentiation.
- Retook development after a long while. Moving it to github.
- Renamed variables to include uas prefix.
- Refactored all the code, documented some more, improved here and there.
- Now detects Apple devices, BlackBerry and HTC. More on the way 🙂
- Detects PCLinuxOS.
- Added vBSEO (vBulletin SEO plugin) detection.
- Added rel=nofollow to links – Dedicado a Diego NadieDuerme.com.
- Added Linux Mint.
- Added: ArchLinux, Mandriva, DragonFly BSD, Edubuntu, MovableType, Nintendo DS, Playstation, Wii, Chrome OS.
- Fixed bug, added pre 2.6 compatibility
- Added: Android, Laconica new name.
- Small fix
- Added laconica trackbacks and Venenux GNU/Linux detection.
- Validated readme.txt
- Fixed Swiftfox detection error, where image wouldn’t be displayed.
- Added BonEcho, fixed some minor stuff on code. Ready to release version 1.0!
- Added web browsers: Fennec, Swiftfox, K-Meleon, Shiira, Midori, Sunrise, Wyzo, Songbird, Dillo, Omniweb.
- Rewrote entire code. Now easier to manage and add new stuff. Focused on adding devices detection such as cellphones and other internet-able platforms. Code is way more efficient, I think…
- Fixed options page for WordPress 2.7 (register options and stuff)
- Added CentOs operative system.
- If all goes well, version 1.0 final will be released soon :D.
- Added SymbianOS
- Fixed some path bugs
- Added null.png images for undetected OS
- Added trackback detection for WordPress, Pligg, Meneame, and some more. Some new options are included in the Admin page.
- Fixed bug with OpenId plugin, thanks to Gonzalo (http://gon.sociallinux.org/)
- Added browser version detection.
- Added Windows versions: Windows 7, Vista, XP, 2000, ME, NT 4, NT, 98, CE – Dedicated to www.elfrancotirador.cl
- Rewrote IE version detection (sorry Albertux 😛 ).
- Added browsers: Kazehakase, Sleipnir.
- Added Gran Paradiso.
- Added Zenwalk GNU/Linux.
- Fixed missing iPhone image on 24×24, added new cool one.
- Finally fixed (hopefully) Google Chrome’s detection bug. Unhappy word to use, “chrome”…
- Fixed even dumber bug, caused by the rush of getting last bug fixed…
- Fixed dumb bug which broke the whole plugin. Thanks to email@example.com.
- Fixed bug where Google Chrome was detected when ‘chrome’ was in the UserAgent string.
- Added IE version detection by Albertux (http://albertux.ayalasoft.com/)
- Fixed bug for automatic update installation where it deleted the images directory
- Renamed variables, they were pretty generic so they could conflict with others.
- Added Google Chrome (the day of its release!)
- Option to show complete useragent string.
- Went back to useragent_spy_custom() for custom display.
- Several code fixes (W3C valid XHTML, more order, etc).
- Saved settings are displayed correctly on the settings page.
- Added option to display icons only, with no text or link.
- Fixed bugs:
-Epiphany, when built against WebKit would display Safari.
-Major bug which would show ua-spy in your comment management page, instead of comment text when using custom.
- Browser added: Lynx, Links.
- Fixed bug where the comments would show without filters.
- Changed Konqueror icon for new 4.0 version.
- OS added: OLPC XO, SuSE.
- Browser added: W3M, Lobo, Amaya, Maxthon, Camino, NetSurf, Minefield, IceApe, SeaMonkey.
- Fixed some code (includes a bug where OLPC was detected for certain os’s).
- Made “browsing with” and “on” words in “Browsing with browser on OS” customizable in the Options page.
- Allow logged in user to see the full user-agent string (easier debugging).
- Fixed string for unidentified browser.
- OS’s added: FreeBSD, OpenBSD, Solaris.
- Added p tags for correct formatting
- Added if in options page so that current values are selected on load.
- More web-browsers: Epiphany, Galeon, Opera, IE.
- O.S.’s: Xubuntu, Kubuntu, Ubuntu, Slackware.
- Added option to choose displaying useragent_spy before or after the comment text, or using useragent_spy() function in template.
- Detects Firefox, Epiphany.
- Detects Debian, Fedora, Gentoo,
- Options menu under Settings Panel, allows 16×16 or 24×24 pixel images for icon size.
- Integrates into WordPress before comments text.
- Detects Mozilla, IceWeasel, IceCat, Arora, Safari, Konqueror.
- Detects Windows, GNU/Linux, iPhone and MacOS
- New browsers/os’s are welcome.
- Links for Operative Systems.