![]() |
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 |
for number of posts in a thread you can use
Code:
$threadinfo[replycount] + 1 |
You can try:
Code:
<vb:if condition="$GLOBALS[postcount] % $vboptions[maxposts] <= 2">Testing 123</vb:if> |
Thank you, that worked perfect :)
|
All times are GMT. The time now is 09:15 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:
|