Quote:
Originally Posted by tibobdenazareth
Rathar than editing postbit_legacy AND showthread_firstpost_sig templates, we cand edit postbit_legacy te,plate by adding a third section for after the first post. In that sense, the ad will fall truly AFTER the first post rather than above the signature. Here's the code.
NB- for the mobile version, that's the only way we can get something after the first post since the showthread_firstpost templates do not exist.
<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:3@--><!--@vbbanners:3@-->
</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:2@--><!--@vbbanners:2@-->
</div>
</div>
<vb:elseif condition="THIS_SCRIPT == 'showthread' AND $post['postcount'] == 1" />
<div class="thread_controls">
<div style="width: 100%; text-align: center">
<!--@vbbanners:1@--><!--@vbbanners:1@-->
</div>
</div>
</vb:if>
|
Thank you for this information.
Could you explain it a little more. I see that this edit is for the postbit_legacy template but I'm not exactly sure where in that template you are adding this and should "THIS_SCRIPT" be changed to something else?
Thanks for any help anyone can offer.