This is similar to what I'm trying to do. I want to put a banner in between every 2nd post so I have the code inserted into the postbit template. Now, here's my problem: The group I'm pulling the banners from only has 3 banners in it. On a long thread, this only fills up the first three locations and then all the rest of the potential spaces are blank. I want these banners to repeat in these spaces down the page, not just show them once on the page. There doesn't seem to be a way to do this with this mod. Is there any way we can get a modification that allows a banner to be repeated on a page without entering multiple instances of the same banner?
-Designguy
Quote:
Originally Posted by rhody401
It'll do it if you change the postbit code and insert the trigger(s). I have it display with this mod every 5th post, and also after the last post. This is the code I used, which I believe I found from a previous post in this thread:
PHP Code:
BANNER AFTER LAST POST HACK Added this mod to our forum on 3/1/12
GO TO: Admin Console -> Styles & Templates -> Style Manager -> edit template -> postbit templates -> postbit_legacy
......at the END add this, if you want it to display random ad after the LAST post:
<vb:if condition="$post['islastshown']">
<div align="center"><!--@vbbanners:0@--></div><br />
</vb:if>
.....at the VERY END add this: (puts random ad after 5th and 10th posts)
<vb:if condition="THIS_SCRIPT == 'showthread' AND (($post['postcount'] % 15 == 10) OR $post['postcount'] == 10)">
<div class="thread_controls">
<div style="width: 100%; text-align: center">
<!--@vbbanners:0@-->
</div>
</div>
<vb:elseif condition="THIS_SCRIPT == 'showthread' AND (($post['postcount'] % 15 == 5) OR $post['postcount'] == 5)" />
<div class="thread_controls">
<div style="width: 100%; text-align: center">
<!--@vbbanners:0@-->
</div>
</div>
</vb:if>
Hope this is helpful! We LOVE the RBS add-on!
|