Back to vBulletin 3.5 Template Modifications

Show Ads After post number "x" and "x"
Mod Version: 1.01, by mcyates

This modification is in the archives.
vB Version: 3.5.7 Rating: (0 vote - 0 average) Installs: 18
Released: 19 Nov 2005 Last Update: 03 Feb 2007 Downloads: 35
Not Supported Template Edits  

This is a very simple template modification have similar to adsence 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 This code to the bottom of your postbit template.

Here is the code:

Code:
<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:

Code:
<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:

Code:
<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>

Download

This modification is archived and cannot be downloaded.

Supporters / CoAuthors

  • mcyates

Similar Mods

Show Thread Enhancements Show Adsense After post number "x" and "x" vBulletin 3.7 Add-ons
Show Thread Enhancements Show Adsense After post number "x" and "x" vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024