MyBB Community Forums

Full Version: Set custom variable and print on header template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone! This is my first thread and I hope I'm not in the wrong section Big Grin

The question is: how do I print a custom variable in header template like {$playersonline} and where is the best place to set it?

This variable will receive data from my mysql query with amount of players online in my server.

I tried to set it in global.php and index.php but when index is loaded nothing show.

Hope someone can help me Big Grin

Thank you!