WordPress.org

Ready to get started?Download WordPress

Forums

PHP Browser Detection
[resolved] Support for "versions lower than" or "higher than" (3 posts)

  1. gprego
    Member
    Posted 1 year ago #

    It would be great if this plugin supported things like "if not firefox 3.6", "if IE older than 7", etc
    For example I need to something different if i'm in firefox 3.6 or less. Right now I can't do that, because I would need to change my code every time firefox puts out a new version (and that happens all the time).

    http://wordpress.org/extend/plugins/php-browser-detection/

  2. Mindshare Studios, Inc.
    Member
    Plugin Author

    Posted 1 year ago #

    You can do what you are after using the get_browser_version() function and little bit of PHP, for example:

    $v = get_browser_version();
    if($v < 7 && is_IE()) {
    // do stuff for IE browsers older than IE7
    }
  3. gprego
    Member
    Posted 1 year ago #

    Great!!
    That's exactly was I was looking for.
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.