The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I am trying to add adsense code to appear on every 3 posts... Anybody managed to do it?
Thx |
|
#2
|
||||
|
||||
|
i don't know how to do it, but thought i'd ask a question...how many posts do you show per page? because according to adsense TOS you can only have 3 instances of adsense per page...
|
|
#3
|
|||
|
|||
|
6 Posts, So i wanted it after the Third one and the 6th one, Since I also have a header banner, it would make total of 3 in each page...
|
|
#4
|
|||
|
|||
|
Change the three to what you want, its the postcount. There is many others in the forum, do a search
https://vborg.vbsupport.ru/showthread.php?t=96249 )this is after first post Code:
<if condition="$post[postcount] == 3">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
<td class="alt1" align="center">
<center>Ad Sense Code Here</center>
</if>
</td>
</tr>
</table>
</div>
$spacer_close
</if>
|
|
#5
|
|||
|
|||
|
Actually, it worked. Thx
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|