mcyates
02-02-2007, 10:00 PM
Works With Vbulletin V3.7.2
This is a very simple template modification have similar to absence hack and the random postbit advert hack. But you have more control with this hack as you change the option for where the adverts will appear "after which message"
Add one of these codes to the bottom of your postbit template.
Here are the codes:
<if condition="$post[postcount]==1">
<p align="center">
[AD CODE GOES HERE]
</p>
</if>
The above code would show an ad after the first post on every thread. Change this number to show the advert under a different post. Or use loads together like this:
<if condition="$post[postcount]==1">
<p align="center">
[AD CODE GOES HERE]
</p>
</if>
<if condition="$post[postcount]==10">
<p align="center">
[AD CODE GOES HERE]
</p>
</if>
<if condition="$post[postcount]==20">
<p align="center">
[AD CODE GOES HERE]
</p>
</if>
The above will show adverts after the 1st, 10th and 20th post in every thread.
Also there is another way for doing this:
<if condition="in_array($post['postcount'], array(1, 5, 10, 15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95 ,100))">
<if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3, 4,5,6,7,8, 9))">
$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 (<a href=/payments.php>No Ads</a>)</td>
</tr>
<tr>
<td class="alt1" align="center">
[AD CODE GOES HERE]
</td>
</tr>
</table>
</div>
$spacer_close
</if></if>
Enjoy!! :D
This is a very simple template modification have similar to absence hack and the random postbit advert hack. But you have more control with this hack as you change the option for where the adverts will appear "after which message"
Add one of these codes to the bottom of your postbit template.
Here are the codes:
<if condition="$post[postcount]==1">
<p align="center">
[AD CODE GOES HERE]
</p>
</if>
The above code would show an ad after the first post on every thread. Change this number to show the advert under a different post. Or use loads together like this:
<if condition="$post[postcount]==1">
<p align="center">
[AD CODE GOES HERE]
</p>
</if>
<if condition="$post[postcount]==10">
<p align="center">
[AD CODE GOES HERE]
</p>
</if>
<if condition="$post[postcount]==20">
<p align="center">
[AD CODE GOES HERE]
</p>
</if>
The above will show adverts after the 1st, 10th and 20th post in every thread.
Also there is another way for doing this:
<if condition="in_array($post['postcount'], array(1, 5, 10, 15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95 ,100))">
<if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3, 4,5,6,7,8, 9))">
$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 (<a href=/payments.php>No Ads</a>)</td>
</tr>
<tr>
<td class="alt1" align="center">
[AD CODE GOES HERE]
</td>
</tr>
</table>
</div>
$spacer_close
</if></if>
Enjoy!! :D