The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Bumping this thread, because I'm trying to do the same thing, without removing the separator.
I am happy with just displaying "1000 or more" if the user has 1000 or more posts. I figure that you can check for this using strlen($post[posts]) > 3. Problem is... can I call strlen from a template? It's not allowed within the if conditional itself. Can I call a function somewhere else and have it set a variable? I know PHP but am a bit clueless about how much of it fits into VBulletin templates. Currently I've hacked a solution as follows: <if condition="($post[posts]{0}==NULL) || ($post[posts]{1}==NULL) || ($post[posts]{2}==NULL) || ($post[posts]{3}==NULL)"> $vbphrase[posts]: $post[posts] <else /> $vbphrase[posts]: 1000 or more </if> |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|