Adsense not showing on forum

Discussion in 'Placement / Reviews / Examples' started by diddy, Sep 3, 2005.

  1. #1
    I added adsense on my forum, but the ads aren't showing. Is there a reason for this?
     
    diddy, Sep 3, 2005 IP
  2. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There probably is a reason. Give us the URL and we can take a look.
     
    tflight, Sep 3, 2005 IP
  3. diddy

    diddy Peon

    Messages:
    142
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    diddy, Sep 3, 2005 IP
  4. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I see ads on all three of those pages.
     
    tflight, Sep 3, 2005 IP
  5. imbrod

    imbrod Well-Known Member

    Messages:
    212
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    123
    #5
    I also see them... 3 on some pages, 1 on some other pages...
     
    imbrod, Sep 3, 2005 IP
  6. crazyhorse

    crazyhorse Peon

    Messages:
    1,137
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #6
    crazyhorse, Sep 3, 2005 IP
  7. Swordfish

    Swordfish Active Member

    Messages:
    988
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #7
    9149 users.. not bad atl all considering you have less than 6000 posts...
     
    Swordfish, Sep 3, 2005 IP
  8. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #8
    Diddy try this:

    First, add the code into either overall_header.tpl or overall_footer.tpl instead of the three pages you've used so far -- makes it a lot easier to change the settings.

    Then, do this to avoid having the ads appear on registration and confirmation pages, contrary to the AdSense TOS:

    Open page_header.php and find:

    if ( !$userdata['session_logged_in'] ) 
    Code (markup):
    before that add:

    // google_switch 
    
    if (!stristr($_SERVER['PHP_SELF'], "login.php") AND !stristr($_SERVER['PHP_SELF'], "profile.php") ) { 
     $template->assign_block_vars('switch_adsense', array()); 
    } 
    
    Code (markup):
    This puts a switch in your template available that excludes your Adsense Code from the login and profile pages.

    Open your template page where you have placed your Adsense code(usually overall_header.tpl) and use the switch like this:

    <!-- BEGIN switch_adsense --> 
    
    Your Adsense Java Script code here 
    
    <!-- END switch_adsense --> 
    
    Code (markup):
    source: http://www.vierstra.com/forum/forum-subject.php/t/2754
     
    minstrel, Sep 3, 2005 IP