The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
VB conditional
Well i want to know how to add a conditional that made some image or anything i want to show to an specific group but only on some specific templates.
To be more clear, i want to show a register button in all the forum except in the register.php page. I know there is a template called register but i didn't see any conditional to use on templates, i see for forum id user groups etc but not for templates. Well thats everything. Thanks in advance |
#2
|
||||
|
||||
Sounds like you want to use THIS_SCRIPT. To show something on all pages but the registration page:
HTML Code:
<vb:if condition="THIS_SCRIPT != 'register'"> stuff </vb:if> |
#3
|
|||
|
|||
yeah thats the one thanks Lynne i search it here:
http://www.vbulletin.com/docs/html/t...e_conditionals but didnt find it |
#4
|
||||
|
||||
Take a look in the articles forums as there are articles in there that cover a lot more conditionals than those few in the manual.
|
#5
|
|||
|
|||
Well i just cant make it work :S
Use this Code:
<vb:if condition="THIS_SCRIPT != 'register'" and "$show['guest']"> |
#6
|
||||
|
||||
A condition is surrounded by double-quotes. You ended your condition right after the condition regarding the script 'register' - it never looked at show.guest. You need to do it more like this:
HTML Code:
<vb:if condition="THIS_SCRIPT != 'register' and $show['guest']">
|
#7
|
|||
|
|||
Oh i see
vbulletin uses the "" like php uses the () for several conditions in one if thanks a lot |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|