MyBB Community Forums

Full Version: Variables not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I make some variables working to another place?

Like:
{$stats['numusers']}

This works in index. I want it to be working in header.

Any suggestion?
You've to edit global.php file as well. Something similar: http://community.mybb.com/thread-97615-p...#pid713393
Thanks, that is exactly what I wanted.
But I want it to be editing any template only, not php file. As I'm implementing it in a theme.
Is it possible to do it through headerinclude or somewhere?
Unfortunately that wouldn't possible unless using a plugin, hooking it to global_start and then calling those variables in header template.