MyBB Community Forums

Full Version: Include plugin code in templates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i just wanna ask how to include code of plugin in templates that i want. Just example i have plugin MyForumIcons that display in forumbit_depth2_forum with code {$forum['myforumicon']}. But when i add {$forum['myforumicon']} in other page template like portal it shows none.

Thanks
You need to add a separate hook for every page the plugin should be applied to.
$plugins->add_hook("HOOK_NAME", "FUNCTION");
Compoare that with current hooks within your plugin and add all needed.

[ExiTuS]