Advanced Browser Check
Names under the icons (2 posts)

  1. Theo Houtman
    Posted 2 years ago #

    I've tried to place the names of the browsers under their icons. However, for Internet Explorer I get ie and for FireFox ff as the names.

    Is there a way to fix this? This is my code: (line 39 of output.php)

    $html .= '<li style="float: left;"><a href="'. $link .'" class="'. $browser .'" target="_blank"><img src="'. plugins_url('/img/'. $browser .'-128x128.png', __FILE__) .'" alt="'. $browser .'"><br />'. $browser .'</a></li>';


  2. Mattias
    Plugin Author

    Posted 2 years ago #


    I might add the option to show/hide the browsers name in the future, for now, you have to find your own solution.

    An easy way to display the right name is to use a php if statment like the following:
    <?php if($browser == 'ff') { echo 'Firefox'; } ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Browser Check
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.