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.
done.
langsung pasang.
thanks.
wah keren.
coba test dulu ah :)
wah plugin baru
pasang ach :)
:-? sip om thank ^:)^:)>-
Pasang ah.. :) Kalo buat smileys gimana ama comment preview gimana Pri :-@
:)>- bagus bisa detect mobile platform…
sayang cuma WP 1.5:((
keren sekale…
coba di blog gw ah….
kewl!:d
ngetest dulu …. OK
keree…ennnnnn :)>-
ikutan ach \:d/
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).
Sip udah di pasang di blog gw.. hore….
loh kedeteknyan ako win 98 dan ie5.5? padahal gw pake win 2k and firefox 101??
gak tertarikkkk biasa aja lagi :-?
Suggestion: a 4th parameter $between (defaulting to ‘ on ‘ or something), to make it easy to display things in some language other than English.
Pernah nyoba paket PEAR Net_UserAgent_Detect ngga?
*penggemar PEAR*
Btw, data user-agent yg dipaket segitu banyak browser dapet dari mana?
Pernah nyoba paket PEAR Net_UserAgent_Detect ngga?
*Penggemar PEAR*
Btw, data user-agent yang dipake browser sgitu banyak dapet dari mana?
Already did it; tried to send you the corrected source to your mail, but was blocked by your ISP :o
You can see it here.
#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 :).
#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 :)
#17, #20: I also already did it, but thanks anyway.
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.
Nevermind; forgot to check out below that you put the space at another point of the algorithm — more efficient that way, indeed. ;)
#18: baru lihat Net_UserAgent_Detect, gak terlalu suka, dan juga dukungan browsernya sedikit.
gue udah masang juga :)>-
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?
Protes ah, logonya Mac OS X kok jelek amat sih :-w
#30: inside the loop that prints each comments, you will find it in comments template.
#31: taken straight from apple.com’s favicon, blame apple! :D
This is great, thanks a lot!
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?
#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.
Works great. Thanks a lot.
Genial ;-)
” 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??
Perfect :)
Works great. :)
Barusan Pasang :d
Another great work man. Already using most of ur plugin for my blog. Keep up the good work. :)>-
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.
#52: yes, put it in comments.php if your theme has it
cool stuff! :d
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
:)
#56: put it inside “foreach ($comments as $comment)” loop (it is the comment loop).
asik… akhirnya bisa juga mas scripts nya ;)
thx yak :d
Cool stuff
thanks loh tuk pluginnya…sukses dicoba..
MAs Priyadi mo tanya dung.. gimana sih caranya kalo mo detect browser tanpa isi comment.. seperti demontrations diatas..
#64: saya pakai plugin phpexec.
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~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
*test*
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…
thanks dah sukse neh..walau aga telat makenya..ga sampe 5 menit re-configure..good job bro
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.
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
#77: echo “You are using” . pri_browser_string($_SERVER[‘HTTP_USER_AGENT’], true);
#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 :(
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
Hey,
Anyone got transparent icons?
Thanks,
Will
Well I’m not using IE either! =))
Great Code!! =d>
sesudah copy browsniff.txt…
kok browsniff.php nya ngga mau keliatan di control panel admin sewaktu mau di-active-kan..?
kenapa yah??
btw, udah bisa kepasang.. thanks.. good code ^:)^
Pretty interesting! :)>-
Muy buen plugin :d
Yeah, awesome plugin.. Love the country code one also. Gonna try to get these implemented on my site tonite.
Thanks!
Hi there can somebody please post a working
line please. I can’t get it modified to work with the Browser Detection Plugin.
Thanks
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
:)>-
<?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 ?>
hei,perfect plugin!:)>-
Very nice plugin.
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.
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.
Never mind. I finally got it working.
A suggestion: change the two SELECT queries to avoid faviconizing the spam marked comments:
and
Thank you for this plugin.
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.
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:(
Om?Bisa dipasang di blogku kagak??
#110: bisa, asalkan pakai WordPress ;)
nice plugin.. lalalala
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
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 :-)
Wah pusing juga nich rencana mo saya pasang di web saya :(
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.
Excelente! Muchas Gracias!!!!:)
\:d/ we using it \:d/
:x Thx :x
Update ke 1.4 berhasil, cuma mau nanya mas?
Itu image browser ndak nambah kan?
Kalau nambah saya tak download lagi :D
#122: nambah dong :)
Excelente!!!! :d :)>-
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.
sedot dl ah,,thanx ya
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
\:d/
I FIND OUT, NOW IT WORKD. GLAD TO SEE THIS AND PLEEZE SHOW PEOPLE HOW TO MAKE CODE WORKIN NEXT TIMES THANKS
#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.
This plugin also works on WordPress 2.0 :D
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 :) .
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.
setelah dicoba …. eh bisa tuh :D
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.
I just want to show icons – is this possible?!
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.
One question, how’d you get the spaces on either side of the words “Using” and “on”
#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.
Well, playground.pixelpolarity.com (clickon a commenter) displays it without any spaces.
#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’
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.
Thank you man,
The plugin is working, even if I had to figure out where to put it exactly.
Thank you
Ignore my comment about the *, I should learn to read. :”>
\:d/
*-:)*-:)*-:)*-:)*-:)*-:)excelente!!!!!!!!
*-:)*-:)*-:)*-:)*-:)*-:)
Es algo que se ve(*) genial y muy útil(*) :-), la verdad se sorprenden los visitantes
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
mau dong pluginnya tapi gimana disini kok ada benderanya, gimana atau dimana dapetin coment plugin yang ada benderanya itu?
please email me dong pak
maxthon detek nggak ?
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 :-)
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.
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’);
I gotta try these man… :x
Hi,
Anyone know of some transparent BG icons for the browsers? The ones that I have a white BG. Thanks…
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.
Wow, keren abis :)>-
Nyoba jajal di website saya ah, itung-itung belajar :-“
Testing this because I can’t get it to work on my site. :(
Man, suck a good work! Thanks!
well working plugin!!
It’s possible to have it to detect Flock browser?
Thanks!
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 :)
I cant get this to work with Regulus 2 (with wordpress 2.0.2)…any help?
plugin apaan sih ?
Ok, i got it to work :)
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.
Awesome plugin Thanks!
cool! I put it in my weblog!
Hei. is ther anyody, can help me. Coz the usage is not specific in giving direction. OMG. Please put such code !!!!!!!/:)
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!
So… what am I using??? :-?
Explorer 1.5? Mmmm….
Not that either…
Mac OS 9?!!!
What am I now, I wonder…
The os wasn’t detected above!!!!
Never heard o the browser I’m using… I wonder if it will show up…
Nope. ^That was “Multizilla”
This is FUN!!!!
OOh yeah!!!!!
Did I try this one?
0oh! I almost forgot my BSD machine!!!
And my Sun!
And this one!
Ah, what about Irix?
I have OS X too!
Wheee!
Whoops, just noticed – there isn’t an icon for IRIX and BeOS! What is this?!
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. :)
tož teda testuju :d
2nd test
Great one!!!
Great plugin, thanks. I wonder why I never thought of that before :)
If you could please add Sony PlayStation Portable as a system.
Mozilla/4.0 (PSP (PlayStation Portable); 2.00)
Great plugin! Thanks!*-:)
For all having problem inserting the code: Inside your comments.php-file, search
comment_text()
. After that line add (and skip the space afterThat 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.
I love the plugin. Any way to can be updated to recognize Firefox 2 alpha builds as such instead of Mozilla?
Excellent plugin :)>-
Great plugin! Thank You Very much.:>
Mu guapo este plugin :)>-
I don’t understand step 4 :(( how do i extract it?? Where is the wordpress installation root file?? SOmeone please help!!!!
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?
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.
Worked like a charm, Thanks for building such a useful and gr8 plugin
The necessary plugin (:
It is established easily and perfectly works.
Thank u so much!
kewl…
sudah diinstall tanpa masalah… :)
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?
amazing plugin it works great on my site! thankyou so much!
Excellent plugin thanks:d
Hey Priyadi,
your plugin is great, and after finding out where do I have to put it I got it to work. Unfortunately it only shows when I created a comment. After I refresh the page the Browser and OS information is gone.
an example where I put a comment it shows first the browser and OS
Feel free and test it for yourself, write a comment and refresh the page, it’s gone.
Any suggestions?
I really appreciate any help
Thanks
Alex
my template is black.. anyone has transparent background icon? :(
Thx Pri, gua pake di puresaturday.info :d
good plugin :)
my template is black too.. and anyone has transparent background icon?
Udah kucoba mas pri, alhamdulillah bisa aku pake WordPress 2.0.4, insya Allah akan terus belajar neh. Makasih atas ilmunya.. :)
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
still great plugin..:D
Have got Internet Explorer 6 under Linux lets see if he interpret it correctly
cooooooooooooooool
it works
nice work, thanks! \:d/
numpang ngetes om.. :D
ngetes lagi..
nice plugin.
kok…aku nggak bisa ya…salah dimana…aku pake WP 2.04.
Thanks for this nice plugin
useful and interesting plugin:d
testing!
any help for WP 2.0.4?
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.
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!
Very nice plugin, but when is the upgrade??
:d:d
patut dicoba ini… ok ok….
pri_print_browser(“Using “, “”, true, ‘on’);
ini diletakkan dimana ya….
Aku kok agak bingung
It detects me as Mozilla 1.8 when I’m running a Intel Mac optimized Firefox build. Can we program that in somehow?
#245: uh, i thought bonecho was an early alpha version of FF2?
cool plugin
Great plugin!
bagus en mo pasang…. tapi percuma yg koment di blog gw jg gak banyak hehehehhehehehhe\:d/:-“
fantastic! someday I’ll try to make it look good on my blog too :d
Awesome plugin, dead easy to install. Great work! :D
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?
i like thist plugin
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)
:”>
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);
}
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
Great plugin!! I’m using it and it’s fantastic!! :d:d
Plugin yang keren. Test dengan operamini di nokia e61.
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
Hi could you please add useragents for Playstation 3.. Thanks.
Thank you very much. I have made use this plugin on my site.
Hi Priyadi!
:d/ Just want to thank you for this great plugin, it works great!
Regards,
Diego
http://www.profesorblog.com
http://www.drbolsa.com
nice :)
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.
Nice plugin!
Will there come any transparent icons?
Thank you! Works every time!:)
Wew… akhirnya ketemu juga nich plugin keren buatan orang indonesia :D:d/
mau nyobain pluginnya boleh ya mas priyadi :)
Baru sahaja memasang plugin ini di blog saya. Plugin ini memang ganteng dan bagus banget!
Bagus sekali :)>-
makasih pluginnya Om..
sudah saya pasang di blog saya.
If I post a comment from Ubuntu and Swiftfox(like this), the plugin dont detect it correctly
LOL, and I live in Oviedo, not Sevilla, more than 1000km of error ;)
wah, keren banget, dah donlot, tp mau coba dah ngantuk…
Hi,
may i use your plugin-code for my very popular wordpress statistics-plugin Counterize II? You can see the results on http://www.navision-blog.de/counterize/blog-statistik/.
Of cause your name and url will be published as reference.
Regards,
Steffen
#276: no problem :)
cool thanks.
The file is located on: \wp-content\themes\your theme\comments.php and then look for . There is the place.
i’m on ubuntu and this plugin, inside my blog atleast, says just linux. let’s see what goes down here.
Thank you, plugin works great even on the brand new WP 2.2 :)
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”
Windows XP. Wish I could submit a fix… don’t know php yet. :)>-
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
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?
How about support for Safari for windows? If Safari is detected it defaults to Mac
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 :((
Great plugin!!! :)>-
Thanks.That’s a nice plugin. :d/
Hey man! Is there a way to put only the Operative system? Like, Posted under (icon)(the name of the operative system)??
thanks plugin-nya
Hey! Very useful plugin!:)
Great plugin :)
I had to give credit where it is due. I wrote a review on this plugin along with the Recommend Google Pack.
Full article http://impaul.com/?p=51
how to track what kind of O/S that commenters use? i have a little problem with unrecognized O/S. this is the address about my problem : http://blog.dzaia-bs.com/2007/05/new-things/#comment-225
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 ;)
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
Mas Pri, mohon ikutan pasang pluginnya ya :D Thanks a lot , keren euy.
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)
I really like it! I think I am going to use it in my weblog…
Bos Masih Tidak mengerti nih
Misalnya scriptnya kayak :
foreach ($comments as $comment) {
if ( ‘comment’ == get_comment_type() ) {
di t4-kan dimana yah ?
Safari versi Windows, dianggap sebagai Safari yang jalan di Mac OS :D
mas pri, gmn caranya agar yg muncul termasuk ip address dari komentator? yg bikin saya herean knp cuman gambar negaranya aja yg ditampilin..
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
kya na keren.. mw coba ach… :)
Doesn’t detect Mandriva Linux. Booo!
It’s very easy to detect – the general.useragent.vendor string in Firefox is ‘Mandriva’.
Does this still work with WP 2.2?
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.
Can you port this great plugin for Nucleus (http://nucleuscms.org) users?
Is there a way to only show icons and have the text be a title attribute of the icon?
this is really really cool! i love it! my blog is more cool now :) thank you!
I’m using ubuntu feisty, and it only shows me as generic linux. :(
nice plugin
Can you make some icons transparent? Like IE, Windows and Safari. It looks awful on my gray background. Thanks.
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.
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 :((
Thanks..
[…] Açıklamalı 232 WordPress eklentisi (Agu. 15, 2007 !!) (WordPress plugin list),[…]
does it work for WP 2.3. Cz it doesnt show on my blog.
Cool!
Priyadi Iman Nurcahyo,
Plugin saudara tidak boleh detect Amaya. HTTP User Agent nya adalah amaya/9.99 libwww/5.4.0. Mungkin saudara boleh menambahkannya nanti :)
mas Pri.. plug-innya udah WordPress 2.2 compatible ga ???
im using flock 1.0 on Debian Gnu/Linux
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!
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
Umm.. nice! :)
AWESOME.
Can you make another plugins?
Yaaay! This plugin rock my socks offff!! :)>-
Peace y’all!
OH NO! It’s still 16×16 !
:(
=d>=d>=d>=d>
good pligin , excellent!
the plugin works like a charm. Thank you for creating this awesome tool! now i can see what my users are using
Thanks for the post, installed the plugin on my blog Ask Dr. P and it works ok. cheers
Great job! Ubuntu Linux is now detected! ;)
keren…
Plugin wordpressnya apa lagi ya?
ok thx a lot
Very cool!
Thanks so much…
pri, saya pake navigator 9.0.0.5 di osx86 kebacanya masih firefox 2.0.0.11
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…
running well on WP2.3.2 :-\”
nice plugin :-*
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
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
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):
?>
Hi! this is a great plug-in.:d I wonder if i can customise is easily..:-?
thaks you! :)
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!
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.
:d/ berguna banget .. tapi saya masih bingung nempatinnya :d
saya malah ga cuma bingung.. tp emang dasarnya kaga bisa :d:d
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
trying using Safari 3.0 Mac OSX
wekekek sip bgt oms …
mantaf, ktemu juga nih plugin … :d
tetep berkreasi :)>-
Gimana sih nampilin gambarnya?
Tes pakai Browser Safari 3.0.4 Beta OS Windows XP
Tes lagi pakai Browser Avant 11.6 OS Windows XP
Mas pri pluginnya ada yg ga beres nih…saya kan pake XP
lho kok malah IE? sebelumnya saya ngetes pakai safari dgn windows juga ga tampil…napa ya??:-?
Mas, kapan pluginnya mo dibenerin?
Nice!!
does it work with wordpress 2+??
vamo ver se funciona:):):):):):):):)
:d:d:d:dagora tô no linux
Wow keren mas Pri, tapi ada yang untuk Blogspot nggak ya? kalau ada kasih tau ya mas Pri, thank you ;)
hi there.com plugin but :
Does anybody know if tis script is compatible with WordPress 2.5?
Thanks in advance for any help on this!
turkbaron
Yes, this cript is compatible with the 2.5 edition!
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
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! /:)
:d/:((:((:”>:d
Thanke youuuuuuuuuuuu
test
testing
ANyone able to post the code to allow the string to be printed on any page for the visitor? (like the example above).
Terima kasih. Berjalan dengan baik.
thanks your plug
nice!
:)
:(( duh mas bon berhasil juga :(( , gmn sih mas caranya ? ini kan aku dpt kode ini
lalu aku sisipkan jadi seperti ini lengkapnya :
tp koq ttp blm ada perubahan mas ? apa msh ada yang salah dalam peletakanya ? Trim’s respon nya mas :)
:(( duh mas bon berhasil juga :(( , gmn sih mas caranya ? ini kan aku dpt kode ini
lalu aku sisipkan jadi seperti ini lengkapnya :
tp koq ttp blm ada perubahan mas ? apa msh ada yang salah dalam peletakanya ? Trim’s respon nya mas :)
:(( 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 :)
thx mas pri, sudah bisa :d/
biar muncul bendera negara gimana?
mantab bos
This should be flock on ubuntu because I changed my user agent string.. Hrm.
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…
Hi, “Already did it; tried to send you the corrected source to your mail, but was blocked by your ISP” :S
Awesome plugin, i :x it!
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
I”m testing out the latest Firefox 4 nightly, branded as Minefield.
Great plugin! Great Job!
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
pak priyadi, saya telahupdate browser sniff anda, diantaranya pengenalan terhadap Ubuntu higga versi intrepid an mengenal BlankOn juga :D
bisa di cek si sini:
http://udienz.files.wordpress.com/2008/05/browsersniff.doc
rename dengan browsersniff.php
Justo lo que estaba buscando para mi blog, hace tiempo lo utilicé se me perdió pero ya lo encontré de nuevo :)
Thanks for the plugin! It’s genial!
It’s really great information..
Tapi ini cuma buat wordpress yah Pak?? kalo Blogspot, gimana??
makasih…salam kenal, Anda bener2 luar biasa..
Sukses selalu..
Whaaa keren banget :) akhirnya tahu juga orang kebanyakan pakai apa browsernya untuk lihat site saya :)
Thanks
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 :)
testing if you can detect my browser :d
Saya pengen PCLinuxOS masuk juga ke sini. Tadi keliatan tulisannya cuma linux doang :(
thank you
:d:d:d
:((
:)>-
Nebeng ikut detect browser dan os :D
hey guy, I am back to see what browser it is.
Very cool :)
Testing the plugin:d
great plugin
kREN nIC gUE kOK nGK mAU2 yA……..kASIH tIPS nYA DUNK mAS vIA iNDONESIA…bENGON NEE…..KEKKEKEKE:x
Let’s Have a test and see how it works.
Ini sekarang saya pake Google Chrome munculnya apa ya ?
good job! :-\”
Test browser :d
apa google chrome sudah ditambahkan?
Hi to all.
I’ve temporary solved Chrome and iPhone detection,thanks to Blooggie !!!
test browser juga ah..
Probando Google Chrome en Kubuntu Linux
Aún no funciona Google Chrome en Linux :(
Don’t work Google Chrome in Linux
mas ngak muncul di dashboard bagian plugins tuh..gimana yak? WP 2.9.2
Sudah tak coba pakai
http://www.adzymaniac.web.id/wp-admin/plugins.php?action=activate&plugin=browsniff.php
Ada pesan Your attempt to activate this plugin: “browsniff.php†has failed.
Kenapa gak dibuatkan zip :) jadi kan tinggal install aja :D
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.
wow thanks mas infonya bisa dicoba nich:d
Will this work using Win7, FireFox, and the newest version of WP?
testing chromium in debian
Interesante..:d
Gooooooooood Plugin Thank You i’ll use it
nice plugin, where is the country code?
anything like this in drupal?
thanks!
keren banget mas buatan anak negeri sendiri.. baca komentarnya lebih dari 4 menit saking panjangnya :d
keren. ane testing dolo :d
mau coba dulu… :d
bom demais sô \:d/