The MU forums have moved to WordPress.org

BrowseHappy botton how edit? (14 posts)

  1. lindawww
    Member
    Posted 18 years ago #

    There are an image linking to browsehappy.com on the admin pages

    Sorry, but what is it?
    I can delete it?
    If yes, how >I can delete or edit it?

  2. andrea_r
    Moderator
    Posted 18 years ago #

    It's a suggestion to switch your browser to something other than Internet Explorer.
    You'll have to hack into the admin files to get rid of it, if that's what you want.
    It'd be easier (and more secure) to switch to a different browser though. :)

  3. drmike
    Member
    Posted 17 years ago #

    That sucker's going down.

    Open up wp-admin/admin-functions.php

    Find these lines:

    function browse_happy() {
    $getit = __( 'WordPress recommends a better browser' );
    echo '
    <p id="bh" style="text-align: center;"><a href="http://browsehappy.com/" title="'.$getit.'"><img src="images/browse-happy.gif" alt="Browse Happy" /></a></p>
    ';
    }
    if ( strstr( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ))
    add_action( 'admin_footer', 'browse_happy' );

    Delete those lines.

    May the evil empire forever live!

    :)

  4. pizdin_dim
    Member
    Posted 17 years ago #

    Or better still, don't delete anything. Just change the "browse_happy()" function in "wp-admin/admin-functions.php" to this:

    
    function browse_happy() {
       echo '<p id="bh" style="text-align: center;"><a href="http://www.google.com/search?&q=internet+explorer+still+sucks" title="Browse Happily Ignorant"><img src="http://www.microsoft.com/library/media/1033/windows/images/products/winfamily/ie/icon_ie7.gif" alt="Browse Happily Ignorant" /></a></p>
    ';
    }
    

    Less work and you still get a clickable nice image. Just don't forget to do this every time you upgrade!

  5. Farms2
    Member
    Posted 17 years ago #

    Or just pop in your own firefox referral code :)

  6. drmike
    Member
    Posted 17 years ago #

    Didn't think of the firefox link. Thanks :)

  7. drmike
    Member
    Posted 16 years ago #

    Hasn't done any good but thanks anyway. ;)

  8. efscl
    Member
    Posted 16 years ago #

    for the newer version you have to edit the template.php files ... just comment the lines around 515 with the if / else command

  9. DailyTestimony
    Member
    Posted 15 years ago #

    I prefer to just remove the IE check and use it to sell it as ad space myself. Helps offset server costs, if you can find someone willing to pay for the space.

    Or better yet change it to link to http://www.firefoxmyths.com and have it do a firefox check.

  10. awarner20
    Member
    Posted 15 years ago #

    Where is this Browse Happy image? Is it still in 1.5.1?

  11. DailyTestimony
    Member
    Posted 15 years ago #

    yes it's only shown if you are using IE.

  12. awarner20
    Member
    Posted 15 years ago #

    @ DailyTestimony,

    Thanks, makes sense, going to do some edits now!

  13. tdjcbe
    Member
    Posted 15 years ago #

    They moved the code though. I want to say it's in wp-admin/includes/templates.php but I'm not 100% sure.

  14. DailyTestimony
    Member
    Posted 15 years ago #

    actually it's admin/includes/template.php but close enough people know what you mean.

About this Topic

  • Started 18 years ago by lindawww
  • Latest reply from DailyTestimony