WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP-UserAgent

A simple User-Agent detection plugin that lets you easily insert icons and/or textual web browser and operating system details with each comment.

  1. Upload the "wp-useragent" folder to /wp-contents/plugins/
  2. Login to your WordPress Admin menu, go to Plugins, and activate it.
  3. In your WordPress Admin menu, you will find a new menu under Settings called WP-UserAgent. There you can choose the displayed icons size, and select where to display the plugin. There are three options for displaying the plugin:

    • Before the comment text. User's WebBrowser and OS will be displayed before comment text.
    • After the comment text.User's WebBrowser and OS will be displayed after comment text.
    • Custom (Advanced). You can specify the location using the useragent_output_custom() function inside the comments loop in your template (Generally in comments.php).

      Example: <?php foreach ($comments as $comment) : ?> <?php comment_author_link() ?> <?php useragent_output_custom(); ?> says: <?php comment_text() ?>

    CAUTION: If you select "Custom" and don't use <?php useragent_output_custom(); ?> in your template, you won't get the information displayed.

Other options include the text to use when displaying the user's web browser and operating system as well as whether or not to show the full User-Agent string.

Requires: 2.0 or higher
Compatible up to: 3.8.3
Last Updated: 2013-3-16
Downloads: 21,407

Ratings

4 stars
4.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0 100,1,1 0,1,0 0,1,0
0,1,0 0,1,0 0,1,0
0,1,0 0,1,0 0,1,0 100,3,3
0,1,0 0,1,0 0,1,0 100,1,1
100,1,1 0,1,0 0,1,0
100,2,2 100,1,1 100,2,2 0,1,0
0,1,0
0,1,0
100,1,1 0,1,0
0,1,0
0,1,0
50,2,1
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1