MyBB Community Forums

Full Version: witch hook for headerinclude
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i wanna insert a code to headerinclude template so is global_start hook right?
if you want to include it everywhere, yes... otherwise a hook specific to the page you want it on
I've found the global_start works the best. Frostschutz is right though, it would include it everywhere - you can use THIS_SCRIPT to grab the file name, and $mybb->input['action'] to grab a specific action;

if(THIS_SCRIPT == "member.php" && $mybb->input['action'] == "profile")
{
     // Code specifically for the Profile page
}
hook name is enough for me i'm working some kind of dynamic meta keywords plugin and its enough. i wasnt sure about hook thx to everyone.