MyBB Community Forums
MyStatus - Show in other Templates - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: MyStatus - Show in other Templates (/thread-229436.html)



MyStatus - Show in other Templates - ThistleProse - 2020-09-17

Hello!

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!


RE: MyStatus - Show in other Templates - Omar G. - 2020-09-19

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.


RE: MyStatus - Show in other Templates - ThistleProse - 2020-09-19

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!