Results 1 to 8 of 8

Thread: Adsense not showing on forum

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Posts
    1,488

    Default Adsense not showing on forum

    I added adsense on my forum, but the ads aren't showing. Is there a reason for this?

  2. #2
    Junior Member
    Join Date
    Nov 2008
    Posts
    1,353

    Default Adsense not showing on forum

    Is there a reason for this?
    There probably is a reason. Give us the URL and we can take a look.

  3. #3
    Junior Member
    Join Date
    Nov 2008
    Posts
    1,488

    Default Adsense not showing on forum

    http://www.qualitysheetmusic.com/mod...hp?name=Forums

    Thanks. It works on the index_body.tpl page.

    I added it on the viewforum_body.tpl and viewtopic_body.tpl pages, but they don't show.

  4. #4
    Junior Member
    Join Date
    Nov 2008
    Posts
    1,308

    Default Adsense not showing on forum

    I see ads on all three of those pages.

  5. #5
    Junior Member
    Join Date
    Nov 2008
    Posts
    1,308

    Default Adsense not showing on forum

    I also see them... 3 on some pages, 1 on some other pages...

  6. #6
    Junior Member
    Join Date
    Nov 2008
    Posts
    1,488

    Default Adsense not showing on forum

    Are you aware that Adsense has a great support tool. In your case I would like you to take a look at Why are ads not appearing on my site? (https://www.google.com/support/adsense/bin/answer.py?answer=10036&ctx=en:search&query =ads&topic=0&type=f) or maybe this will help How quickly will Google ads start appearing on my site? (https://www.google.com/support/adsense/bin/answer.py?answer=9715&ctx=en:search&query= ads&topic=0&type=f) . Happy reading.

  7. #7
    Junior Member
    Join Date
    Nov 2008
    Posts
    1,308

    Default Adsense not showing on forum

    9149 users.. not bad atl all considering you have less than 6000 posts...

  8. #8
    Junior Member
    Join Date
    Nov 2008
    Posts
    1,488

    Default Adsense not showing on forum

    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'] )
    before that add:

    // google_switch

    if (!stristr($_SERVER['PHP_SELF'], "login.php&quot AND !stristr($_SERVER['PHP_SELF'], "profile.php&quot ) {
    $template->assign_block_vars('switch_adsense', array );
    }


    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 -->


    source: http://www.vierstra.com/forum/forum-subject.php/t/2754

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
counter on godaddy