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.

Google Adsense Code in Invision Power Board

Discussion in 'Forum Management' started by JFriesen, May 21, 2006.

  1. #1
    Alright, so after signing up with Google Adsense and being accepted, I would like to paste my code (a 728x90 leaderboard) right beneath my banner, in the IPB Default Skin. What I've tried to do is insert this code:

    <if="ipb.input['act'] == 'idx' or ipb.input['showforum'] or ipb.input['showtopic'] or ipb.input['module'] == 'gallery' or ipb.input['act'] == 'calendar' or ipb.input['act'] == 'Arcade' or ipb.input['act'] == 'module'">

    ADSENSE CODE HERE

    </if>

    I insert this in Look and Feel> Edit Board Header and Footer Wrapper on the IPB Default skin. I put it in beneath the line
    <% BOARD HEADER %>

    The <if> code was something I'd read to wrap my Adsense code in, so it would not show up on Login, Registration, Error pages, etc, and violate Googles TOS, but it doesn't work. My banner goes where I want it to, but it still shows up on Login pages, registration pages, and those things. So, what am I doing wrong? Could someone give me some other code to wrap my Adsense code in?
     
    JFriesen, May 21, 2006 IP
  2. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #2
    on this page :
    http://forums.invisionpower.com/lofiversion/index.php/t155138.html

    it clearly says that it is not posible to use this code on a IPB Wrapper:


    Smoothie - Nov 15 2004, 04:51 PM
    QUOTE(deshelman @ Nov 15 2004, 10:20 AM)
    I don't think HTML logic works in the board wrapper but you could always try it out
    *
    Just tried it, and it does not work. Thanks.
     
    JamesColin, May 21, 2006 IP