WordPress Browser Detection Plugin

I’ve made another WordPress plugin (that makes four of them! go me!). This time it is the WordPress web browser detection plugin. It provides a function that takes user agent string as a parameter and then return a descriptive string. It also provides another function for easy insertion in comment template.

**Features**

* Detects and shows commenters web browser and operating system (for use in comment template)
* Describe an arbitrary user agent string (for general use)
* Optionally show web browser and operating system icon.
* 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). Your regular visitors will not be shown this asterisk.
* Most browsers detected: major desktop browsers, antiquated browsers, blogging software (for trackbacks and pingbacks), text based browsers, various PDAs and cell phones.
* Humiliates those IE users :D.

**Requirement**

WordPress 1.5. WordPress 1.2 doesn’t store commenters user agent, so comment entries migrated from 1.2 won’t have browser description. Some basic knowledge of PHP and editing WordPress template are also required.

**Instructions**

1. Download the plugin: [browsniff.txt](https://priyadi.net/wp-content/plugins/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](https://priyadi.net/browsers/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`
7. Send me correction if an user agent gets incorrectly detected.
8. Send me a better icon if you find out my icon’s quality is not satisfactory :)

**Usage**

To 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’.

String before and after the description will not be printed if there’s no recorded user agent string (as with comments migrated from WordPress 1.2). If the visitor is ‘cookied’ (blog administrator visiting the blog), the function will also print an asterisk titled with the full user agent string (hover to see it). This will ease you to see whether browser detection is functioning correctly. Please send me correction if an user agent string is incorrectly detected.

To find browser description from an arbitrary user agent string, use the function `pri_browser_string(“Mozilla/1.0”, true, ‘on’)`. The function takes two parameters:

1. The user agent string to be detected.
2. Whether to display icons or not, set this to `true` or `false`.
3. String to be printed between web browser and operating system description, defaults to ‘on’.

The function will return a string with the browser description.

*Note*: you can edit the plugin file `browsniff.php` and adjust the variable `$pri_width_height` to set the width and height of each displayed icon file. All of my icons are in standard size 16×16, but I decided to scale it down to 14×14 in this blog.

**Demonstration**

**Changelog**

1.0:

* First release

1.1:

* Added $between parameter. Thanks to [João Craveiro](http://jcraveiro.com/v3/).

1.2:

* Fixes for eLinks

1.3:

* Detects [Shiira](http://hmdt-web.net/shiira/index-e.html). Thanks to CH Chan.

1.4:

* Now detects [Windows Vista](http://www.microsoft.com/windowsvista/default.mspx), [Qtopia/QtEmbedded](http://www.trolltech.com/products/qtopia/index.html), [Danger HipTop](http://www.danger.com/), [Anonymouse](http://anonymouse.org/), [PHP](http://php.net), [Drupal](http://drupal.org), [TypePad](http://www.typepad.com), and several [Samsung](http://www.samsung.com) phones.

1.5:

* Detects Nokia E Series (as SymbianOS), [W3M](http://w3m.sourceforge.net), Openwave UP.Browser, [Mozilla Seamonkey](http://www.mozilla.org/projects/seamonkey/), [Minimo](http://www.mozilla.org/projects/minimo/), [Flock](http://www.flock.com/), [MultiZilla](http://multizilla.mozdev.org/), Sony PSP, [AvantBrowser](http://avantbrowser.com/) and [Opera Mini](http://mini.opera.com/). Also includes various icon updates. Thanks to Frank Aune and Siren.

1.6:

* Detects [o2 XDA](http://www.o2.co.uk), [Dopod](http://www.dopod.com), [Xiino](http://www.mobirus.com/eng/products/Xiino/), [LG Electronics](http://www.lge.com) phones, [Motorola](http://www.motorola.com) phones, and [NTT DoCoMo](http://www.nttdocomo.co.jp) phones.

1.7:

* Detects [Kazehakase](http://kazehakase.sourceforge.jp/).

1.8:

* Detects [Nintendo Wii](http://wii.com/).

1.10:

* Detects all Ubuntu derivatives: Kubuntu, Xubuntu and Edubuntu.
* Detects [Debian Iceweasel](http://en.wikipedia.org/wiki/Iceweasel) and unbranded Firefox (BonEcho).
* Fixes for Nintendo Wii.
* Rearrange order for Debian derivatives.

436 comments

  1. Mas, kenapa browser detectionnya harus begitu banyak else if else if? Kenapa ngga dipisah aja jadi 1 file yg berisi browser information (user agent, etc).

    Jadi kalau nanti ada browser baru, cuma perlu update data filenya aja. Ngga perlu update seluruh pluginnya (ngga perlu ubah source code pluginnya, cuma ubah data).

  2. #13: kalau begitu lumayan sulit kalau mau capture versi browser berhubung lokasi string versi beda-beda untuk setiap browser. ujung-ujungnya nanti cuma ribet coding frameworknya :), sedangkan kalau pakai if elseif seperti sekarang gak sampai 2 jam udah beres :).

  3. #15: string anda adalah Mozilla/4.0 (compatible; MSIE 5.5; Windows 98). looks like IE 5.5 on Win98 to me :). mungkin loe pakai extension firefox untuk mengubah string user agent? atau mungkin juga proxy servernya yang mengubah menjadi seperti itu :)

  4. OK ;) Just one thing: does it display correctly to you, without any aditional spaces? I used a “[space]on[space]” default $between, so that there would always be one space at each side of the word ‘on’ (no problem with dup spaces, becuase HTML eliminates them); otherwise, it would be glued to the end of the browser name.

  5. Question: Where do I add in the code:

    pri_print_browser("Using ", "", true, 'on');

    Where do I add that into the comments template? Did not understand “use the function inside the comment loop”. Any specific location of code I should add this into?

  6. egh soal OS, ada kedetek Fedora, Ubuntu, Suse apalagi windowsnya. Tapi, kalo aku pake Ubuntu, tetapi kedetek hanya Linux, apakah karena aku install binari dari mozilla, dan bukan dari distro?

  7. #36: kalau di stringnya ada fedora, ubuntu, suse atau suse, maka akan ada merk distronya. tapi kalau gak ada, maka cuma ‘linux’ yang akan ditampilkan. jadi kalau install binary dari mozilla gak akan kelihatan merk distronya.

  8. ” id=”comment-“>
    ” width=”40″ height=”40″ title=” Gravatar.Com” hspace=”5″ vspace=”5″ border=”0″ align=”right”>
    Says:
    comment_approved == ‘0’) : ?>

    Your comment is awaiting moderation.

    Aduh.. kok nggak nggak nongol setelah di pasang di comments.php. benar gitu caranya? plugin-nya udah di di aktifkan, lalu apa yang salah yah? emangnya di CSS theme file itu mau di tambah code apa sih??

  9. What file in WP do I edit and ad the code: pri_print_browser("Using ", "", true, 'on'); to?

    Is it comments.php? Thanks in advance.

  10. Pingback: My Mind In Blog
  11. I’m a new wordpress and WordPress Browser Detection user!
    and I don’t where to add EXACTLY ” pri_print_browser(“Using “, “”, true, ‘on’); ”
    I am searching in the comments.php file but don’t know where to add it !
    I’m using wordpress 1.5 with kubrick template.
    Thank you very much for your help
    :)

  12. thanks loh tuk pluginnya…sukses dicoba..
    MAs Priyadi mo tanya dung.. gimana sih caranya kalo mo detect browser tanpa isi comment.. seperti demontrations diatas..

  13. Saya menggunakan Firefox Deer Park Alpha 1. Signaturenya seperti ini: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050603 Firefox/1.0+. Sepertinya tanda plus (+) ndak dikenali yah? Yup, memang nantinya jadi Firefox 1.1 jadi tanda-2 diluar a-z, A-Z, 0-9 mungkin diabaikan?;-P~

  14. what do you mean by put it inside
    “foreach ($comments as $comment)”
    I cant understand… [-( pls. help me! I really want this plugin. its soo CUTE :x

  15. Pingback: Uber Blah!
  16. penjelasan pemakaian pluginnya masih belum terlalu jelas untuk newbie…., mis: put “pri_print_browser(“Using “, “”, true, ‘on’);” inside “foreach ($comments as $comment)”. Lebih baik lagi jika diberi contoh…

  17. wud this work as well, anywhere in the page, i have tried to add this into sidebar but it only shows if you go to comments pages :-).
    what is the code to put anywher eon the page, as you did under demmonstration?.

    btw, awesome work keep up!!

    Selam.

  18. mas pri .. bisa minta panduan yg lebih lengkap gak. soal cara pasang di comments.php .. cause udah dicoba pake template wp standar kok jg gak jalan.. maklum masih pemula euy :D

  19. #78: harusnya kalau disimpan di dalam comment loop gak akan masalah ya. masalahnya kode pasti comment loop untuk setiap template berbeda2, jadi saya susah untuk kasih contoh :(

  20. hello im a newbie on wordpress and its plugins and stuffs …. im using the semiologic theme and i can find the code to where i should put the pri_print_browser in the comment pages … pls help me

  21. sesudah copy browsniff.txt…

    kok browsniff.php nya ngga mau keliatan di control panel admin sewaktu mau di-active-kan..?

    kenapa yah??

  22. Yeah, awesome plugin.. Love the country code one also. Gonna try to get these implemented on my site tonite.

    Thanks!

  23. Hi there can somebody please post a working

    line please. I can’t get it modified to work with the Browser Detection Plugin.
    Thanks

  24. Jen,

    Try this in comments.php

    ” foreach ($comments as $comment) : ?>”
    ” pri_print_browser(“Using “, “”, true, ‘on’); ?>”

    I can’t display code here, tried it in my last post, If you look at the foreach, notice I cut off the first 4 characters plus the space. You need that in both calls. Any questions go to my site, I can post code there.

    JHB
    :)>-

  25. <?php pri_print_browser("Using ", "", true, 'on'); ?>
    place the code at comments.php in your template. I`m success place it because yongky tell me to place <?php          ?>

  26. I put the code into my comments.php file as below:

    " id="comment-">
    Says:
    " title=" at ">post_date)); $comment_datetime = abs(strtotime($comment->comment_date)); echo time_since($entry_datetime, $comment_datetime) */ ?> after publication. -->
    " title=""> at

    " title="'s Gravatar" height="40" width="40" />

    I’m just wondering though, how I can get my comments to show up the same way you have yours here. I really like the look of that.

    Can you tell me what the css is, or if it is done with the css? And how do I show the country?

    Thanks.

  27. Okay, when I am done to adding that plugin and the icons did not display at all even if i have the directory “browsers” in the public_html directory.

    Like that:


    $pri_image_url = get_settings('siteurl') . "/browsers";
    $pri_image_path = ABSPATH . "/xxx/xxx/public_html/browsers";

    And the icons won’t show up. Anyone can help me on that problem? Thanks in advance.

  28. A suggestion: change the two SELECT queries to avoid faviconizing the spam marked comments:

    $posters_url = $wpdb->get_var(“SELECT comment_author_url FROM `$wpdb->comments` WHERE `comment_ID` = ‘$comment_ID’ AND `comment_approved` != ‘spam'”);

    and

    $request = “SELECT comment_ID, comment_author_url FROM $wpdb->comments WHERE comment_favicon_url = ” AND comment_author_url != ” AND `comment_approved` != ‘spam’ “;

    Thank you for this plugin.

  29. Pingback: dhika@batikkejora
  30. Very impressive – I appreciate your support for various mobile browsers. One you’ve left out, though, is the Danger Hiptop (marketed in the U.S. as the T-Mobile Sidekick), which has its own detectable user-agent:
    Mozilla/5.0 (compatible; AvantGo 3.2; ProxiNet; Danger hiptop 1.0)
    This is typically recognized as a mobile browser from the ‘AvantGo’ string, but the ‘Danger hiptop 1.0’ string further identifies the browser as the Hiptop device. Currently your plugin identifies the hiptop browser as Netscape Navigator 5.0! Could it have the correct string added? I would be happy to supply an icon if necessary.

  31. WHERE do I add the code to this

    “?php foreach ($comments as $comment) : ?”

    after the foreach, or the parenthases enclosing the comments words, I can’t figure this out, and I have tried adding it to differnt spots and when I add it then go back to it, the code has disappered, it won’t save it there, please help me:(

  32. Hi, nice plugin.

    Can i suggest that you modify the article, to specify which file needs to be edited and where in the file the line:

    pri_print_browser(“Using “, “”, true, ‘on’);

    should be added, this will make things a lot easier for people trying to install your plugin.

    Thanks

  33. Hello, thanks for this cool plugin.

    I wonder if you could add QtEmbedded to detected
    platforms list. I am writting from a Sharp Zaurus SL-5500 :-)

  34. I Dont think the users of blogs will like it since it make them feel they are being spied on… not a good plugin if you ask me. It is nice enough though.

  35. Hi,
    I was wondering where you put the code :
    ?php pri_print_browser(”Using “, “”, true, ‘on’); ?
    I looked on this page for where you put it in the comments.php file but I could not find it. Also this code : ?php foreach ($comments as $comment) what is that code for? Thanks.

  36. WHY DO YOU MAKE PLUG IN AND NOT HELP SHOW PEOPLE HOW TO APPLY.

    THAT IS LAME: NOT EVERYONE IS CAPABLE TO UNDERSTAND THE STUPID REARRANGING OF THE ALPHABET AND CHARACTERS THAT MAKE THESE IGNORANT MACHINES DO STUFF THAT SHOW UP ON THE SCREEN. BAHHH!!!!!!!:-w

  37. \:d/

    I FIND OUT, NOW IT WORKD. GLAD TO SEE THIS AND PLEEZE SHOW PEOPLE HOW TO MAKE CODE WORKIN NEXT TIMES THANKS

  38. #127, #128: thanks for all the good words. themes are different from each other, and it is impossible to me to put exact instruction for every available themes out there.

  39. Has anyone of you tried this plugin with the new 2.0 version of WP yet? I’d like to know whether they’re compatible before updating :) .

  40. Excellent plugin – thanks for it. For future releases, it might be worth while being more explicit about where the text needs to be inserted. Admittedly, it only took me a few minutes to work it out (and I know nothing about coding) but from the comments here it seems a lot of people are having difficulties.

    Thanks again.

  41. Pingback: Stony’s Blog
  42. i’m using it.

    i can see that my pingback was received from the states, even though i’m in portugal.

    anyway, i’d like to thank you for the cool plugin.
    it works like a charm.

    thanks.

  43. I am the only one where the sniffer doesn’t work? I implemented it as plugin in WP 2.0 and the function is called from within comment.php of my theme. Then I stored the browser icons in /browsers – but I don’t get any thing – no message, no icons…

    Thanks.

  44. #144: my code adds spaces after ‘Using’ and around ‘on’, you probably need to add one before ‘Using’ yourself. an example would be more helpful.

  45. #146: i see spaces around them in the HTML code, must have something to do with your CSS. try modifying styles for selector ‘img.browsericon’

  46. Hmm, still can’t figure it out. Though I would like to know if you know how to get rid of that * that is the “source” and just refershs the page.

  47. \:d/

    *-:)*-:)*-:)*-:)*-:)*-:)excelente!!!!!!!!
    *-:)*-:)*-:)*-:)*-:)*-:)

    Es algo que se ve(*) genial y muy útil(*) :-), la verdad se sorprenden los visitantes

  48. search < ?php comment_text() ?>

    and add the function pri_print_browser(“Using “, “”, true, ‘on’);

    < ?php pri_print_browser("Using ", "", true, 'on');?>
    < ?php comment_text() ?>

    in browsniff.php i change

    $pri_image_url = "http://xxxmywebxxx.net/browsers/";
    $pri_image_path = "/home/xxxxxx/public_html/browsers";

    works fine!!!!!! :)>-

    México
    Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.8) Gecko/20051111 Firefox/1.5 :x
    Debian Gnu/Linux :d

  49. mau dong pluginnya tapi gimana disini kok ada benderanya, gimana atau dimana dapetin coment plugin yang ada benderanya itu?

    please email me dong pak

  50. Browser: SeaMonkey 1.0 (mozilla.org/projects/seamonkey/)

    Send correction, user agent gets incorrectly detected.

    Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0

    (Ex Mozilla Suite)

    update icon and user agent please :-)

  51. Thanks to the author for writing this, it’s so cool! ;)and thanks to 153. for explaining where to put it!! :d I had tried unsuccessfully to get this plugin working before and I couldn’t figure out exactly where to put it. Now I am really happy to have it working!

    It is just so awesome. It shows when I have made posts in IE :”> and it also shows the different versions of Firefox that I have used. It is very interesting to see what my readers have been using too. Thanks again.

  52. Hi, I cannot get it to work with the comment this is the message display on the comment area. You know what I did wrong ?

    Rocky Says: pri_print_browser(“Using “, “”, true, ‘on’);

  53. What code would I use to make this show up, on another part of my website, not in the comments. works for me, in the comments section, but not anywhere else on the site.

  54. Pingback: Himitsu » Plugins
  55. Thank you very much!! I got it working just changing the absolute path and the siteurl. Congrats, it’s a great plugin. Now it’s time for the IP to Country :)

  56. To show commenters web browser description, use the function pri_print_browser(“Using “, “”, true, ‘on’); inside the comment loop.

    I don’t understand what you mean by “inside the comment loop”. Can you please e-mail me (nathanr @ home.nathanr.com)? Thank you.

  57. Hei. is ther anyody, can help me. Coz the usage is not specific in giving direction. OMG. Please put such code !!!!!!!/:)

  58. Very cool! One suggestion: I’d like to be able to have the browser version and OS show up as I hover over the icons. That way I can just show two icons and allow more detail as they get rolled over. Good work though!

  59. OOh, yeah. “Unknown browser” (w3m)
    Allright, I admit it. I have a lot of computers… And lots of systems and browsers and I have nothing to do. :)

  60. If you could please add Sony PlayStation Portable as a system.
    Mozilla/4.0 (PSP (PlayStation Portable); 2.00)

  61. For all having problem inserting the code: Inside your comments.php-file, search comment_text(). After that line add (and skip the space after

    That means with a (again – skip the space after at the end

    I think the most people have not got the php-beginning and end thing here.

  62. I don’t understand step 4 :(( how do i extract it?? Where is the wordpress installation root file?? SOmeone please help!!!!

  63. I want to put this on a WordPress static page. What code do I need to put in through the Admin interface to edit the page in order to see the browser info?

  64. I don’t understand step 4 :(( how do i extract it?? Where is the wordpress installation root file?? SOmeone please help!!!!

    Wendii, to extract icons from a tar.gz file, you need a decent unzipping program, like WinRAR or 7-Zip (7-Zip is free).

    To answer your second question, the WordPress root directory is the topmost directory of the WordPress folder on your webserver which has directories like “wp-admin,” “wp-content,” “wp-includes” and so on. Just upload the folder called “browsers,” which is inside the .tar.gz file, to this directory and the plugin should be able to find the icons.

  65. Kewl plugin! But when I activate it I recieved this error:

    WordPress database error: [Access denied for user ‘myuserhere’@’localhost’ to database ‘blog’]
    ALTER TABLE wp_comments ADD COLUMN comment_subscribe enum(‘Y’,’N’) NOT NULL default ‘N’

    Any clue how can I fix this?

  66. I give up. I’ve tried putting that code everywhere inside comments.php. If I hit your PayPal button or Amazon wishlist can you just tell me, in plain English, as if speaking to a three year old child, WHERE the string goes?

    And how to implement the country/flag details?

    Thanks!
    Joni

  67. Hi,

    Great job! I like very much your plugin and I’m using it in my weblog.

    Only one think… I’ve detected that new files shiira.png and sony-psp.png have wrong permissions in the file browsers.tar.gz. They don’t have read permission for group and others like the rest, so they are not displayed in the web browser for the anonymouse user.

  68. Hi,
    this sees to be a very nice plugin.
    However I got stuck with the installtion.
    I am not sure where to put – pri_print_browser(“Using “, “”, true, ‘on’); – inside the comment loop.

    Can anyone please give me a pointer where exactly to place it?
    Thank you!

  69. Pingback: Gretong
  70. hello there thanks for the plugin. I installed it yesterday but apparently I am not able to use it as of yet since I can’t seem to figure out where I should put up this codes:

    pri_print_browser(“Using “, “”, true, ‘on’);

    you typed here in the comment but where exactly in the comment sections part?

  71. Hello
    I have try diffrent things what i read here, but i have some errors, can anyone tell me what i do wrong?

    Fatal error: Call to undefined function: pri_print_browser() in D:\user\wervershovers\www\w\wordpress\wp-content\themes\freshy\comments.php on line 30

    Here is the code:

    ?php foreach ($comments as $comment): ?
    ?php pri_print_browser(“Using “, “”, true, ‘on’); ?

    Code is with the offcourse

    thanks and keep going, perfect plugin (when its works)
    :”>

  72. For anyone who just wanted the browser icon without the OS string or any text you can add this function to browsniff.php and then call it instead of pri_print_browser()

    function pri_image_only(){
    global $user_ID, $post, $comment;
    get_currentuserinfo();
    if (!$comment->comment_agent) return;
    list($browser_name, $browser_code, $browser_ver, $os_name, $os_code, $os_ver, $pda_name, $pda_code, $pda_ver ) = pri_detect_browser($comment->comment_agent);
    echo pri_get_image_url($browser_code, $browser_name);
    }

  73. Mas..rencananya aku khan mo pindah dari WordPress ke Drupal, bisa nggak plugin ini dipakai? Terus kalau gak bisa, mungkin gak dilakukan perubahan / edit agar bisa jalan di Drupal??

    Terima kasih.
    Maju terus IT Indonesia

  74. skr gw pake Gran Paradiso (firefox 3 belom jadi –kalo gak salah)

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2) Gecko/20070206 GranParadiso/3.0a2

    masih didetek sebagai

    You are using Mozilla Mozilla 1.9a2 on Windows Windows XP

  75. HI!!! This for this awesome plugin. this is my 2nd time downloading it. I am having problems about where to put in in my comments template, and I think i’m putting the function in the wrong place. One person said to put it in the comments loop then another said to put it after the function. which one is it? I’m really confused…. :(( I really, really, REALLY wanna use this plugin. Can anyone help me out??

    Thanks in advance for any future help or fast responses.

  76. Pingback: Warung Sinau
  77. i’m on ubuntu and this plugin, inside my blog atleast, says just linux. let’s see what goes down here.

  78. Apple’s having fun with user-agent syntax. This is the Safari 3 beta on Windows XP…

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/522.11.3 (KHTML, like Gecko) Version/3.0 Safari/522.11.3

    …but it’s detected as “Safari 522.11.3 on Mac OS X”

  79. I must say you have a minor representative tutorial for those who don’t know where to put the code. Inside the comment loop doesn’t say anything – really. However, by doing this way it will function. Remember to change the gap between the outer . I put it there in purpose so you can see the whole code in action ;)


    //Lillan

  80. This isn’t detecting Netscape 8.x.x rendering as IE. :(
    Upon first launching the brower, the user agent string doesn’t list “Netscape”. How can this code catch Netscape 8.x.x?

  81. how come every time I post, the plugin says I’m using linux. To be particular I’m on a new gentoo install on an ibook g3. wth :((

  82. Hey man! Is there a way to put only the Operative system? Like, Posted under (icon)(the name of the operative system)??

  83. Hey guys, if you are using linux and the OS is not detected as you’re using Gentoo, Slackware or any other distribution that is classified just as “Linux”, type “about:config” in the mozilla firefox adress bar and press Enter, then in the filter bar type “general.useragent.extra.firefoxComment”, double click on it and insert the name of the distro you’re using ;)

  84. Does anyone have it in the Freashy theme for wordpress 2.2.1??

    I can´t make it work!!! :((

    Please help!! I love your plugin
    :d

  85. I found Windows XP 64bit will be displayed as Windows Server 2003. The browser information:

    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)

  86. Bos Masih Tidak mengerti nih
    Misalnya scriptnya kayak :
    foreach ($comments as $comment) {
    if ( ‘comment’ == get_comment_type() ) {

    di t4-kan dimana yah ?

  87. mas pri, gmn caranya agar yg muncul termasuk ip address dari komentator? yg bikin saya herean knp cuman gambar negaranya aja yg ditampilin..

  88. Great plugin. I have been using it for ages now. I have one small bug report though.

    The plugin detects Safari incorrectly – it should say: 3.0.3 (522.12.1), rather than just 522.12.1

  89. Oi, already I activated the extension in the WP, but now it did not change nothing, what more I have to make?

    Debtor.

    I hug.

  90. Terima kasih banyak :) .
    There is some minor issue with Safari 3 (Public Beta) on Windows. It print out as
    Using Safari 522.15.5 on Mac OS X
    Just to let you know.

  91. same with #312..After upgrading my Firefox in Ubuntu from 2.0.0.3 to 2.0.0.7, I got the weird display. Browsersniff recognize my Ubuntu just as a Linux :((

  92. Hello,
    For —FRENCH—

    You can find our french traduction for install and customise for this plugin Here.

    You can find too, some changes.

    * Add a define to better multiblog usage.
    * Add a better ( i think) place to store picture

    (

    Priyadi Iman Nurcahyo -> feel free to join us with the comment mail :d/ and keep it if you need to contact us !

    You are Here :
    Le meilleur plugin pour wordpress ( Best plugin for wordpress )

    and

    Optimisation surfeur ( optimisation for visitor )

    Priyadi Iman Nurcahyo -> you can del everything between brace “()” if you want !

    The message was for you
    )

    Thanks for this plugin!

  93. Thanks for the plugin, I have been trying to find one that just displays the icons for the flag, browser, and operating system? I am sure I can make this one work, I was just looking for the icons. Thanks again, Scott

  94. Pingback: tenthofjune
  95. Mas Pri, waktu di WP 2.2 dapat brjalan lancar. Tetapi ketika upgrade ke 2.3.1 kok ndak muncul. kenapa? masalah compatibilitas?

    Pls.. support new WP version donk…

  96. mas saya mo tanya kok Plugin ini gambar2 nya ga mucul yach di Blog saya?? mohon pencerahannya donk mas. udah di utask atik juga tetep ga bisa itu ada salah dimana yach?? gambar2 nya ga keluar

  97. Wah, banyak yg sukses install, tp jga banyak yg bingung. Coba d posting dengan contoh theme default bawaan wp. Pasti ntar smua pada ngerti, termasuk saya. U wp 2.3 ok gak

  98. Hello!!
    in my comments.php where i have to insert pri_browser_string(“Mozilla/1.0”, true, ‘on’)?
    Thanks!

    “”

    %s
    %s
    %s %s
    %s
    ‘,
    $oddcomment,
    ($authorcomments && get_comment_author() == $the_author ? ‘ authorcomment’ : ”),
    $id,
    sprintf(__(‘%s says:’,’mandigo’),get_comment_author_link()),
    ($comment->comment_approved == ‘0’ ? ‘‘. __(‘Your comment is awaiting moderation.’,’mandigo’) .’‘ : ”),
    $id,
    sprintf(__(‘%s at %s’,’mandigo’),get_comment_date(__(‘F jS, Y’,’mandigo’)),get_comment_time()),
    function_exists(‘get_edit_comment_link’) && current_user_can( ‘edit_post’, $post->ID ) ? ‘ – ‘. apply_filters(‘edit_comment_link’, ‘‘. __(‘Edit’,’mandigo’) .’‘, $comment->comment_ID) : ”,
    apply_filters(‘comment_text’, get_comment_text())
    );

    /*
    if ((get_option(‘mandigo_trackbacks’) == ‘above’ || get_option(‘mandigo_trackbacks’) == ‘below’) && $comment->comment_type == ‘trackback’):
    $trackback_list .= $comment_list_item;
    elseif (get_option(‘mandigo_trackbacks’) == ‘along’ && $comment->comment_type == ‘trackback’):
    $comment_list .= $comment_list_item;
    endif;
    */
    if ($comment->comment_type == ‘trackback’):
    if (get_option(‘mandigo_trackbacks’) == ‘above’ || get_option(‘mandigo_trackbacks’) == ‘below’):
    $trackback_list .= $comment_list_item;
    elseif (get_option(‘mandigo_trackbacks’) == ‘along’):
    $comment_list .= $comment_list_item;
    endif;
    else:
    $comment_list .= $comment_list_item;
    endif;

    if (‘alt’ == $oddcomment) $oddcomment = ”;
    else $oddcomment = ‘alt’;
    /* pri_print_browser(“Using “, “”, true, ‘on’); */
    endforeach;

    if (get_option(‘mandigo_trackbacks’) == ‘above’ && $trackback_list):
    ?>

  99. Thanks for the great plugin!

    I have a feature request, perhaps for a future version:

    Option – print *only* the icons

    Currently, the plugin prints the string as text, and can optionally print the icons associated with the strings. It could also be desirable to display only the icons.

    Is this possible/feasible?

    Thanks again!

  100. Oh, another suggestion (sorry for the multiple posts):

    IMHO, putting the “browsers” directory in the WP root directory is not the best practice. I would highly suggest putting the “browsniff.php” file inside of its own directory beneath “plugins”, and then putting “browsers” inside that directory.

    In my case, I put a “browserdetection” directory in “plugins”, then put both “browsniff.php” and “browsers” inside this directory. (I of course had to change the img paths in the plugin.)

    This method is cleaner, and is easier to ensure that all of the necessary plugin files are captured in a backup/restore/upgrade/etc.

  101. quien me ayuda :(( ya hice todo pero no se ve nada, solo me imprime codigo :o , please help
    my site alone print code:
    pri_print_browser(“Using”, “”, true, ‘on’);

    :((:((:((:((:((:((:((

    can’t see images nothing please help . i not understand english :”>:d

  102. lho kok malah IE? sebelumnya saya ngetes pakai safari dgn windows juga ga tampil…napa ya??:-?

    Mas, kapan pluginnya mo dibenerin?

  103. how come the images won’t show up?

    i own a subdomain… can you please try to make your instructions clear? i’m just a newbie… Hope you’ll consider helping people like me. :-\”

    My point is that you didn’t point out specifically where and what to change in browsniff.php… my only problem lies in browsniff.php. NEED HELP HERE!!!:-w

  104. haha… i finally figured it out.. it does not detect well on where I am, though.

    I’m not in Makati, Philippines! I’m in the Southernmost part of the Philippines! /:)

  105. :(( duh mas bon berhasil juga :(( , gmn sih mas caranya ? ini kan aku dpt kode ini

    lalu aku sisipkan jadi seperti ini lengkapnya :

    pri_print_browser(“Using “, “”, true, ‘on’);

    tp koq ttp blm ada perubahan mas ? apa msh ada yang salah dalam peletakanya ? Trim’s respon nya mas :)

  106. :(( duh mas bon berhasil juga :(( , gmn sih mas caranya ? ini kan aku dpt kode ini

    lalu aku sisipkan jadi seperti ini lengkapnya :

    pri_print_browser(“Using “, “”, true, ‘on’);

    tp koq ttp blm ada perubahan mas ? apa msh ada yang salah dalam peletakanya ? Trim’s respon nya mas :)

  107. :(( duh mas bon berhasil juga :(( , gmn sih mas caranya ? ini kan aku dpt kode ini

    ” ”

    lalu aku sisipkan jadi seperti ini lengkapnya :


    function pri_print_browser(“Using “, “”, true, ‘on’);”

    tp koq ttp blm ada perubahan mas ? apa msh ada yang salah dalam peletakanya ? Trim’s respon nya mas :)

  108. Thanks for the plugin! It’s fantastic!

    The line “pri_print_browser(“Using “, “”, true, ‘on’);” goes in comments.php of the theme you are using…


  109. Hi Priyadi, certainly a great plugin but not yet tested because I can’t get your icons. I got this with all browsers when I try to download them: “You are not permitted to download the file “browsers.tar.gz”.”

    Please could you send me the file by email ? Thanks

  110. hi,

    i would like to use your script without an wordpress installation.
    Is there a version available, that works with the $_SERVER[‘HTTP_USER_AGENT’] variables?

    It would be great, if you give me an answer via Email.

    Thanks!

    JoJo

  111. Justo lo que estaba buscando para mi blog, hace tiempo lo utilicé se me perdió pero ya lo encontré de nuevo :)

  112. It’s really great information..
    Tapi ini cuma buat wordpress yah Pak?? kalo Blogspot, gimana??

    makasih…salam kenal, Anda bener2 luar biasa..
    Sukses selalu..

  113. Hi, here is the iPhone user agent, Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543 Safari/419.3

    It would be great if you could add it :)

  114. Hi,

    Does your plugin also show the location of the poster like here on your site ? Or is that an additional plugin you’re using ? Thx.

  115. Pingback: WordPress Plugins
  116. Pingback: Plugins « x0x0

Leave a comment

Your email address will not be published. Required fields are marked *