MyBB Community Forums

Full Version: Call a custom made template?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In header I want to call the template called "menu" which is under "Global Templates".

How can I do this?
In ./global.php , search for;
$plugins->run_hooks("global_start");
and ADD the following code just AFTER that;
eval("\$menu2 = \"".$templates->get("menu")."\";");
Now use the {$menu2} in the header template.