Title: Browser sniff
Last modified: August 18, 2016

---

# Browser sniff

 *  Resolved [toy](https://wordpress.org/support/users/toy/)
 * (@toy)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/browser-sniff/)
 * Ok i need help with this plugin. I don’t get this step:
 * To show commenters web browser description, use the function pri_print_browser(“
   Using “, “”, true, ‘on’); inside the comment loop. The function has three parameters:
 * you can read it here: [http://priyadi.net/archives/2005/03/29/wordpress-browser-detection-plugin/](http://priyadi.net/archives/2005/03/29/wordpress-browser-detection-plugin/)
 * Can someone explain the sept in an easier way or something ty.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [toy](https://wordpress.org/support/users/toy/)
 * (@toy)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/browser-sniff/#post-267322)
 * anyone?
 *  [tomhanna](https://wordpress.org/support/users/tomhanna/)
 * (@tomhanna)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/browser-sniff/#post-267324)
 * You edit your [Main Template](http://codex.wordpress.org/Templates) file to add
   the function inside [The Loop](http://codex.wordpress.org/The_Loop).
 * The code you’ll actually need to add will be something like:
 * `<?php pri_print_browser('1', '2', true, '3');?>`
 * Where 1,2 and 4 need to be replaced by:
    1. String to be printed before description
   2. String to be printed after description 3. String to be printed between web
   browser and operating system description, defaults to â€˜onâ€™.
 * The “true” will display icons and the “false” will not, I believe.
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/browser-sniff/#post-267325)
 * No, edit your `comments.php` file.
 * This is what I’m using:
 * `if (function_exists('pri_print_browser')) pri_print_browser(", using", "", true,'
   on');`
 *  [tomhanna](https://wordpress.org/support/users/tomhanna/)
 * (@tomhanna)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/browser-sniff/#post-267338)
 * Oh, yeah…on closer look I see the confusion. What is “the comment loop”? Never
   heard of that before.
 *  [Marc](https://wordpress.org/support/users/marc/)
 * (@marc)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/browser-sniff/#post-267339)
 * 
 * `
    <?php pri_print_browser("Using ", "", true, 'on');?>
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/browser-sniff/#post-267340)
 * The Comment Loop isn’t nearly as documented as the main Loop. To answer your 
   question, the Comment Loop can be found in the comments.php file of your theme.
   It’s a loop similar to the main posts loop, but is responsible for displaying
   the comments on a post. It starts with
    `<?php if ($comments) {` An ends later
   just before the comment form is displayed.
 * -tg
 *  Thread Starter [toy](https://wordpress.org/support/users/toy/)
 * (@toy)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/browser-sniff/#post-267367)
 * Thanks soo much =]

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Browser sniff’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 7 replies
 * 5 participants
 * Last reply from: [toy](https://wordpress.org/support/users/toy/)
 * Last activity: [20 years, 7 months ago](https://wordpress.org/support/topic/browser-sniff/#post-267367)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
