The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hi all ..
well , i have my own templates system and i used database to build it .. and i'm using a function such as fetch_template to output the template .. and i want to add <if> tags to it like vbulletin .. so how could i do that .. ? i found this thread : https://vborg.vbsupport.ru/showthrea...ight=condition maybe i got a part of the idea but i still didn't understand how and where should i convert the tags to php .. thanks in advance
|
|
#2
|
||||
|
||||
|
Code:
<if condition="$x = $x">Hello<else />This will never happen.</if> PHP Code:
|
|
#3
|
||||
|
||||
|
Have you taken a look at Smarty?
Might be easier than implementing your own Template Engine
|
|
#4
|
||||
|
||||
|
Good news ..
i found the function wich convert the <if> tags to php.. and i link it to my own template system .. and it's works very good ..i will post how to use it in your database template system later.. regards cs |
|
#5
|
||||
|
||||
|
If you use the vBulletin backend, your pages must carry vBulletin copyright notice - plese keep this in mind!
|
|
#6
|
||||
|
||||
|
yeah ofcourse ..
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|