I have added the following code to my "postbit" template to show some google ads after the first and fifth post displayed on each page of a thread. I modified the "if condition" line. It works like a champ! The only problem I am now having is that it is showing these ads below Private Messages. Any clue how to stop them from showing up under a private message?
PHP Code:
<!-- Start Sponsors -->
<if condition="((($post[postcount]-1)%10 == 0)|(($post[postcount]*5)%25 == 0))">
$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">Living Reefs</td>
</tr>
<tr>
<td class="alt1" align="center">
<script type="text/javascript"><!--
google_color_border = "F7EEE6";
google_color_bg = "F7EEE6";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
</div>
$spacer_close
</if>
<!-- End Sponsers -->