The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is there an easy way to detect the number of posts in a thread? I want the reply button to be a quote button if there are no posts in the thread. Thus making sure people quote the original thread post for the first reply. Is there a variable already assigned in vB with this info? Maybe for show thread template? what do you think?
|
#2
|
|||
|
|||
![]()
I think this should work:
Code:
<if condition="$GLOBALS['counter'] == 1 && $GLOBALS['limitlower'] == 0"> only one post <else /> more than one post </if> ETA: added the check for $limitlower because I realized $counter is per page, so any page with one post would have triggered the "only one post" code. |
#3
|
|||
|
|||
![]()
thanks kh99! I will go and try this!
--------------- Added [DATE]1323278426[/DATE] at [TIME]1323278426[/TIME] --------------- sadly it doesn't work. added to my show thread template |
#4
|
|||
|
|||
![]()
I guess it needs a space between the <else and the />, which I added above. I tried it in my SHOWTHREAD and it seems to work. What happens for you?
|
#5
|
|||
|
|||
![]()
yes it works, thanks so much!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|