[solved] Template not appearing
#3
Thanks for the reply! I'm glad I wasn't missing something obvious. Smile

I ended up going with the global variable like so:

$plugins->add_hook('usercp_menu', 'characters_nav');

function characters_nav() {

	global $mybb, $templates;

	eval('$mybb->user["characters_nav"]  = "'. $templates->get('characters_nav') .'";');
}

Template variable looks like this:

{$mybb->user['characters_nav']}
Reply


Messages In This Thread
[solved] Template not appearing - by Khaki - 2018-10-14, 09:47 PM
RE: Template not appearing - by Wildcard - 2018-10-14, 10:02 PM
RE: Template not appearing - by Khaki - 2018-10-20, 04:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)