The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
<if> tags...
I find the <if> tags in vb templates really quite useful and want to use them in another totally unrelated site i'm building... I looked at the vb code to try and work out how/if it was parsing them but drew a blank. They seem to be done serverside since they don't turn up int the source. Is it safe just to drop them into a html page and presume they will be evaluated correctly?
|
#2
|
|||
|
|||
It pseudo-compiles them to runtime PHP code with inline ifs.
While I've never used it, I've heard good things about the template engine "Smarty." You may want to look into that. |
#3
|
|||
|
|||
how?
|
#4
|
|||
|
|||
yay i figured it. could have pointed me in the directin of the templates stored in the db thou... Anyway, for anyone else wondering how its done. it changes the <if> tag into:
"template". (($condition) ? ("true") : ("false")) ."template continues" |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|