ok my current system is;
$fp = fopen ("styles/$style[name]/forums_top.tpl.php", "rb");
$text = fread ($fp, filesize("styles/$style[name]/forums_top.tpl.php"));
$text = str_replace('{$','<?php print $',$text);
$text = str_replace('}','; ?>',$text);
fclose ($fp);
eval($text);
If i try that it says;
Parse error: parse error, unexpected '<' in /home/clericv2/public_html/forum/includes/forums.php(8) : eval()'d code on line 1
But then if i echo instead of eval to check if its ok its perfect...it changes {$sitename} to <?php print $sitename; ?> but then if its eval'd it gives that error?