The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Condition Question
Hello
I need a condition in SHOWTHREAD for the number of posts in a thread. In postbit legacy I use this: <vb:if condition="$post[postcount] % $vboptions[maxposts] == 2 AND !$post['islastshown']"> which displays something in the 2nd post (1st reply) if it is not the last post on the page. I now need something similar for SHOWTHREAD I want to display ads but only if there are less then 2 posts (initial post + 1 reply). It must be in SHOWTHREAD template though. Unfortunately <vb:if condition="$post[postcount] % $vboptions[maxposts] <= 2"> does not work (for showthread). Can anyone help me plz StarBuG |
#4
|
||||
|
||||
Thank you, that worked perfect
|
Благодарность от: | ||
TheLastSuperman |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|