Quote:
Originally Posted by licensinglinks
How can I get a banner to display after the 1st post? I don't want it to display in the signature of the first post (one of the in-built options).
I just want it do display between the 1st and 2nd post.
Any idea?
|
This code may do it (postbit_legacy only), but it also needs some adapting to your needs ...
Please take in account I'm a coder, and questions about styles should not be posted here, as I'm unable to tell you the truth about them
Above: {vb:raw template_hook.postbit_start}
PHP Code:
<vb:if condition="$post['islastshown']">
<li id="lastpost_ad" class="postbitlegacy postbitim postcontainer old">
<div class="posthead">
<span class="postdate old">
<span class="date">Avviso pubblicitario</span>
</span>
</div>
<div class="postdetails">
<div class="userinfo"></div>
<div class="postbody">
<div class="postrow">
<div class="content">
<div id="lastpost_ad_message">
<blockquote class="postcontent ">
<div align="center"><br />@vbbanners:2@</div>
</blockquote>
</div>
</div>
</div>
<div class="cleardiv"></div>
</div>
</div>
<hr />
</li>
</vb:if>
Below: {vb:raw template_hook.postbit_end}
PHP Code:
<vb:if condition="$post['isfirstshown']">
<li id="firstpost_ad" class="postbitlegacy postbitim postcontainer old">
<div class="posthead">
<span class="postdate old">
<span class="date">Avviso pubblicitario</span>
</span>
</div>
<div class="postdetails">
<div class="userinfo"></div>
<div class="postbody">
<div class="postrow">
<div class="content">
<div id="firstpost_ad_message">
<blockquote class="postcontent ">
<div align="center"><br />@vbbanners:2@</div>
</blockquote>
</div>
</div>
</div>
<div class="cleardiv"></div>
</div>
</div>
<hr />
</li>
</vb:if>