Log in

View Full Version : How do I have a different ad after the first postbit?


ski diva
09-13-2006, 11:10 AM
Right now I have my forum set up to show google adsense ads after the first post in each thread.

But there's one subforum where I'd like run a different ad after the first postbit. How do I go about doing this?

Here's the code I'm using:


</div>
<!-- / post $post[postid] popup menu -->

<if condition="$post[postcount] % $vboptions[maxposts] == 1">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->

<if condition="$post[postcount] == 1">

$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">
BANNER CODE HERE
</td>
</tr>
</table>

</div>
$spacer_close

</if>