![]() |
<if> tags in vbulletin
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 :) |
Code:
<if condition="$x = $x">Hello<else />This will never happen.</if> PHP Code:
|
Have you taken a look at Smarty?
Might be easier than implementing your own Template Engine :) |
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 |
If you use the vBulletin backend, your pages must carry vBulletin copyright notice - plese keep this in mind!
|
yeah ofcourse .. :)
|
All times are GMT. The time now is 06:53 PM. |
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:
|