Hide your secret files INSIDE photos, videos or other files with OmniHide PRO.

User Browser and OS detection plugin for WordPress



  • Detects and shows commenter’s web browser and operating system (Edit your comment template)
  • Describe an arbitrary user agent string (for general use)
  • Optionally show web browser and operating system icons.
  • If the user is ‘cookied’, it also displays an asterisk * titled with the full user agent string (hover over them to see the full user agent string mentioned in 2). Your regular visitors will not be shown this asterisk.
  • All major browsers detected: Desktop browsers, antiquated browsers, blogging software (for trackbacks and pingbacks), text based browsers, various PDAs and cell phones.

    User Browser and Operating System detection Plugin for WordPress - BrowserSniff
    Sample : Browser sniff plugin used in the comments’ template


  1. Download the plugin: browsniff.txt
  2. Put it in your wp-content/plugins directory and rename it to browsniff.php.
  3. Activate the plugin from your WordPress Plugins administration menu.
  4. (optional) Download web browser and operating system icons: browsers.tar.gz. Extract it in your WordPress installation root directory. This should create a directory browsers filled with icons.
  5. Follow the usage below.
  6. (optional) You can change how the icons look in your CSS by modifying style for selector img.browsericon

UsageTo show commenters web browser description, use the function pri_print_browser("Using ", "", true, 'on');  inside the comment loop. The function has three parameters:

  1. String to be printed before description
  2. String to be printed after description
  3. Whether to display icons or not, set this to true or false.
  4. String to be printed between web browser and operating system description, defaults to ‘on’.

SOURCE  : http://priyadi.net/archives/2005/03/29/wordpress-browser-detection-plugin/

Discover upcoming movies

13 responses to “User Browser and OS detection plugin for WordPress”

  1. http://www.canadagoose-paris.com/doudoune-canada-… looking forward for more articles on your blog Cool to read, worth learning! Keep it up!

  2. Boob jobs says:

    hi there. are you currently serious to help change hyperlinks by using the web site?

  3. Linux is still the best when it comes to stability and Windows for ergonomics:-;

  4. the best operating system is always Linux, after Linux it is Windows XP. Vista sucks-,,

  5. Diego Gray says:

    i love camera cellphones so much, i wish they could have make a 10 Megapixel camera cellphone.''

  6. operating systems can either make or break your system that is why it is wise to choose a vey stable one.~*:

  7. Sarah Clark says:

    i am sort of obsessed with the latest cellphones on the market and i am always on the lookout’-*

  8. For me, the best operating system is Linux because it rarely hangs..,'

  9. What is the latest and most expensive cellphones this year ?-"*

  10. arif says:

    I have put the function above in my footer of my wordpress template, but not result anything… I have follow this instruction well.. Can help me??

  11. Ok, thanks for your code :-).

    Now I'll try it in my local copy and after, if all works great, I'll upload and activate it in my blog 🙂


  12. thinkdj says:

    Hi gialloporpora..

    This plugin is for showing commenter's user agent as it fetches data from WP's saved commenter user agent field.

    For showing a custom code for IE users, try :


    <!–[if IE]>

    // Code for IE goes Here

    < ![endif]–>


  13. Nice plugin 🙂

    I am a new WordPress user, in my previous blog, I used a little script to detect the browser of visitors (no commenter) to show a Warning if they use IE browser, your plugin also detect the visitor' s user agent or only the commenter user agent ?


We’re on Hostgator and we love it

Use coupon BLOGULATE994 and get 9.94$ flat off from any hosting package of your choice!

We're on Hostgator and are extremely happy with the service. Never down, cheap and powerful servers!
Use coupon BLOGULATE994 and get 9.94$ flat off from any hosting package of your choice!

Search Blogulate