PDA

View Full Version : adverts after first post and X posts


webinterface
01-04-2014, 09:56 PM
Hello guys,

I tried adding this to my postbit_legacy:


<vb:literal>
<!-- Adverts Begin -->
<vb:if condition="($post[postcount] == '1')">
<li class="postbitlegacy postbitim postcontainer">
<div class="posthead"><span class="postdate">Google Anzeige</span></div>
<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<span class="usertitle" style="text-align:center;padding:10px; margin-top:10px;"><b>Adverts</b></span>
<hr />
</div>
</div>

<div class="postbody">

---Adsense here---

<div class="cleardiv"></div></div>
<div class="postfoot"><div class="textcontrols floatcontainer"></div></div><hr />
</li>
</vb:if>
<!-- Adverts End -->
</vb:literal>


(It has to look like a post)


I searched and found some good topics but the syntax of vb:if maybe were changed.
The Problem is now after every post in my thread there is a "adverts"-post.

Anybody can help me with this?

kh99
01-05-2014, 01:23 PM
Did you put the <vb:literal> tags in there just to print it out? Those shouldn't be there because it will cause the vb:if tags to be ignored.

webinterface
01-05-2014, 01:59 PM
vBulletin told me I should place it. After deleting this it works great =)

Thanks.

kh99
01-05-2014, 03:14 PM
You may need them around code sometimes, such as if your template includes javascript. But in that case you would have to make sure any other vb: tags are outside the vb:literal tags.