MyBB Community Forums

Full Version: Ads after first post, conditional code in postbit template?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just upgraded to latest mybb today, from 1.4x

now i try add ads after first post, using conditional code in postbit template :

<if ($postcounter - 1) % $mybb->settings['postsperpage'] == "0" then> 
advertisement code

but the result, the advertisement code appearing many times, after all post (first post, second post, thirst post, and so on), not only first post

please help, maybe there is something need to fix from the code above?
Thank you very much, rep +