Steve B
01-11-2008, 06:55 AM
I need to be able to call a new template via a variable and asked about this on vb.com. I was told I needed to add PHP code to evaluate the template to a variable, like this:
eval('$mytemplate1 = "' . fetch_template('mytemplate1') . '";');
and that it could be done via a plugin. Since this new template variable may be needed on any forum section I presume I want a global hook as well? As I have not created my own plugin's before can anyone help with a little guidance or links to information that I can work from please.
Thanks in advance :up:
eval('$mytemplate1 = "' . fetch_template('mytemplate1') . '";');
and that it could be done via a plugin. Since this new template variable may be needed on any forum section I presume I want a global hook as well? As I have not created my own plugin's before can anyone help with a little guidance or links to information that I can work from please.
Thanks in advance :up: