The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Condition to show something if a thread has more than x number of posts?
If I wanted to display some html if a thread has more than 5 posts, how would I do that?
I've seen conditionals that show how to display html after the 1st, 2nd, 3rd, etc post in a thread but, that is not what I am looking for. I simply want to display a chunk of code at the bottom of the showthread if there are more than X number of posts in a thread. Thanks in advance. |
#2
|
||||
|
||||
Try this:
Code:
<vb:if condition="$thread['replycount'] > X"> stuff... </vb:if> |
Благодарность от: | ||
#3
|
|||
|
|||
Seems to work perfectly -- thank you!
|
#4
|
||||
|
||||
no prob!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|