Hi,
What I want to do is dynamically replace certain default vb:raw variables from all templates. That is for example wherever {vb:raw footer} is present, I want to replace with {vb:raw navbar}{vb:raw footer}
I first thought this would be simple with replacement variables, but replacement is not working. So I figured I could probably intercept when the template is queried from the database and before it's parsed and put in the template cache. So far i haven't got around to figuring it out so any suggestion, directions would be much appreciated. I don't mind editing the php files directly if required.
Thanks
--------------- Added [DATE]1299213676[/DATE] at [TIME]1299213676[/TIME] ---------------
OK , temporarily solved this by modifying the return value of fetch_template. For anyone interested,
in file class_core.php, find the function definition,
PHP Code:
protected static function fetch_template($template_name)
The return statement of this function is,
PHP Code:
return $template;
I just modified the return value as
PHP Code:
$template = str_replace('$footer', '$navbar.$footer', $template);
return $template;
This is just stop gap, until I find a better solution and strictly not recommended for newbies.