I need to remove adsense from one page (flashchat page). My ad code is in the navbar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bacemail
    Member
    • Feb 2010
    • 36
    • 3.8.x

    I need to remove adsense from one page (flashchat page). My ad code is in the navbar

    ...template.

    I have a small amount of programming experience, but not with php.

    Does anyone know how to add a conditional (if statement) to the following so that the ad code does not display on the flashchat page? The code is located in the navbar, which is acceptable by G. However, I do not believe that ads on a chat page are acceptable.

    Here is the code (from the navbar template) that I need to keep off of the chat page...

    <td><center><script type="text/javascript"><!--
    google_ad_client = "pub-xxxxxxxxxxxxxxxxxx";
    /* 728x90, created 1/31/10 */
    google_ad_slot = "4xxxxxxxxxx";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagexxxxxxxxxxxxxx/pagead/show_ads.js">
    </script></td>
    Basically, I need this...

    if not flashchat page (misc.php)

    then show ad


    Additionally, I have misc.php disallowed in my robots.txt, but the ad still shows.

    Thanks for you help in advance.

Related Topics

Collapse

Working...