This is a plugin for WordPress 2.6+ that can help you know where your commenters come from, which type of web browser and OS they used when they left a comment on your blog. It provides two functions that take IP and User Agent as parameters and then return HTML string contains country flag, web browser and OS icons. You can put these icons anywhere you like in each comment.
In fact, this plugin is a combination of two plugins: WordPress Browser Detection Plugin and Easy IP2Country that I have intergrated as a built-in plugin for my premium theme before, see this page for example, but now I decide to separate it as a new plugin with some enhancements and share it for everyone.
Features:
- Detects and shows commenter's country flag, web browser and operating system
- Supports many web browsers and operating systems: major desktop browsers, antiquated browsers, blogging software (for trackbacks and pingbacks), text based browsers, various PDAs and cell phones.
- Uses a binay file for IP to country resolution and supports database sources from Webhosting.info - Software77.net
- The returned string can be configed as a template to suite your theme
Screenshot:

Download:

Installation:
- Download the plugin and extract its content
- Upload the complete folder "comment-info-detector" to the "/wp-content/plugins/" directory
- Activate the plugin through the 'Plugins' menu in WP-Admin
- Go to 'WP-Admin -> Settings -> Comment Info Detector' to configure the plugin
Update:
To update new version for this plugin, please deactivate it => delete the old plugin-folder from your server => upload the new plugin-folder => activate the new plugin.
Usage:
- Open wp-content/themes/<YOUR THEME NAME>/comment.php
- Find the comment loop:
1
| foreach ($comments as $comment) |
- Add anywhere you like below the comment loop:
1
| <?php if (function_exists("CID_init")) { CID_print_comment_flag(); echo ' '; CID_print_comment_browser(); } ?> |
- Optional: you can change the CSS style for flag - web browser - OS icons, open and edit:
/wp-content/plugins/comment-info-detector/comment-info-detector.css
Credits
Comment Info Detector is written by me, HieuDT. Big thanks to Priyadi Iman Nurcahyo for web browser, OS detection code and Omry Yadan for IP2Country library.
Changelog:
- 1.0.0 [12-15-2008]: First released.
- 1.0.1 [12-16-2008]: Added two quick-tags for web browser and operating system to return result correctly.
- 1.0.2 [01-12-2009]: Updated database for ip2country library and increase ability to detect some new web browsers - operating systems.
- 1.0.3 [01-18-2009]: Added two options that automatically display icons, no need to modify comments.php file.
- 1.0.4 [03-02-2009]: Updated database for ip2country and added icons for IE8, Vista.
- 1.0.5 [09-07-2009]: Updated database for ip2country and added icons for Windows 7.
Now I still continue to develop this plugin and I'm very glad to receive feedback from you. If you feel this plugin is missing or not working well, you are welcome, please let me know!