WP-UserAgent
Latest version: v0.10.14 – Download
Official WordPress Plugin Page:
http://wordpress.org/extend/plugins/wp-useragent/
This is a WordPress plugin that I’ve taken the liberty to maintain since the original author has failed to code to xhtml standards and keep up with the latest browsers as well as detecting platform versions, Internet Explorer versions and more.
WP-UserAgent is a user agent plugin for WordPress that uses the user agent provided by the visitors browser to identify their operating system and browser for each comment.
Note to WordPress developers: Feel free to take the changes that I’ve made and add them in to WordPress 2.8 or whatever. I just like to contribute (although my name somewhere in the credits would be great
).
WP-UserAgent identifies the following:
Web browsers:
- 360Safe Explorer
- Abolimba
- ABrowse
- Acoo Browser
- Alienforce
- Amaya
- Amiga Aweb
- America Online Browser
- Amiga Voyager
- Android Webkit
- AOL Explorer
- Arora
- Avant Browser
- Baidu
- Beonex
- Black Berry Browser
- Blackbird
- BlackHawk
- Blazer
- Bolt Browser
- BonEcho
- BrowseX
- Browzar
- Bunjalloo
- Camino
- Cayman Browser
- Charon
- Cheshire
- Chimera
- Chrome
- Chrome Mobile
- ChromePlus
- Chromium
- Classilla
- Columbus
- CometBird
- Comodo Dragon
- Conkeror
- CoolNovo
- Crazy Browser
- Cruz
- Cyberdog
- Deepnet Explorer
- Demeter
- DeskBrowse
- Dillo
- DoCoMo
- DocZilla
- Dolfin
- Dooble
- Doris
- Dorothy Browser
- Edbrowse
- Element Browser
- Elinks
- Enigma Browser
- EnigmaFox
- Epic Browser
- Epiphany
- Espial TV Browser: Escape
- Fennec
- Firebird
- Firefox
- Fireweb Navigator
- Flock
- Fluid
- Galaxy
- Galeon
- GlobalMojo
- GO Browser
- Google Chrome Frame
- Google Wireless Transcoder
- GoSurf
- GranParadiso
- GreenBrowser
- Gtk+ WebCore (osb-browser)
- Hana
- HotJava
- Hv3
- Hydra Browser
- IBM WebExplorer
- IBrowse
- iCab
- Ice Browser
- IceApe
- IceCat
- IceWeasel
- iNet Browser
- Internet Explorer
- Internet Explorer Mobile
- InternetSurfboard
- iRider
- Iris
- Iron
- Jasmine
- K-Meleon
- K-Ninja
- Kapiko
- Kazehakase
- Kirix Strata
- KKman
- KMail
- KMLite
- Konqueror
- Kylo
- LBrowser
- LeechCraft
- Links
- Lobo
- lolifox
- Lorentz
- Lunascape
- Lynx
- Madfox
- Maemo
- Maple Browser
- Maxthon
- MIB (Motorola Internet Browser)
- MicroB
- Midori
- Minefield
- MiniBrowser
- Minimo
- Mosaic
- Mozilla Developer Preview
- Mozilla
- Multi-Browser XP
- MultiZilla
- My Internet Browser (myibrow)
- MyIE2
- Namoroka
- Navigator
- NetBox
- NetCaptor
- NetFront
- NetNewsWire
- NetPositive
- Netscape
- NetSurf
- NF-Browser
- Nokia S60
- Nokia Browser
- Novarra Vision
- Obigo
- Off By One
- OmniWeb
- Opera
- Opera Labs
- Opera Mini
- Opera Mobile
- Opera Next
- Orca
- Oregano
- OWB
- Pale Moon
- Patriott
- Phaseout
- Phoenix
- Podkicker
- Pogo
- Polaris
- Pre Browser
- Prism
- Qupzilla
- QtWeb Internet Browser
- rekonq
- retawq
- RockMelt
- Saayaa Explorer
- Safari
- SeaMonkey
- SEMC Browser
- Shiira
- Shiretoko
- SiteKiosk
- SkipStone
- Skyfire
- Sleipnir
- SlimBrowser
- Sogou Explorer
- Songbird
- SRWare Iron
- Stainless
- Sulfur
- Sundance
- Sundial
- Sunrise
- Surf
- Swiftfox
- Swiftweasel
- Sylera
- Tear
- TeaShark
- Teleca
- Tencent Traveler
- TenFourFox
- TheWorld Browser
- Thunderbird
- Tizen
- Tjusig
- TT Explorer
- uBrowser
- UC Browser
- UCWEB
- UltraBrowser
- UP.Browser
- UP.Link
- Usejump
- uZard Web
- uzbl
- Vimprobable
- Vonkeror
- W3M
- Webian Shell
- Webrender
- Weltweitimnetz Browser
- wKiosk
- WordPress App
- WorldWideWeb
- Wyzo
- X-Smiles
- Xiino
- ZipZap
Consoles and Mobile Devices:
- BenQ-Siemens
- BlackBerry
- Dell
- Galaxy Nexus
- Google Nexus One
- HTC
- iPad
- iPhone
- iPod
- Kindle
- LG
- Motorola
- Motorola Xoom
- Nintendo
- Nintendo DS
- Nintendo DSi
- Nintendo Wii
- Nokia
- OLPC
- Palm
- Playstation
- Playstation 3
- Playstation Portable
- Samsung
- Samsung Smart TV
- SonyEricsson
- WP7
Operating Systems:
- AmigaOS
- Android
- Arch Linux
- BeOS
- CentOS
- Chakra
- Crunchbang
- Debian
- DragonFly BSD
- Edubuntu
- Fedora
- Foresight Linux
- FreeBSD
- Gentoo
- Google Chrome OS
- Inferno
- IRIX
- J2ME/MIDP
- Kanotix
- Knoppix
- Kubuntu
- LindowsOS
- Linspire
- Linux
- Linux x86_64
- Linux Mint
- Lubuntu
- Macintosh
- Mac OS Darwin
- Mac OS X
- Mageia
- Mandriva
- moonOS
- MorphOS
- NetBSD
- Nova
- OpenBSD
- Oracle Linux
- Pardus
- PCLinuxOS
- RedHat
- Rosa Linux
- Sabayon Linux
- Slackware
- Solaris
- SunOS
- Suse
- SymbianOS
- Ubuntu
- Unix
- VectorLinux
- Venenux GNU Linux
- WebOS
- Windows
- Windows 3.1
- Windows 3.11
- Windows NT 3.11
- Windows NT 4.0
- Windows CE
- Windows 95
- Windows 98
- Windows 98 SE
- Windows Millennium Edition (Windows ME)
- Windows 2000
- Windows 2000, Service Pack 1 (SP1)
- Windows XP
- Windows Server 2003
- Windows XP x64 Edition
- Windows Vista
- Windows 7
- Windows 7 x64 Edition
- Windows Mobile
- Xandros
- Xubuntu
- Zenwalk
TrackBacks:
- Drupal
- Feedburner
- Laconica
- libwww-perl
- Meneame
- MovableType
- Peach
- Pligg
- Python-urllib
- Snoopy
- SOAP
- Typepad
- vBSEO
- WordPress
- XML-RPC
Please let me know of any suggestions or browser/operating system versions that should be added. I tried to add as much as possible for the time being. I will add more soon and try to perfect the detection, but if you have problems then please let me know in the comments below!
Changelog:
v0.5.2 – Download
- Initial release (of taken over code).
v0.5.3.2 – Download
- Updated string names: $size => $uasize, $location =>$ualocation.
- Updated Google Chrome logo images with logo images added to UserAgent-Spy 0.5.3.2 (Images already added in my version of 0.5.2, but replaced for consistency).
v0.5.3.3 – Download
- Added Pre-2.6 compatibility for determining and defining Plugin and Content Directories constants. WordPress documentation here.
- Replaced sloppy code for image paths with more dynamic code.
- Renamed the function “useragent_spy_custom()” in “wp-useragent.php” to “useragent_output_custom()” to make it more generic and move away from the UserAgent-Spy naming system.
- Removed text attributes that were improperly added to option tags in “wp-useragent-options.php” to correct html validation errors.
- Adjusted the “UserAgent Output Location” section in “wp-useragent-options.php” and added the options to an ordered list, adjusting the use of the “small” tag.
- “wp-useragent-options.php” is now 100% XHTML 1.0 Transitional standards compliant. This is the default DTD used in the WordPress administration panel. I will eventually work towards compliance for XHTML 1.0 Strict.
- Fixed regex for OLPC so it’s case insensitive.
- Removed “target” attribute from browser links to improve XHTML 1.0 Strict compliance.
- Gave WP-UserAgent settings page a header title to make the location more recognizable.
- Cleaned up appearance of “wp-useragent-options.php” settings page by categorizing the content.
v0.5.3.4 – Download
- Added Windows 7 and Windows 7 x64 to detectable OS versions.
v0.6 – Download
- Added over 40 more web browsers that are detected.
- Added a couple more operating systems that are detected
- Fixed a bug in previous versions that caused errors to occur when users who were not logged in attempted to post a comment.
- Cleaned code and simplified several naming systems used.
- Added option to select DocType. Options include html and xhtml (strict for both).
- Known Issue: Most of the newly detected web browsers are still missing icons. I will try to add them as soon as I possibly can.
- *Note: The original author seems to like the additions that I made since I started extending this plugin and has incorporated many of the changes that I made into the other plugin.
v0.6.1 – Download
- 90 total web browsers detectable.
- 34 total operating systems detectable.
- Implemented a fix for Opera’s new versioning system, which started in version 10 snapshots, to correctly display the browser version.
- Cleaned code more and removed unnecessary global variable references.
- Fixed detection of CentOS.
- Debian and Ubuntu based distros (that are supported) now fetch version numbers also. Generic GNU/Linux now also specifies x64 when detected. Fedora version fetching is in the works as well as Mac OS X. Maybe these will be added in the next release. Mac versions are a little tricky since it seems they are optionally provided and formated differently per browser.I need to add fall back checks in case an odd UA string is created without version numbers for these so they are still detected. And parse pingbacks such as “XML-RPC for PHP 2.2″ in the future as something other than unknown.
- Known Issue: Some web browser icons have not been found/added as of yet. Those include: Amiga Voyager, Cheshire, Chimera, Elinks, IBrowse, Kapiko, KMLite, Minimo, Mosaic, MultiZilla, retawq, TeaShark, WorldWideWeb. Several of these listed browsers never had an icon to begin with, however, all listed will use the “unknown” icon (which is generic).Output location “custom” is still highly untested.
v0.6.2 – Download
- 90 total web browsers detectable.
- 35 total operating systems detectable.
- Code cleanup (removed extra whitespace to reduce size a little) and simplification (replaced switch with if..else).
- Most of the remaining icons for web browsers have been added.
- Linux Mint support added.
- A list of detectable operating systems that now also detect versions when available: CentOS, Edubuntu, Fedora, iPhone OS, Kubuntu, Mac, Ubuntu, Windows.
- Also, generic Linux will now specify if it is detected to be x86_64 (64-bit or x64). Others may be included later.
- Appearance adjustments made (settings icon by title and styling of “Save Changes” button) to WP-UserAgent Options page as well as adding a Help section with Author and Plugin Homepage to bottom of Options page for convenience.
- Known Issues:
- Some web browser icons have not been found/added as of yet. Those include: Chimera, KMLite, retawq, TeaShark, WorldWideWeb.
- Output location “custom” is still highly untested.
v0.7 – Download
- All images were optimized to reduce file sizes (PNGGauntlet) which reduced the overall package size from 308.4kb to 288.1kb!
v0.8 – Download
- Added a “Settings” quick link to the plugin listing in the plugins page.
- Worked on description wording for plugin in plugins page.
- Added a “Comment Preview” section to the WP-UserAgent settings page that displays an example of the options that you choose in real time.
- Also, WP-UserAgent has now been cleaned and extended far enough to reach the 1.0 milestone soon. I will be checking for possible problems and cleanups, but feel free to point them out to me at any time!
- *Note: Please suggest web browsers and/or operating systems that I am missing so I can include them to be detected.
v0.8.1 – Download
- Added missing ./img/16/net/arora.png file.
- Corrected typo of Maxthon 16px and 24px icons. maxton.png -> maxthon.png
- Added a quick fix for detecting and trimming Maxthon when no version is provided.
- *Note: WP-UserAgent is nearing a 1.0 release. Please let me know if you find any bugs, missing images, typos, undetected web browsers or operating systems, or detection errors in general.
v0.8.2 – Download
- Added detection for Windows 3.11, Windows NT 3.11, Windows NT 4.0 and fallback check for Windows Me.
- Added detection for Nintendo Wii, Playstation 3 and Playstation Portable.
- Added detection for Thunderbird (the e-mail client) since it has a unique and detectable user agent string.
- Debian is now shown as Debian GNU/Linux (props: Terry Wang)
- *Note: WP-UserAgent is nearing a 1.0 release. Please let me know if you find any bugs, missing images, typos, undetected web browsers or operating systems, or detection errors in general.
v0.8.3 – Download
- Adjusted readme.txt to appear better on the plugin page and pass validation from: http://wordpress.org/extend/plugins/about/validator/
- Initial submission to the the WP-UserAgent SVN Plugin Repository
v0.8.4 – Download
- Links: rel=”nofollow” is applied to all web browser and operating system links. (props: Alter Ego Blog)
- Added detection for Arch Linux (props: Terry Wang)
- Added detection for KMail (Kontact Mail) since it has a unique and detectable user agent string.
- Icon change: Macintosh (generic/old Mac) uses multi-color Apple icon, Mac OS X now uses gray Apple icon.
v0.8.5 – Download
- Added detection for Sabayon Linux (props: Ian “Thev00d00″ Whyman)
- Updated readme.txt to take advantage of the new changelog tab.
v0.8.6 – Download
- Added detection for more web browsers: BlackBerry Web Browser, Blazer, IEMobile, MIB (Motorola Internet Browser), NetFront, NetPositive, Obigo, Palm Pre Web Browser, Polaris, SEMC Browser, UCWEB, UP.Browser
- Added detection for more operating systems: Android, BeOS, Darwin (Mac), DragonFly BSD, Kanotix, Knoppix, LindowsOS, Linspire, Mandriva, Motorola, NetBSD, Nintendo DSi, Palm, VectorLinux, webOS
- Updates to detection of some rare sub-string instances: Win16 (Windows 3.11), Win95, Win98 (Windows 98 SE), Windows ME, Windows XP, Mac OSX, and Darwin (as Mac).
- Moved detection point of Firefox near end (along with Mozilla and MSIE) so other browsers that include Firefox in the User-Agent string are properly detected (example: Swiftfox is occassionally listed after Firefox in the string, causing improper detection).
- Corrected detection of Safari. Now Opera (starting with v10) and Safari are both versioned based on the Version/x.y string.
- Corrected detection of Nokia. Minor detection change included forward slash to further narrow results.
- Corrected links to Fedora and Mosaic’s homepage.
- Added icons for TeaShark (mobile web browser).
- Added new detection for Mozilla versioning.
- Added new Windows icons so a properly styled Windows icon is shown with the correct operating system version.
- Minor code cleaning.
v0.8.7 – Download
- Added detection for the Bolt Browser (mobile).
- Fixed bug where Browser and Operating System names were not passed along to the title and alt attributes in the image tags (props: cimddwc)
v0.8.8 – Download
- Corrected a layout bug on the Settings page with the Comment Preview section.
- Added option to display only text. Options are now Display icons and text, icons only or text only. You may need to check your settings if you were previously using the Icon only mode as it will most likely be reset with this update.
- Added option to specify css styling of image via Default (no-border), Inline Style for custom css, or Class for using a stylesheet (props: Zim)
v0.8.9 – Download
- Added detection for TheWorld Browser (props: mecal)
v0.9 – Download
- Added detection for Venenux GNU Linux and Oracle Linux.
- Added detection for Laconica and MovableType trackbacks.
- Cleaned some of the code for trackback detections.
v0.9.1 – Download Never committed to svn.
- Added a quick fix for Opera Mini detection.
v0.9.2 – Download
- Added support for iPod detection so an iPod Touch doesn’t appear as an iPhone.
- Added detection for Google Chrome OS.
- Fixed format and syntax of the readme.txt file that’s included.
v0.9.3 – Download Never committed to svn.
- Added support for BlackBerry device and model detection.
- Corrected the BlackBerry browser detection to simply register as BlackBerry since the device model number doesn’t have anything to do with the browser.
- Added detection for vBSEO (vBulletin).
- Added detection for Opera 10+ so the new Opera icon is used properly.
- Purged unused Mac icons.
v0.9.4 – Download
- Added detection for Novarra Vision Browser for mobile phones.
- Corrected a misspelled image filename for 24×24 seamonkey.png
- Corrected image used for Opera Mini.
v0.9.5 – Download
- Added browser version detection for BlackBerry web browsers (with a mod/hack fix).
- Added detection for the (now discontinued) Iris mobile browser.
- Updated MSIE Mobile icon.
- Added detection for the Jasmine mobile web browser from Samsung.
- Added detection for the Dolfin mobile web browser from Samsung.
- Added detection for the Teleca (Obigo derivative) mobile web browser.
- Added detection for the Java edition of the SEMC browser.
- Added detection for LG mobile devices.
- Added detection for Samsung mobile devices.
- Added detection for SonyEricsson mobile devices.
- Added two other Windows Mobile device strings.
- ————-(props: Yomi – above suggestions and code)
- Added detection for Namoroka web browser (props: Cahya).
- Modified detection for Nokia devices to include a wider range.
- Added detection for Lubuntu in anticipation of a platform specific string eventually (as other Ubuntu derivatives have done).
- Fix for UC Web browser version detection.
v0.9.6 – Download
- Added detection for Firefox Lorentz (with a temporary related link page until I find an official or article)
- Added detection for Flock Sulfer.
- Added detection for Google Wireless Transcoder.
- ————-(props: dani – above suggestions)
- Added trackback detection for SOAP (Simple Object Access Protocol) ex. SOAP::Lite/Perl/0.710.08
- Added settings option to enable/disable links for web browsers and platforms (with a live preview example).
- Fixed some settings page validation errors.
- Updated the settings page from the WordPress 2.5 style to a WordPress 2.9 style to make it feel more friendly. Major aesthetic improvement, too!
v0.9.7 – Download
- Fixed version detection for the Links browser (props: dani)
- Added detection for the Google Chrome Frame (props: dani)
- Added detection for the Apple iPad.
- Added detection for Typepad trackbacks.
- Added detection for Drupal trackbacks.
- Added detection for the DoCoMo web browser.
- Added detection for the Xiino web browser.
- Added detection for Xandros Linux.
- Added detection for IRIX Linux.
- Added detection for Unix.
v0.9.8 – Download
- Added detection for the UC Browser.
- Added detection for the Maemo Browser.
- Added detection for the UP.Link browser.
- Added detection for the Nokia S60 browser.
- Added detection for the J2ME/MIDP Device platform.
- Fixed detection of Safari browsers for detection Version or those without a version Listed.
- Fixed generic Nokia Web Browser detection.
- Fixed missing Nokia Web Browser image (props: Yomi)
v0.9.9 – Download
- Added detection for Foresight Linux (props: Tomas Forsman)
- Added detection for the SRWare Iron web browser (props: dani)
- Added a workaround for using special characters in the ‘Surfing’ and ‘on’ text fields in the options page. You can now include html styling and/or quotes (props: NomikOS)
- Removed a faulty Maemo Browser detection rule.
- Added a donations link at the bottom of the settings page for those who feel generous enough to reward me for the time and effort I share.
v0.9.10 – Download
- Added detection for the Tear mobile browser (props: Jake)
- Added detection for PCLinuxOS (props: dani)
- Added detection for the Mozilla Developer Preview builds.
- Moved detection of Safari further down the chain since its being used commonly as a fallback detection for several browsers.
- Consolidated Firefox BonEcho, GranParadiso, Lorentz, Namoroka, Shiretoko and future development icons into the firefoxdevpre.png icon, reducing the current count from 3 to 1, cleaning the code and removing duplicates.
- Added the new Ubuntu icon for Ubuntu 10.04+, with a fallback to the old icon for previous versions of Ubuntu.
- Made changes to reflect the new naming change for iOS on the iPad, iPhone and iPod.
v0.9.11 – Download
- Fix a regression where the Ubuntu version stopped being printed.
- Fixed support for detecting PCLinuxOS version.
- Added detection for ChromePlus.
- Added detection for DeskBrowse.
- Added detection for iNet Browser.
- Added detection for iRider.
- Added detection for LeechCraft.
- Added detection for Madfox.
- Added detection for Palemoon.
- Added detection for Pogo.
- Added detection for Prism.
- Added detection for uZard Web.
- Added detection for uzbl.
- Added detection for Vonkeror.
- Fixed detection for Opera Mobile and version number (props: Cahya)
- Added detection of Nokia S60 devices (previously only the S60 web browser was detected).
- Added detection support for alternate SymbianOS identifiers.
- Added detection for the HTC Touch Pro2 smartphone (props: Yomi)
- Modified image vertical alignment, so the images are now more inline with the sentence.
- Added detection for libwww-perl trackbacks.
- Added detection for Peach trackbacks.
- Added detection for Python-urllib trackbacks.
- Added detection for Snoopy trackbacks.
v0.10.0 – Download
- Rewrote a large portion of the code to separate Device detection from the OS detection function for easier updating and management.
- Improved mobile detection for a wider range of LG phones.
- Improved regex to merge IRIX 32/64 detection into one conditional for simplicity.
- Improved regex to merge SymbianOS and SymbOS detection into one conditional for simplicity.
- Improved regex to for Playstation 3 and Portable detection for simplicity and added generic Playstation detection.
- Improved detection for Nintendo DSi and Wii for simplicity and organization and added generic Nintendo detection.
- Added detection for BenQ-Siemens mobile devices.
- Added detection for Google Nexus One mobile devices (the Android OS was already supported).
- Added detection for HTC mobile devices: HTC Desire, HTC Touch Pro2, HTC Startrek, HTC Hero, HTC Legend, HTC Magic, HTC Touch, HTC Touch Pro (props: Yomi), HTC Polaris, HTC S710, HTC Tattoo and generics or undefined.
- Improved regex detection for a wider range of Nokia mobile devices.
- Added detection for Palm Pre and Pixi (generics were already supported).
- Added model detection to Samsung devices.
- Added model detection to SonyEricsson devices.
- Added model detection to Motorola devices: Motorola Droid, Motorola XT720, unspecified model numbers and generic Motorola devices.
- Fixed several instances of regex that were not case insensitive (to improve match success).
- Fix for IE8 Compatibility Mode detection.
- Simplified regex for Safari browser detection.
- Re-enabled fix for Maemo Browser version detection.
- Cleaned comments throughout code to simplify them and remove useless ones.
- Corrected displayed name of the Pale Moon web browser (from Palemoon).
- Removed browser version detection for TheWorld Browser since it doesn’t appear to ever include it.
- Changed icon for retawq from null to a terminal icon.
- Added detection for Abolimba.
- Added detection for Amiga Aweb.
- Added detection for Blackbird.
- Added detection for Browzar.
- Added detection for Bunjalloo.
- Added detection for Comodo Dragon.
- Added detection for Demeter.
- Added detection for DocZilla.
- Added detection for Dooble.
- Added detection for Doris.
- Added detection for Edbrowse.
- Added detection for Epic Browser.
- Added detection for GlobalMojo.
- Added detection for Hv3.
- Added detection for Hydra Browser.
- Added detection for Ice Browser.
- Added detection for Kirix Strata.
- Added detection for LBrowser.
- Added detection for MicroB.
- Added detection for Multi-Browser XP.
- Added detection for My Internet Browser.
- Added detection for NetBox.
- Added detection for NetCaptor.
- Added detection for Off By One.
- Added detection for OWB.
- Added detection for Phaseout.
- Added detection for rekonq.
- Added detection for SiteKiosk.
- Added detection for Swiftweasel.
- Added detection for TheWorld Browser.
- Added detection for Tjusig.
- Added detection for TT Explorer.
- Added detection for wKiosk.
- Added detection for X-Smiles.
- Added detection for MorphOS.
- Added detection for AmigaOS.
v0.10.1 – Download
- Fix version detection for Maemo Browser, TencentTraveler, NetCaptor, SiteKiosk, Tablet browser, Tjusig.
- Removed extra icons from OS folder that were supposed to be moved to devices folder (reduces plugin file size).
- Split Trackback icons out into separate trackback folder (including a copy of null.png).
- Dramatically improved performance and simplified the detect_browser_version() method using RegEx instead of substr() which reduces 18 lines of code to only 2. This means 16 less lines of code are run per comment on your site!
- Fixed error in HTC Touch Pro2 detection (Props: Yomi)
- Added detection for Dell Streak, Dell Mini 5 and generic Dell devices.
- Modified generic HTC detection regex to catch strings that also match “USCCHTC6175″ and “HTC_XX_XX”.
- Added detection for Mobile Safari.
- Added updated Edubuntu, Kubuntu, Lubuntu and Xubuntu icons for versions 10.04+ (the same as Ubuntu now). The updated Xubuntu icon has not been officially released yet, so the included icon may change later.
- Added detection for generic XML-RPC trackbacks.
- Cleaned several regex detectors so they all follow the same scheme/pattern now to add some consistency to the code.
- Corrected title of IceApe to Iceape.
- Updated regex for Ubuntu and other derivatives’ detection to match “Ubuntu/10.10″ as well as “Ubuntu 10.10″ so versions are properly parsed for both.
v0.10.2 – Download
- Optimized all packaged images to minimize filesizes without reducing quality. Images were reduced by approximately 50.33kb in total via PNGGauntlet. While this saves only a few extra kilobytes of bandwidth, it helps sites that are striving to perfect network performance with Page Speed for Firefox or Speed Tracer for Chrome (optimizing images).
v0.10.3 – Download
- Corrected detection of Motorola Droid to eliminate false positives for Android devices (props: Yomi)
- Added an option to specify a prepended word for Trackbacks and Pingbacks like the current “using” option. This is blank by default (props: dani)
- Adjusted vertical alignment of icons in the settings page to properly reflect the middle alignment they use in comments.
- Replaced poor quality WordPress icon with a better looking icon.
v0.10.4 – Download
- Added missing IRIX OS images. The quality isn’t great, but they’re the best I could find and produce myself. Submissions are welcome.
- Adjusted Nokia Series60 browser detection so the output is less redundant (props: Yomi)
- Added detection for the Chromium web browser (props: Terry Wang)
- Added detection for the RockMelt social web browser.
- Reorganized detection for Google Chrome since so many derivatives are beginning to use it as a base and leave it in their user agent string.
v0.10.5 – Download
- Added detection for 360Safe Explorer, Saayaa Explorer and Sogou Explorer (props: Buzz)
- Added detection for BrowseX, Conkeror, Element Browser, Espial TV Browser, GO Browser, InternetSurfboard, SkipStone, Surf, UltraBrowser, Weltweitimnetz Browser.
- Corrected detection for Multi-Browser XP (was only Multi-Browser) and My Internet Browser.
- Added unique icons for different versions of Microsoft Internet Explorer (props: Buzz)
- Correctly escape for detection of Google Wireless Transcoder.
v0.10.6 – Download
- Added detection for BlackHawk, Gtk+ WebCore, Tencent Traveler and Vimprobable.
- Added a quick fix for Arch Linux improperly being detected when IE users have SearchToolbar installed (since it improperly matched seARCHtoolbar).
- Added new feature to hide “Unknown” output. This is disabled by default (props: Cahya)
v0.10.7 – Download
- Added detection for Kindle.
- Added detection for moonOS.
v0.10.8 – Download
- Added detection for Opera Next, Android Webkit and MiniBrowser.
v0.10.9 – Download
- Fixed Mac OS X version detection so its more flexible.
- Fixed icon used for Red Hat linux (props: Third Eye)
v0.10.10 – Download
- Fixed Opera Next detection since the ua string has changed.
- Added detection for Opera Labs, Fireweb Navigator, Kylo, Sundance, Charon, Sylera, Dorothy Browser, and Webian Shell.
- Added detection for x64 versions of Unix/Linux.
- Added detection for the Inferno operating system.
- Added detection for Nokia Browser (props: Yomi)
v0.10.11 – Download
- Added detection for Columbus Browser, CoolNovo, Sundial, Usejump, WebRender.
- Added detection for Nova Linux and WP7 (props: jako)
v0.10.12 – Download
- Added detection for Alienforce Browser, Patriott, Qupzilla, Baidu Browser and ZipZap.
- Added detection for Chrome Mobile and Tizen.
- Added detection for Motorola Xoom, Galaxy Nexus.
- Added detection for Chakra Linux (props: KZKG^Gaara)
v0.10.13 – Download
- Fixed detection of Windows x64 from the Chrome user agent.
- Added detection for TenFourFox, Classilla, EnigmaFox, Podkicker, Maple Browser.
- Added detection for Samsung Smart TV, WordPress app for iPhone, WordPress app for Android.
- Fixed Android version detection.
v0.10.14 – Download
- Added detection for Crunchbang, Mageia, Pardus and Rosa Linux (props: KZKG^Gaara)
- Fixed detection of SRWare Iron browser (props: KZKG^Gaara)
To-do:
- Refactor codebase to simplify maintaince of this plugin and reduce duplicate code.
- Reach a stable and solid 1.0 release where the plugin is mostly finalized and updates will generally be additional browsers and/or systems.
- New suggestions for web browsers, devices and operating systems are always welcome.
- Add detection for PSVita when its released.


Opera/10.00 (X11; Linux x86_64 ; U; en) Presto/2.2.0
Update released:
WP-UserAgent 0.5.3.3
Opera/10.00 (X11; Linux x86_64 ; U; en) Presto/2.2.0
Update released:
WP-UserAgent 0.5.3.4
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121621 Ubuntu/8.04 (hardy) Firefox/3.0.5
Thanks, I will make some customizations to it
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
WP-UserAgent v0.6.1 uploaded!
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10
WP-UserAgent v0.8 released!
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009061319 Iceweasel/3.0.11 (Debian-3.0.11-1)
Thanks for the great plugin, Kyle. Why not submit it to the official plugins repository?
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
Thanks Terry! Adding WP-UserAgent to the official plugins repository will happen pretty soon. I’m just giving it a little time to cure and work out any bugs that I come across…or that anyone else points out.
So far, I’ve got it all working great and down to just a couple of small known issues. After I get these patched and give it a good test, I will be officially publishing it.
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
WP-UserAgent v0.8.1 released!
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
WP-UserAgent v0.8.2 released!
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009060309 Ubuntu/9.04 (jaunty) Firefox/3.0.11
WP-UserAgent v0.8.3 released and is now available via the WordPress Plugin Repository! Enjoy automatic updates now!
Mozilla/5.0 (Windows; U; Windows NT 6.0; ro; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
no-follow attribute would be necessary for the two corresponding links browser and operating system
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
@Alter Ego Blog
Thanks! That’s a great suggestion.
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
WP-UserAgent v0.8.4 released!
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
This plugin look great but im not in my home right now xD
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
WP-UserAgent v0.8.5 released!
Mozilla/5.0 (X11; U; Linux i686; zh-TW; rv:1.9.1b99) Gecko/20090613 Swiftfox/3.5b99 (.NET CLR 3.5.30729)
that’s good
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
WP-UserAgent v0.8.6 released!
Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)
Good work! Just added the plugin to my blog (icons only with the custom function), and, well, discovered a little bug:
The image generation function img outputs
title='".$title."'in theimgtag – which is good, of ccurse –, however$titleis not defined in this function, so the title attribute is always empty. I suggest you add$titleas third parameter for function img for a quick solution (which I did on my blog).Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
@cimddwc
Thanks for the tip! I actually haven’t gotten around to testing the custom function a great deal, so I appreciate your feedback and suggestion!
I’ll look into this and see what I can do. It feels like a 1.0 release is inching nearer as the bug reports slow!
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009060309 Ubuntu/9.04 (jaunty) Firefox/3.0.11
WP-UserAgent v0.8.7 released!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 AutoPager/0.5.2.2 (http://www.teesoft.info/)
Hey Kyle, suggestion/idea: wouldn’t it be more effective to order the browsers so it doesn’t need to do a preg_match for a lot of “obscure” browsers before getting to “common” browsers? (Firefox, Chrome, IE, Opera)
I also have added a class to the img tag of the browsers (and removed the style property, since my theme already removes border from images).
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
@Zim
That’s a great idea, however, many web browsers “pretend” to be Mozilla/Firefox, Safari and/or MSIE in parts of their User-Agent strings. This can cause problems if you detect the major browsers first, leaving the bits of the User-Agent string with these obscure browser names unchecked.
I considered arranging the detection in the way that you mentioned at first, but in the end it is cleaner and shorter code to detect the major browsers last so as to reduce false detections.
This should not be a performance problem at all in most cases.
Also, about the styling. It’s more efficient for me to include the inline styling rather than trying to guess at a universal class that will accomplish this for all themes (since different themes will have very different style sheets).
One option I see for your image class is for me to add a few options in the settings page to specify class names or to simply use the default (read: current) implementation of inline styling to remove borders.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)
Hi Kyle. Great plugin! One suggestion – How about adding an option in the settings page to specify a CSS class for the icons? In my case, I use img class=”wp-smiley” to align the browser and OS icons vertically with the text. Right now, for every update of this plugin, I manually add this to the source file. It would be really helpful if you add an option to do this from the next version!
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
@Prasannah
I just mentioned this in my last comment (right before yours).
I think I will be able to add this in though.
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
WP-UserAgent v0.8.8 released!
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
WP-UserAgent v0.8.9 released!
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; TheWorld)
thanks a lot, updated.
Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729)
Can you please country detector integrate?
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
能区分vista和win2008吗?
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
Did you post from Windows Vista or Windows 2008?
If it’s Windows 2008, then I will use that string to compare and see if I can find any differences to use for detection.
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
I’m starting to think (if you are indeed posting from Windows 2008) that the lack of “Media Center PC x.x” may be a decent method of detecting Windows Server 2008 user agents.
The percentage of people posting from a Windows Server 2008 computer is most likely extremely low, so this isn’t a high priority for me, but if I do find that this detection method works then I will work it in.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090718 IceCat/3.5.1
hi pls add moblin.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090718 IceCat/3.5.1
im sorry, please add this to the previous
add gnewsense too. is it possible to do that since it doesnt say so in the user agent? i changed the default gnu/linux to gnewsense as a workaround
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
If you could post a comment here from Moblin, I can get the user agent string.
If the user agent string isn’t unique in any way to the operating system, then there is no way that I can add them.
In your case, with gnewsense, I am searching for gnewsense user agent strings with no luck. I may add your string, but thus far I have only been adding strings that are officially used by browsers and operating systems already.
Opera/9.63 (Windows NT 6.0; U; Edition IBIS; zh-cn) Presto/2.1.1
“能区分vista和win2008吗?” = “Can you distinguish between vista and win2008?”,yes.
I am post from Windows 2008.
And i thank it’s hard to compare the OS just from “User-Agent string”.
Opera/9.63 (Windows NT 6.0; U; Edition IBIS; zh-cn) Presto/2.1.1
“能区分vista和win2008吗?” = “Can you distinguish between vista and win2008?”,yes.
I am post from Windows2008.
But this time, I use Opera.
Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN) AppleWebKit/530.19.2 (KHTML, like Gecko) Version/4.0.2 Safari/530.19.1
I think this is difficult to distinguish between vista and win2008. Because their “complete User-Agent string” is the same.
NT 6.0, .NET 2.0, .NET 3.0, .NET 3.5…
I hope you can work it out.
我英文太差了。。。
Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.1.1) Gecko/20090714 SUSE/3.5.1-1.1 Firefox/3.5.1
There isn’t any language suppor in your WP-UserAgent blugin. WP is multilanguage system and updating blugin is wery difficult without language support (I must everytime edit .php).
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
Please keep in mind that I’m not getting paid to contribute and share this plugin with WordPress or anyone.
That being said, I’ll see what I can do to remedy this.
Mozilla/5.0 (Windows; U; Windows NT 6.0; id; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729)
I shall give a try on my new blog
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090803 Ubuntu/9.04 (jaunty) Shiretoko/3.5.2 GTB5
Hi Kyle…
I’ve already used WP user agent. But when I tried to use Ajax Comments-Reply, the fonts of the browser and OS indicator in comment box have changed more bigger not proportional.
Even bigger than the font of the comment itself.
Could you please tell me how to fix this fonts? Coz I wanna reduce the font size. Thanks….
Opera/9.64 (X11; Linux i686; U; en) Presto/2.1.1
Thanks a lot for you plugin!
It’s realy very useful =)
Mozilla/5.0 (X11; U; FreeBSD i386; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.196.2 Safari/532.0
really appreciate your work.
Why not add GeoIP checking function?(I know it’s beyond ‘useragent’)
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.00
I’ve been asked about this on several occasions, but as you said it is a bit beyond the user-agent level. I could make another plugin that works hand-in-hand with wp-useragent so that you can display the ip address, but I’d rather not pack one good plugin with an overwhelming amount of semi-unrelated features..similarly to how bsd/unix/linux uses tiny tools and libraries that specialize in what they do.
Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.00
…posting from Opera 10.00 in Windows 7.
Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
…posting from IE6 in Ubuntu 9.04 using ies4linux. It should appear as IE6 in Windows 98 since it’s running via WINE.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091015 Oracle/3.0.14-1.0.1.el5_4 Firefox/3.0.14
Hi Kyle,
Oracle Enterprise Linux is not added yet. Here is a sample of how the User-Agent looks like.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091015 Oracle/3.0.14-1.0.1.el5_4 Firefox/3.0.14
Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10
Thanks, I’ve added Oracle Linux and Oracle Enterprise Linux detection. You should see it starting with the next update… v0.9!
Mozilla/5.0 (X11; U; Linux x86_64; en; rv:1.9.0.14) Gecko/20080528 Ubuntu/9.10 (karmic) Epiphany/2.22 Firefox/3.0
GNOME web browser
Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10
Thanks,seems to detect it properly though. Or as well as the user agent string details it. Is it not Epiphany 2.22?
Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10
WP-UserAgent v0.9 released!
Mozilla/5.0 (Windows; U; Windows NT 6.0; id-ID) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9.1
Thanks for upgrading a new version
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.8 Safari/532.2
Great work, thanks. and some suggestions. First, please change Firefox’s link to ‘firefox.com’. Second, change the osx’s icon to a black shiny ‘X’.
Thank you very much!
Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.10
I’ll consider changing the link to Firefox.com since it’s a more direct/specific link. You may see this change in the next update.
However, the Apple logo is very important in emphasizing the platform, not the version. If there is an Apple logo designed for Mac OS X and not just the X (which could easily be very ambiguous to most computer users) then I will consider it. Right now I think the importance of making a clear point that the OS was Apple Macintosh is more important for most WP-UserAgent users than to display an X which many may not recognize as easily (some users use icons only).
I would not be opposed to using different Apple icons for each version if the Apple icons are changed in any way and/or polished for a specific release.
Thanks for the suggestions.
Opera/9.80 (Windows NT 6.1; U; de) Presto/2.2.15 Version/10.10
very useful
Thanks for you plugin
Mozilla/5.0 (iPod; U; CPU iPhone OS 3_1_2 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7D11 Safari/528.16
Testing from an iPod Touch with OS 3.1.2..
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.20
WP-UserAgent v0.3 Released!