View Full Version : Adsense before first post
Randall Flagg
10-31-2007, 09:17 PM
Sorry for posting another adsense thread :)
I'm trying to figure out how to insert Adsense before first post in each thread ,but I can't find any guide on how to do that in 3.6.8
Thank you all.
Opserty
10-31-2007, 09:33 PM
You could use a condition in the postbit(_legacy) template:
<if condition="$post[postcount] == 1">
<!-- ADSENSE HERE -->
</if>
I think thats the condition.
Randall Flagg
11-01-2007, 10:40 AM
I have tried this, but it's not working :(
--------------- Added 1193951200 at 1193951200 ---------------
Anyone
Cagonni
11-08-2007, 04:46 AM
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="96%" align="center">
<tr valign="top">
<td clas="alt1">
<div align="center">
ADSENSE CODE
</div>
</tr>
<tr>
</td>
</tr>
</table>
</div>
</if>
top of the postbit template.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.