Remove Adsense from one page not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RedWingNut
    New Member
    • Apr 2014
    • 15
    • 3.8.x

    Remove Adsense from one page not working

    I have vBulletin 3.8.7, and have Adsense configured thru the vBulletin adsense "tool". I need to disable it on certain pages, and I can't get stuff I have found on here to work. As an example, I put this in my "footer" template, but the ad still shows in the "bird" board, and the other boards too. This being in the "footer" page should NOT load the ad_code in the "ad_footer_start" page, I would assume. I did try this in the "ad_footer_start" page too, and no work.

    <!-- ** this is google_adsense include - footer** -->
    <if condition="$forumid != 'birds'">
    $ad_location[ad_footer_start]
    <br />
    $spacer_close
    </if>

    And it still showed the ad section. I also tried this, and it also still showed in the "birds" board and the other boards.

    <!-- ** this is google_adsense include - footer** -->
    <if condition="THIS_SCRIPT != 'birds'">
    $ad_location[ad_footer_start]
    <br />
    $spacer_close
    </if>

    I think I'm missing something, probably something easy... Any help is appreciated......
  • Lats
    Senior Member
    • Mar 2002
    • 3671

    #2
    Check this thread...



    You'll be needing something like...
    Code:
    ...
    <if condition="$foruminfo[forumid] != 33">
    ...
    The 33 is the forumid of your birds board - i.e. it needs to be a number.
    Lats...

    Comment

    • RedWingNut
      New Member
      • Apr 2014
      • 15
      • 3.8.x

      #3
      It works, but not in the postbit_legacy template, for some reason.

      Comment

      • RedWingNut
        New Member
        • Apr 2014
        • 15
        • 3.8.x

        #4
        This is what I have in "postbit_legacy" (I don't use "postbit") and it still shows the ad and other content....I am looking as a guest, and in all boards it shows this after the first post, including the board that is forumid 44..... maybe the "guest" take precedence or something? I want guests to NOT see the add on this one page (44)....

        <if condition="($post[postcount] % $vboptions[maxposts] == 1) and ($show['guest']) and ($foruminfo[forumid] != 44)">
        <br>
        <div id="post_message_$post[postid]">
        $ad_location[ad_showthread_firstpost_start]
        $post[message]
        </div>
        <br>
        </if>

        Comment

        • Lats
          Senior Member
          • Mar 2002
          • 3671

          #5
          Try this, it's pretty close to one of the examples Jake posted...
          Code:
          <if condition="$post[postcount] == 1 AND !$bbuserinfo[userid] AND $foruminfo[forumid] != 44">
          Lats...

          Comment

          • RedWingNut
            New Member
            • Apr 2014
            • 15
            • 3.8.x

            #6
            I tried that, and it didn't work either. Almost like when I'm looking at the threads In a board (postbit_legacy) the forumid is not correct. Makes me wonder if the board has a forumid of 44, but when you view a thread in that board, the forumid is different...

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...