MyBB Community Forums

Full Version: Quick question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi i have a simple question i have a mybb plugin that is in Member_profile 
{$pluginname}

i want to add {$pluginname} to welcome block template but it doesnt work

i currently use {$mybb->user['pluginfunction']} Works but not like member_profile
help please
It depends on whether or not the variable has been defined - if it's in a hook for the member profile, it won't be available globally.
Its
$plugins->add_hook("index_start", "count");
$plugins->add_hook("showthread_start", "count");
$plugins->add_hook("newreply_start", "check");
$plugins->add_hook("showthread_end", "quickreply");
$plugins->add_hook("newthread_do_newthread_end", "count");
$plugins->add_hook("newreply_do_newreply_end", "count");
$plugins->add_hook("member_profile_start", "declare");

How to make it global is it the solution?
It depends entirely on what the function does and what else it relies on - simply changing the hook doesn't meant it will work. What is the actual plugin you're using?
Ratio system