MyBB Community Forums

Full Version: MyStatus - Show in other Templates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I have this plugin installed, which works perfectly -- so long as the call code is in the Index template. However, I would like to put it in the header template. I'm not sure how to go about changing the code to do this.

Would anyone be able to assist me?

Thank you!
Open the plugin file, find:
$plugins->add_hook("index_start", "statusupdate_index");

Replace to:
$plugins->add_hook("global_intermediate", "statusupdate_index");

Then try placing {$statusupdate} in the header template.
I linked the wrong plugin, but with a little bit of digging I found the equivalent and was able to make the change and get it to work!

Thank you!