View Full Version : How do you put adsense on side of a forum post??? (pic)
ash1
Aug 1st 2007, 2:38 pm
http://bp2.blogger.com/_YbURk67VlGk/RqizWCzYofI/AAAAAAAAAKw/eQaPZeoyQkk/s1600-h/MegaGames.PNG
like above...does vbulletin need a special module?
tigergb
Aug 2nd 2007, 7:35 am
<div style='float:right'>your adsense code</div>
ash1
Aug 2nd 2007, 9:21 am
<div style='float:right'>your adsense code</div>
where wud u put this in vbulletin?
Dumi
Aug 5th 2007, 5:18 pm
I would like to know this aswell!
trichnosis
Aug 6th 2007, 6:32 am
i remember an vbulletin hack for adsense placement on vbulletin.org.
i suggest you to search it
Relivo
Aug 6th 2007, 8:06 am
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
^will that work on smf forum aswell ?
Relivo
Aug 6th 2007, 10:03 pm
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 :)
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.