MyBB Community Forums

Full Version: Make a Variable Global?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I make a variable from a plugin display global around my site? It only shows on the Index, but I'd like it to show globally in my header.
use global_start hook.
(2021-01-23, 05:00 AM)Mostafa.Shiraali Wrote: [ -> ]use global_start hook.

Can you elaborate / explain further?

Trying to do so for this plugin here: https://community.mybb.com/mods.php?acti...w&pid=1307
That plugin isn’t optimized to be loaded in every page load. Probably not even for just the index page.

Anyways, change index_start to global_end. Then move {$cryptocurrency} around.
(2021-01-23, 09:49 AM)Omar G. Wrote: [ -> ]That plugin isn’t optimized to be loaded in every page load. Probably not even for just the index page.

Anyways, change index_start to global_end. Then move {$cryptocurrency} around.

Didn't seem to work, any other ideas?
Thats the only idea what Omar said, if the plugin codes are OK.