Log in

View Full Version : fetch_template issue


N8
03-19-2012, 04:57 AM
Could someone please refresh my memory...


On one of my old websites, I had the following template set up:


global_start hook:

eval('$regbar = "' . fetch_template('$regbar') . '";');



And a template named regbar



And was then able to use $regbar inside of almost any standard vbulletin template and grab the contents of $regbar



Now I'm trying to do the same thing on a different board but can't remember what else needs to be done. Is there also a PHP code edit I'm forgetting about?

kh99
03-19-2012, 12:50 PM
I think you just want to remove the $ from the template name, like:

eval('$regbar = "' . fetch_template('regbar') . '";');