View Full Version : Google Ad Problems: Need some help
ade5675
10-21-2007, 03:25 AM
I need some help. I had two google banners on each thread after the first post. Everything has been fine untl I upgraded to vB 3.6.8 After I upgraded, I now have multiple google banners - after the first, the second, the third etc. I just want the first set of banners (the ones after the first post) and don't want the rest. Please help and tell me what I need to do to correct this. Thanks in advance
View some samples here:
http://www.naijadiscussion.com/naijaforum/showthread.php4?t=566
http://www.naijadiscussion.com/naijaforum/showthread.php4?t=566
ade5675
10-23-2007, 12:05 AM
Any help appreciated please
ade5675
10-26-2007, 03:26 AM
Still looking for some help. I am trying to retrct the google ds to after the first post in each thread. I tried to use and IF command but it takes out all the goole ads.
I went into the Postbit template to dd a code that will retrict the ad showing after the first code but the code is not working well.
I added this code (<if condition="$post['postid=1']">)to the beginning of the google code located at the end of the template
<if condition="$post['postid=1']">
<div style="padding: $stylevar[cellpadding]px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left"></td>
</tr>
<tr>
<td class="alt1" align="center">
google adsense code here
</td>
</tr>
</table>
</div>
</if>
Can someone help with the code?
noppid
10-26-2007, 06:50 PM
Try...
<if condition="$post['postid'] == 1">
ade5675
10-26-2007, 09:23 PM
Try...
<if condition="$post['postid'] == 1">
noppid, tks a lot for the code above. I was able to rewrite to work for how I wanted it so I figured it out.
FYI... I used the following code
<if condition="$post['postcount'] < 2">
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.