Hello! I'm in the early stages of creating a plugin, and I think I'm missing something having to do with templates. I'm trying to get my template (characters_nav) to appear in the usercp_nav_profile template with a variable. I've confirmed that the characters_nav template exists.
This is the plugin snippet:
Here's the variable I'm including in the usercp_nav_profile template:
Am I using the wrong hook? Missing something as far as my template goes? Totally off my rocker?
Any guidance appreciated!
This is the plugin snippet:
$plugins->add_hook('usercp_start', 'characters_nav');
function characters_nav() {
global $mybb, $templates, $characters_nav;
eval('$characters_nav = "'. $templates->get('characters_nav') .'";');
}
Here's the variable I'm including in the usercp_nav_profile template:
{$characters_nav}
Am I using the wrong hook? Missing something as far as my template goes? Totally off my rocker?
Any guidance appreciated!
