PDA

View Full Version : 4.2.4 conditional statements


flox80
05-03-2017, 06:20 AM
Hi,

I'm trying to insert ads on the threads page and on posts page.

lets say i want an add to show after every 10 threads - I can not figure out the conditional statement for it
<vb:if condition xxxxxxxxxxxxxx
ads here
</vb:if>

the same for the posts page.

any help is greatly appreciated :) thanks.

--------------- Added 1493808696 at 1493808696 ---------------

related to the above, I got this to work in postbit:
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 10 OR $post['islastshown']">
<center>
{vb:raw mobad2}
<br />
<br />
</center>

I need to adapt this:

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 10 OR $post['islastshown']">
</vb:if>

for threadbit (so i can insert the plugin after the 10th thread and the last thread) I searched , but i could not find the correct syntax for the variables.

flox80
05-04-2017, 07:58 AM
fixed.