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.

Adding adsense to vbulletin after last post

Discussion in 'Placement / Reviews / Examples' started by leeds1, Aug 4, 2005.

  1. #1
    OK guys, how do I do this ?

    I am added adsense after every 1st post on each page (like DP here) but how do I add it after the last post (eg: if there are 3 or 4 or 5 posts on a page to display just at the end)

    My code for the initial stuff is as follows, any ideas what to add to have after last post ?

    <if condition="$post[postcount] == 1 OR $post[postcount] == 11 OR $post[postcount] == 21">
    
    ** Adsense code **
    
    </if>
    Code (markup):
     
    leeds1, Aug 4, 2005 IP
  2. Dominic

    Dominic Well-Known Member

    Messages:
    1,725
    Likes Received:
    121
    Best Answers:
    0
    Trophy Points:
    185
    #2
    Go into SHOWTHREAD and look for this line:
    <!-- / controls below postbits -->
    Post the adsense code here
     
    Dominic, Aug 4, 2005 IP
    sachin410 likes this.
  3. leeds1

    leeds1 Peon

    Messages:
    585
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks Dom, works a treat
     
    leeds1, Aug 4, 2005 IP
  4. thebassman

    thebassman Asleep at the Keyboard

    Messages:
    1,105
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    140
    #4
    That's where I've added the adsense 728x15 adlinks code on my photography forum, and it's got the highest CTR of any placement of adsense on the site...
     
    thebassman, Aug 4, 2005 IP
  5. acers

    acers Peon

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    a prob with this is that if you have a ad after 1st post and have no replies to the thread you will have two ads at the same place. wouldn't it be better to have say ads after 1st post and then at the bottom of same page by using conditional as

    <if condition="$post[postcount] %10 == 1 OR $post[postcount] % 10== 9">

    anyway i am trying this on my forums to see how it goes. I hear the best ctr is with 1st post ad. What you think .. how good is the idea of adding 2 ads on same page like this?
     
    acers, Aug 10, 2005 IP
  6. mike30

    mike30 Well-Known Member

    Messages:
    883
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Thank you for your hint. I did it to my forum and it's really working supper well.

    ~Mike
     
    mike30, Jul 27, 2009 IP
  7. Elise Adams

    Elise Adams Greenhorn

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #7
    Thanks that was a great tip, I have been looking for this for a while
     
    Elise Adams, Jun 29, 2013 IP