Forum Moderators: coopster
I'm trying to do something that's already done by IPB.
They call it "html logic".
I'll try to explain how it works...
We have a xml file with data inside.
Here is a small example
<html>
<![CDATA[<span><if="$_COOKIE['user']">Hello $_COOKIE['user']</if></span>
]]>
</html>
What their xml parser will do after you re-cache the skin is to save some parts of the xml file (containing html) into php files. The <if>$data</if>/<else>$something</else> tags will be replaced with if($data){echo $something} else{echo $nothing}
I want to understand that method of replacing those tags because I'll be needing it. Could somebody give me a hand by giving me some advices/tutorials or pieces of working code ?
Thanks in advance,
tftd
Good luck.