Log in

View Full Version : ad hack for two types of ads?


dfdems
10-12-2005, 07:12 PM
Hello,

I want to display two types of ads but in seperate forums. I want to show the ads from the first agency in forums x-y and the other agencies ads in L-W.

I currently use this (http://www.vbulletin.com/forum/showthread.php?t=123281) hack in the postbit


<if condition="$post[postcount] % 2 == 0 AND in_array($GLOBALS[forumid], array(319,320,335,334,345,339,324,321,309,361,352, 350,337,348,344,359))">

$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">
<script type= AD CODE
</script>
</td>
</tr>
</table>

</div>
$spacer_close

</if>


Any idea on how I modify this to get it to serve different ads in the other forums not listed above? Any help would be appreciated.