How do you put adsense on side of a forum post??? (pic)

Discussion in 'Placement / Reviews / Examples' started by ash1, Aug 1, 2007.

  1. #1
    ash1, Aug 1, 2007 IP
  2. tigergb

    tigergb Active Member

    Messages:
    500
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #2
    <div style='float:right'>your adsense code</div>
     
    tigergb, Aug 2, 2007 IP
  3. ash1

    ash1 Active Member

    Messages:
    2,240
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    88
    #3
    where wud u put this in vbulletin?
     
    ash1, Aug 2, 2007 IP
  4. Dumi

    Dumi Active Member

    Messages:
    154
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    I would like to know this aswell!
     
    Dumi, Aug 5, 2007 IP
  5. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #5
    i remember an vbulletin hack for adsense placement on vbulletin.org.

    i suggest you to search it
     
    trichnosis, Aug 6, 2007 IP
  6. Relivo

    Relivo Member

    Messages:
    23
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    40
    #6
    Hello here is just one way you can do AdSense inside the first post, I have been using this technique for years and it has always worked well.

    Open your your postbit or postbit_legacy template and...

    Find:

    <!-- message -->
    <div id="post_message_$post[postid]">$post[message]</div>
    <!-- / message -->


    Replace with:

    <!-- message -->
    <if condition="!$GLOBALS['FIRSTPOSTID']">
    <span style="margin: 2px; float: right; width: 301px; height: 251px;">
    Your Google AdSense code here:
    Keep in mind you will have to adjust the width and height above based upon the advertisement you use, just use +1 on each ;).

    </span>
    </if>
    <div id="post_message_$post[postid]">$post[message]</div>
    <!-- / message -->



    Hope this helps!
    Kolby Bothe
     
    Relivo, Aug 6, 2007 IP
  7. rmg

    rmg Peon

    Messages:
    208
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ^will that work on smf forum aswell ?
     
    rmg, Aug 6, 2007 IP
  8. Relivo

    Relivo Member

    Messages:
    23
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    40
    #8
    I am not sure what the SMF "Postbit" (if they have that) even looks like so I am doubting it ;)

    I am sure it can be done though :)
     
    Relivo, Aug 6, 2007 IP