2013-07-25, 12:02 PM
Yes, that's the job for Template Conditionals. Download Template Conditionals plugin first as mentioned before, put .txt and .php to inc/plugins and activate it.
This conditional will show ad on every 9th post each page:
If you want it in only after 9th post (will show only on 1 page), use .m.'s conditional mentioned before.
To change the post number, just change the 9 in both conditionals to other number. You can use multiple conditionals at the end of postbit/postbit_classic or combine them into one.
This conditional will show ad on every 9th post each page:
<if ($postcounter - 9) % $mybb->settings['postsperpage'] == "0" then>
ad <table> code here
</if>
Put it at the end of postbit/postbit_classic template.If you want it in only after 9th post (will show only on 1 page), use .m.'s conditional mentioned before.
<if $postcounter == 9 then>
ad <table> code here
</if>
To change the post number, just change the 9 in both conditionals to other number. You can use multiple conditionals at the end of postbit/postbit_classic or combine them into one.