Forums

[Plugin: AdSense Manager] Hack to hide Ads from the Wordpress Admin (1 post)

  1. myrko
    Member
    Posted 10 months ago #

    I was looking to hide the ads when I am logged in as admin, since I dont want me to get tracked by the google adsense statistics (lowering my CTR that way).

    So I changed the code of the admanager.php a bit on the 3 locations where it is echo'ing the ad into the html:

    if( !current_user_can('level_10') ) // no admin (user-level 10)
    echo $ad->get_ad();
    else
    echo "[Admin: AdSense (phpcall)]";

    which works really good.

    Now I want to not print "[Admin: AdSense (phpcall)]" but display a space on the dimensions of the ad, as inserted in the admanager admin (i.e. 160x600).

    Where can I get those dimensions of the ad, as it is entered into the admanager admin? Must be something like the "width" and "height" of the actual ad-entry in the database??

Reply

You must log in to post.

About this Topic