zethon
08-16-2009, 09:16 PM
I have a personal project going on and I'm trying to develop a template system similar to the one vBulletin uses.
One thing has me stumped. I want to use the <if> tag in my templates, but they never get parsed. I looked in the vb code for some help, but I can't see anything that much different from vb is doing and what I'm doing to cause this.
What is it in the vb that 'allows' the parsing to the <if> tag?
The code I'm using to import that template and print it looks like:
$file = implode("",file($config['Path']['templates']."/postbit.html"));
eval('$file=("'.addslashes($file).'");');
$file = str_replace("\\'", "'", $file);
print $file;
One thing has me stumped. I want to use the <if> tag in my templates, but they never get parsed. I looked in the vb code for some help, but I can't see anything that much different from vb is doing and what I'm doing to cause this.
What is it in the vb that 'allows' the parsing to the <if> tag?
The code I'm using to import that template and print it looks like:
$file = implode("",file($config['Path']['templates']."/postbit.html"));
eval('$file=("'.addslashes($file).'");');
$file = str_replace("\\'", "'", $file);
print $file;