MyBB Community Forums

Full Version: Template Variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys, just a quick question:

I'm using this:
find_replace_templatesets('header', '#{\$board_messages}#', "{\$board_messages}\n{\$somebutton}");
eval("\$somebutton = \"".$templates->get("sometemplate")."\";");
output_page($somebutton);

It works when I place
eval("\$somebutton = \"".$templates->get("sometemplate")."\";");
output_page($somebutton);

in the global_start function, but not when I put it in the _activate() function.

The problem is, when I put it in the global_start function and click "Log out" I receive this error:

http://i.imm.io/B93N.png

Thanks Smile
you dont need to add the output_page portion as the core code handles that for you