WP-UserAgent
Latest version: v0.10.11 – 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
- Amaya
- Amiga Aweb
- America Online Browser
- Amiga Voyager
- Android Webkit
- AOL Explorer
- Arora
- Avant Browser
- Beonex
- Black Berry Browser
- Blackbird
- BlackHawk
- Blazer
- Bolt Browser
- BonEcho
- BrowseX
- Browzar
- Bunjalloo
- Camino
- Cayman Browser
- Charon
- Cheshire
- Chimera
- Chrome
- ChromePlus
- Chromium
- 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
- 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
- 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
- Phaseout
- Phoenix
- Pogo
- Polaris
- Pre Browser
- Prism
- 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
- TheWorld Browser
- Thunderbird
- 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
- WorldWideWeb
- Wyzo
- X-Smiles
- Xiino
Consoles and Mobile Devices:
- BenQ-Siemens
- BlackBerry
- Dell
- Google Nexus One
- HTC
- iPad
- iPhone
- iPod
- Kindle
- LG
- Motorola
- Nintendo
- Nintendo DS
- Nintendo DSi
- Nintendo Wii
- Nokia
- OLPC
- Palm
- Playstation
- Playstation 3
- Playstation Portable
- Samsung
- SonyEricsson
- WP7
Operating Systems:
- AmigaOS
- Android
- Arch Linux
- BeOS
- CentOS
- 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
- Mandriva
- moonOS
- MorphOS
- NetBSD
- Nova
- OpenBSD
- Oracle Linux
- PCLinuxOS
- RedHat
- 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)
To-do:
- 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.




Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Ubuntu/10.04 Chromium/6.0.472.62 Chrome/6.0.472.62 Safari/534.3
It would be nice to be able to display the information in the body of normal pages instead of through other places using PHP.
Mozilla/5.0 (Symbian/3; Series60/5.2 NokiaN8-00/011.012; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/525 (KHTML, like Gecko) Version/3.0 BrowserNG/7.2.7.2 3gpp-gba
Hi Kyle,
Howdy?
Here’s UA from a Nokia N8. The new OS is simply ‘Symbian’, not ‘Series60 5.2′ as presented by the plugin. Can this nomenclature be effected?
As always, your work is appreciated.
Opera/9.80 (X11; Linux x86_64; U; Ubuntu/11.04 (natty); en) Presto/2.7.62 Version/11.00
I’ve adjusted this detection and understand what you are suggesting, but the current framework of this plugin is for detection one browser and one system/platform. Detection Symbian as well as Nokia just doesn’t fit into this model well.
I’ll look into refactoring this when I can find more time, but until then I think it is best to leave it in a way that is consistent with what the plugin already does.
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.15 (KHTML, like Gecko) Ubuntu/11.04 Chromium/10.0.609.0 Chrome/10.0.609.0 Safari/534.15
Kyle:
It would be great if you can add several lines of code to differentiate Chromium and Google Chrome. It should be fairly simple to archive. Thanks.
e.g. UA for Chromium 10.0.609.0
Chromium 10.0.609.0 (Developer Build 68952) Ubuntu 11.04
WebKit 534.15
V8 3.0.0.1
User Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.15 (KHTML, like Gecko) Ubuntu/11.04 Chromium/10.0.609.0 Chrome/10.0.609.0 Safari/534.15
Command Line /usr/lib/chromium-browser/chromium-browser –flag-switches-begin –flag-switches-end
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.7.62 Version/11.00
Thanks. It seems like I looked into this a long time ago, but then they were both using the same user agent string. I’ll add detection for this in the next release.
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 SUSE/10.0.629.0 (KHTML, like Gecko) Chrome/10.0.629.0 Safari/534.16
I am using Chromium 10.x on OpenSuse. Just testing it
.
Opera/9.80 (X11; Linux x86_64; U; Ubuntu/11.04 (natty); en) Presto/2.7.62 Version/11.00
WP-UserAgent 0.10.4 Released!
This adds detection for Chromium and RockMelt and a few other small fixes.
Opera/9.80 (Windows NT 6.0; U; id) Presto/2.7.62 Version/11.00
Hi Kyle,
I would like to ask, how we can put custom code manually on a theme based on thematic?
Opera/9.80 (Macintosh; Intel Mac OS X 10.6.5; U; en) Presto/2.7.62 Version/11.00
You should be able to use the “custom” method explained at the following link, but I’ve not tested this option myself. The original author included it so I’ve left it intact, but it should still be working fine.
Just use the listed php code in your theme template where you want it to appear and it should work great.
http://wordpress.org/extend/plugins/wp-useragent/installation/
Opera/9.80 (X11; Linux i686; U; id) Presto/2.7.62 Version/11.00
The problem is I can found the right line on
comment.phpnor onfunction.php.Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100916 Ubuntu/10.10 (maverick) Firefox/3.6.10
I have 2 suggestions here:
1.Why not display seperate different versions of Internet Explorer with different icons? They are, significantly, very different browsers, IE6 has its icon, IE7/8 have the same new icon, and IE9 has a new (ugly) one too. Since the plugin has seperate different version of Windows, I think adding icons to seperate them visually is great!
2.Please ADD two new browsers, one is 360(http://se.360.cn/ and http://chrome.360.cn/) and the other one is Sogou(http://ie.sogou.com/). Yeah, they’re now new browser other than IE and chrome clones, but they have a huge user base in China(STAT: http://data.cnzz.com/main.php?s=brow&peizhi=&uv=2 ), and it’d better have their place in this plugin.
Thanks you for your great plugin, keep updating it! If you have accept my suggestion or reject it, just let me know!
Cheers!
-Buzz
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.8.115 Version/11.10
Thanks for the suggestions! If you have either installed or both (or feel like helping), could you post a comment here from them so I can get the user agent string that is attached to each? Thanks.
Mozilla/5.0 (X11; Linux x86_64; rv:2.0b9pre) Gecko/20110111 Firefox/4.0b9pre
360SE:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; 360se)
The 360SE Chrome does not change its UA, just identify itself as Chrome. Ya, 360 has different icons of its two kernel browser act as a ninjia Chrome ever since the Tencent/360 war, HAHA.
Sougou:
Trident Core, Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.33 Safari/534.3 SE 2.X MetaSr 1.0
Webkit Core, Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; SE 2.X MetaSr 1.0
To make WP-UserAgent a more prefession script, It’s also better treating the Maxthon 3.0(Webkit and Trident) and the Maxthon 2.X/1.X(Trident) different browser.
Above Browser has different Browser rendering Kernel, I think it’d better treat it with different display name but with a same icon.
I know that 360SE/Sogou/Maxthon has dual kernel and Tencent Traveler is also going to release a similar ones too, Also lunascape has triple engine inside! So, treat them with different display name could make the script detect browser like a guru.
Also, I find another minor browser UA (saayaa,http://www.saayaa.com/):
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; QQDownload 667; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; VENUS_IE_ADDON-0.2.7.81; SaaYaa)
IF you wanna make these changes, I’m delight to help collecting the icons, Browser UA string and vendor link. I read Chinese and you don’t(I think) and because there’s so much Chrome derivant and IE derivant in China, I could help made the WP-UA plugin identify as much as the Chines UA.
And if you have updated the plugin, let me know and I can help testing with these browsers.
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.8.115 Version/11.10
Thanks. If you want to help me gain support for browsers from China then that would be great. Just post the name, the user agent string, and web address in the comments and I’ll add them!
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.8.115 Version/11.10
Released WP-UserAgent 0.10.5!
Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 SUSE/12.0.700.0 (KHTML, like Gecko) Chrome/12.0.700.0 Safari/534.24
Hi Kyle,
I’ve a little suggestion for wp-UserAgent, if there is unknown paramater, like using Browser A on Unknown OS, would you like to adding option to “hide” the unknown paramater and just showing the identified paramater on the screen. Or is it possible? Thanks.
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.8.115 Version/11.10
Good suggestion. I’ll try to add that in as an option for the next release.
Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.25 SUSE/12.0.705.0 (KHTML, like Gecko) Chrome/12.0.705.0 Safari/534.25
Hmm…, it seems my Chromoium still detected as Google Chrome
.
One more suggestion, if you would, could we get the name “openSUSE” instead of “SuSE”, as how it is the official name.
Opera/9.80 (Macintosh; Intel Mac OS X 10.7.0; U; en) Presto/2.8.119 Version/11.10
In your case, Chromium isn’t identifying itself as anything other than Chrome, so the detection is actually correct.
The openSUSE fix will be a quick simple fix.
Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20110321 Firefox/4.0
Cahya,
but there is SUSE Linux Enterprise by Novell available.
Opera/9.80 (Windows NT 6.0; U; en) Presto/2.7.62 Version/11.01
Well yes, openSUSE were based on SLE(S/D) product by Novell. But are both of the open & enterprise products using the same string?
Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20110321 Firefox/4.0
Cahya,
SUSE string is default by its factory setting commonly. I’m a SUSE 9.x user previously. I don’t know the string in Fx 4 recently.
Mozilla/5.0 (X11; Linux i686; rv:2.0.0) Gecko/20100101 Firefox/4.0
Well, here is the string for Firefox 4 in openSUSE 11.4
.
foo/bar; fake-ua-string
Testing new functionality to hide Unknown detected browsers and platforms.
Opera/9.80 (X11; Linux x86_64; U; Ubuntu/11.04 (natty); en) Presto/2.8.119 Version/11.10
Released WP-UserAgent 0.10.6!
Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Ubuntu/11.04 Chromium/11.0.696.57 Chrome/11.0.696.57 Safari/534.24
Muach Muach, thank you.
Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0
I think you can delete 360safe explorer and many other chinese browses,they are all IE!马甲浏览器….
Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0
Thanx for sahring this plugin.
very nice..
Mozilla/5.0 (X11; rv:2.0) Gecko/20110321 Firefox/4.0 ArchLinux/Dani
Tested using modified ua string
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Testing IE9 in Windows 7 Pro x64…
Opera/9.80 (X11; Linux x86_64; U; Ubuntu/11.04 (natty); en) Presto/2.8.131 Version/11.10
Released WP-UserAgent 0.10.7!
Mozilla/5.0 (X11; rv:2.0) Gecko/20110321 Firefox/4.0.1 ArchLinux/Dani
manually overriding ua string.
Opera/9.80 (X11; Linux i686; U; SUSE/12.0.700.0; en) Presto/2.8.131 Version/11.11
Testing manual overidding too
Opera/9.80 (X11; Linux x86_64; U; Opera Next; Ubuntu/11.04 (natty); en) Presto/2.8.131 Version/11.50
Released WP-UserAgent 0.10.8!
Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Ubuntu/11.04 Chromium/11.0.696.57 Chrome/11.0.696.57 Safari/534.24
Please add icon for Lubuntu OS.
I am currently commenting from Lubuntu OS.
Thank you so much for this great plugin development for us.
Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Ubuntu/11.04 Chromium/11.0.696.71 Chrome/11.0.696.71 Safari/534.24
test Lubuntu+Chromium
Opera/9.80 (Macintosh; Intel Mac OS X 10.7.0; U; en) Presto/2.8.131 Version/11.11
Lubuntu is already detected by this plugin. Chromium appears to be reporting itself as Ubuntu instead of Lubuntu.
Mozilla/5.0 (Windows NT 6.0) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.0 Safari/534.24
Very god tank you
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.36 (KHTML, like Gecko) Chrome/13.0.766.0 Safari/534.36
Hi, this plugin is awesome.
My friend uses curl to browse my blog and left this UA:
curl/7.21.6 (x86_64-unknown-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0d zlib/1.2.5 libssh2/1.2.7The browser icon is displayed as “Unknown”. Can you add this to the plugin?
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.36 (KHTML, like Gecko) Chrome/13.0.766.0 Safari/534.36
And…Another issue here:
In the past, the UA of Chromium is different from the UA of Chrome. But they are the same now.
I use a Chromium to browse and it is always displayed as a ‘colorful ball’ (chrome.png), not a ‘blue ball’ (chromium.png).
Do you have any methods to detect the difference between Chromium and Chrome besides UA?
I prefer to the blue ball rather than the colorful ball.
Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0
ubuntu 11.04以上ua不对了
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20080711 Red Hat/1.5.0.12-0.21.el4 Firefox/1.5.0.12 pango-text
I think the plugin of wordpress has a bug. Just look at my os flag and my os name…
Opera/9.80 (X11; Linux x86_64; U; Edition Next; Ubuntu/11.04 (natty); en) Presto/2.9.168 Version/11.50
The os looks fine to me, but my plugin doesn’t display a flag.
Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30
oh, that’s right, there’s not a flag.
I mean that the os name is ‘Red Hat Enterprise Linux 4′ but the icon before os name is ‘mandriva.png’ icon.
Opera/9.80 (Macintosh; Intel Mac OS X 10.7.0; U; en) Presto/2.9.168 Version/11.50
Ah, good catch! Thanks!
I’ll release an update in the near future with a fix for this.
Opera/9.80 (X11; Linux i686; U; zh-cn) Presto/2.7.62 Version/11.01
Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0
I can’t get this plugin to show Linux Mint (which I am using). The list suggests the plugin should support it, but for some reason it does not.
Any ideas?
Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0
Looks like Linux mint is not sending its user agent. Hmmm
Opera/9.80 (X11; Linux x86_64; U; Edition Next; Ubuntu/11.04 (natty); en) Presto/2.9.186 Version/12.00
Released WP-UserAgent 0.10.9!
Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0
Thanks for the plugin. One of must-install plugins on my blog.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20100101 Firefox/6.0.1
great plugin! but..any future plan for IP ? adding country flag maybe ?
Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
testing on my work, thanks!
Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 (KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13
Hi Kyle,
How is it going? This is a submission from the Nokia N9 running MeeGo.
Keep up the good work.
Opera/9.80 (Windows NT 6.1; U; Edition Next; en) Presto/2.9.220 Version/12.00
TODO: Make sure Opera Next is detected correctly…
Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20100101 Firefox/7.0
excelent work, god plugins
Opera/9.80 (X11; Linux x86_64; U; Edition Labs Camera and Pages; Ubuntu/11.10; en) Presto/2.9.220 Version/12.00
Opera Labs build: Camera and Pages
Opera/9.80 (X11; Linux x86_64; U; Edition Next; en) Presto/2.9.220 Version/12.00
WP-UserAgent 0.10.10 released!
You should see updates available shortly!
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.10 Chromium/14.0.835.202 Chrome/14.0.835.202 Safari/535.1
test ubuntu 11.10 64bit – chromium
Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
I just downloaded this user-agent plugin, we’ll see how it goes. Thanks for providing it.
Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Well, I installed it, but it didn’t show any comments….So, I deactivated it, re-activated it, changed the DocType in the settings to xhtml, now it works!
Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/11.10 Chrome/15.0.874.106 Safari/535.2
Hello kyleabaker, I have a web site in Cuba using your plugin wp-useragent, recently I added it support to recognize Windows Phone 7, this is the code I used:
if(preg_match(‘/Windows Phone OS 7.0/i’, $useragent) || preg_match(‘/ZuneWP7/i’, $useragent) ){
$title=”Windows Phone 7″;
$code=”win-phone”;
you can find more information about this here:
http://blogs.microsoft.co.il/blogs/shair/archive/2011/12/09/how-to-detect-mobile-device-users-in-your-web-site-javascript.aspx
and here:
http://www.anandtech.com/show/3982/windows-phone-7-review/9
I would like that you add support for Windows Phone 7 in the next version.
I also added support for a Cuban Linux distribution named “Nova”, Nova is a Linux distro based on Ubuntu, Nova is very popular in my country, so this is the code to add support for Nova:
elseif(preg_match(‘/Nova/i’, $useragent)){
$link=”http://nova.cu”;
$title=”Nova”;
if(preg_match(‘/Nova[\/|\ ]([.0-9a-zA-Z]+)/i’, $useragent, $regmatch)){
$version.=” “.$regmatch[1];
$code=”nova”;
}
if(strlen($version) > 1)
$title.=$version;
if(preg_match(‘/x86_64/i’, $useragent))
$title.=” x64″;
}
I hope you add support for Nova and Windows Phone 7 in the next version of the plugin, if you want to do that I can send you Nova logo in 16×16 and 24×24. If you are interested please send me a mail. I have been looking for your mail but I could not find it, that is why I write all of this in this comment. Sorry for my English too because Iḿ not a very well English speaker. Greetings.
Opera/9.80 (X11; Linux x86_64; U; Edition Next; Ubuntu/11.10; en) Presto/2.10.238 Version/12.00
Thanks! I’ll add this into the next update.
Opera/9.80 (X11; Linux x86_64; U; Edition Next; Ubuntu/11.10; en) Presto/2.10.238 Version/12.00
WP-UserAgent 0.10.11 released!
Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.7 (KHTML, like Gecko) Debian Chromium/16.0.912.75 Chrome/16.0.912.75 Safari/535.7
Thanks for this plugin, is so great.
Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7
Hey Kyle,
Downloaded your plugin but still am plagued when trying to upload images from my computer, i.e. error message alerts that there is a Missing Temporary Folder.
Is there an easy workaround? Thx, Veris