1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Disabling Adsense on Forum Non-content pages

Discussion in 'Placement / Reviews / Examples' started by jackburton2006, Jan 31, 2006.

  1. #1
    Can anyone point me to a thread/article that shows you how to disable Adsense ads on VB forum pages that doesn't have content, i.e. log-in, CP, etc?

    ATTN MOD: Please move this to the appropriate category if it doesn't belong here. TIA.
     
    jackburton2006, Jan 31, 2006 IP
  2. erobs

    erobs Well-Known Member

    Messages:
    49
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    123
    #2
    Try the following code surronding your adsense code.

    <if condition="THIS_SCRIPT == 'showthread' or THIS_SCRIPT == 'index' or THIS_SCRIPT == 'forumdisplay' or THIS_SCRIPT == 'search'">
    <!-- Google Adsense Code -->
    </if>
    Code (markup):
    This works for VB 3.5 and I believe 3.0.

    Let me know if you have any questions.
     
    erobs, Jan 31, 2006 IP
    jackburton2006 likes this.
  3. jackburton2006

    jackburton2006 Peon

    Messages:
    5,296
    Likes Received:
    282
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Fantastic, it works! Thanks a bunches!
     
    jackburton2006, Jan 31, 2006 IP
  4. erobs

    erobs Well-Known Member

    Messages:
    49
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    123
    #4
    No problem, glad to help.
     
    erobs, Feb 1, 2006 IP
  5. icare

    icare Peon

    Messages:
    714
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi nice thats what basicaly i was looking for.
    But is there any way that adsesne can be hided from certain forums?
    I mean I dont want adsense to apear in forum A and B(coz it has mature material) but want to display adsense in forum C , d and its subforums?
    And Can we hide it from guest or unregistered users?
     
    icare, Feb 4, 2006 IP