![]() |
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. |
Try this:
Code:
<vb:if condition="$thread['replycount'] > X"> |
Seems to work perfectly -- thank you!
|
no prob! :)
|
All times are GMT. The time now is 08:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|