![]() |
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 :) |
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'"> |
yeah thats the one thanks Lynne i search it here:
http://www.vbulletin.com/docs/html/t...e_conditionals but didnt find it :( |
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.
|
Well i just cant make it work :S
Use this Code:
<vb:if condition="THIS_SCRIPT != 'register'" and "$show['guest']"> |
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']"> |
Oh i see :D
vbulletin uses the "" like php uses the () for several conditions in one if thanks a lot :) |
All times are GMT. The time now is 08:40 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:
|