PDA

View Full Version : Help with PHP code for banners


Prince
02-28-2010, 10:58 PM
I am using this code in my postbit template:


<if condition="$post[postcount] == 10">
banner code here
</if>


I want an IF statement where the defining number displays the banner code after every 10th post not just post number 10, or whatever I change that number to.

Thanks! :)

ForumsMods
02-28-2010, 11:05 PM
<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == '10'">
banner code here
</vb:if>

Prince
02-28-2010, 11:40 PM
thanks!

--------------- Added 1267471374 at 1267471374 ---------------

one more question, how can I change that code so the banner appears after EVERY 10 posts rather than just after the 10th post?

Thanks