View Full Version : Template Conditions
Adrian Schneider
12-15-2004, 02:56 AM
Is there a list of usable vB template conditions anywhere? I really hate having to do a search whenever I need to find something, a nice reference document would come in really handy.
Link14716
12-15-2004, 03:00 AM
There are an infinite number.
I could do <if condition="2 + 2 == 5"> if I wanted to.
Colin F
12-15-2004, 06:06 AM
Here's a list of the php functions you can use in the template conditionals: http://www.vbulletin.com/docs/html/main/functions_in_conditionals
you can use any variables you like.
Adrian Schneider
12-15-2004, 01:46 PM
Thanks Colin, exactly what I was looking for. So you can call the database using templates? Interesting.
Colin F
12-15-2004, 02:39 PM
Thanks Colin, exactly what I was looking for. So you can call the database using templates? Interesting.
No, it seems you got something mixed up :)
It says specifically, that that example is disallowed:
This, for example, would be disallowed by the vBulletin template system, as it contains a call to a 'forbidden' function: mysql_query.
boiboi
01-31-2005, 06:09 AM
There are an infinite number.
I could do <if condition="2 + 2 == 5"> if I wanted to.
tsk tsk tsk lol
Michael Morris
01-31-2005, 06:20 AM
There are an infinite number.
I could do <if condition="2 + 2 == 5"> if I wanted to.
"2 + 2 = 5 if Hitler says so." - Herman Goering, 1939.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.