PDA

View Full Version : Evaluate a template to a variable?


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:

Marco van Herwaarden
01-11-2008, 07:15 AM
<a href="https://vborg.vbsupport.ru/forumdisplay.php?f=184" target="_blank">Articles</a>

Steve B
01-11-2008, 07:33 AM
Thanks, from that I found what I am looking for https://vborg.vbsupport.ru/showthread.php?t=119933

I did do a search first but did not get any usable results.