WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: PHP Browser Detection] Firefox and More does not detected

[Resolved] [Plugin: PHP Browser Detection] Firefox and More does not detected

  • I have insert this code in my theme:

    <?php if ( is_firefox($version) ) {

    $firefox = ‘<div class=”firefox”>
    Hi User your Browser is Firefox ‘.get_browser_version().'</strong</div>’;

    echo $firefox;

    };

    firefox, IE, and other not work, but only work with google chrome why??

    ?>

    <?php if ( is_chrome($version) ) {

    $chrome = ‘<div class=”chrome”>
    Hi User your Browser is Chrome ‘.get_browser_version().'</strong</div>’;

    echo $chrome;

    };

    ?>

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

Viewing 1 replies (of 1 total)
  • Plugin Author Mindshare Labs, Inc.

    @mindshare

    This code works:

    <?php
    				if(is_firefox()) {
    					$firefox = '<div class="firefox">
    Hi User your Browser is Firefox '.get_browser_version().'</strong</div>';
    					echo $firefox;
    				}
    				?>
    
    				<?php
    				if(is_chrome()) {
    					$chrome = '<div class="chrome">
    Hi User your Browser is Chrome '.get_browser_version().'</strong</div>';
    					echo $chrome;
    				}
    				?>

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: PHP Browser Detection] Firefox and More does not detected’ is closed to new replies.