PDA

View Full Version : ads display


bdunit
03-25-2008, 01:07 PM
hi, could any one give any modules or plug ins or any ideas of putting advertiser links after the 1st thread or bottom of the page or top of the page.

Jase2
03-25-2008, 01:20 PM
You can add a box after the first post with ads in.

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you are using)

Add the blue code to the very bottom of the template:

</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->

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

<div style="padding: $stylevar[cellpadding]px 0px 0px 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>

</if>

Replace the red code with your own banner/ad code.

If you only want to it for guests, simply replace the <if> statement at the top to:

<if condition="$post[postcount] == 1 AND !$bbuserinfo[userid]">

Regards Jason :)

bdunit
03-25-2008, 04:25 PM
thnx 4 ur help