NP_BrowserSniff.php

BrowserSniff stores and displays browser/operating system of commenters in comments

General Plugin info
Author: Armon Toubman based on WP plugin by Priyadi Iman Nurcahyo
Current Version: 0.3
Download: http://www.armontoubman.com/downloads/np_browsersniff.zip
Demo: http://priyadi.net/archives/2005/03/29/wordpress-browser-detection-plugin/
Forum Thread: http://forum.nucleuscms.org/viewtopic.php?p=78935

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. Install the plugin…
  3. Add <%BrowserSniff%> to your comment template for default operation

Upgrading

  1. up to 0.3: overwrite NP_Browsersniff.php, no reinstalling necessary

Available SkinVars and/or TemplateVars

  • <%BrowserSniff(BEFORE, AFTER, IMAGE, BETWEEN)%>
  • this will output: “BEFORE (image) browser BETWEEN (image) OS AFTER”
  • IMAGE can be set to true or false
  • BEFORE, AFTER and BETWEEN are strings
  • Example: <%BrowserSniff(Using,,false,on)%> will display “Using (firefox image) Mozilla Firefox 2.0.0.6 on (windows image) Windows XP”

Options

  • Icon size: size (in pixels) of the little icons displayed next to the names of the browser and operating system (default 16)

Tips and Tricks

Wishlist

Bugs

History

browsersniff.txt · Last modified: 2011/08/02 15:51 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki