MyBB Community Forums

Full Version: Am I missing something?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm working on a custom userbar for my forum, Obviously, its not done, but when I place {$userbar} in the header template and save, nothing happens.
Here is the code I placed in "global.php"

http://pastie.org/603915

Here is the part in the template "header"

<div id="welcome">
<div class="welcome-area">
{$userbar}
</div>
<div class="area-bottom"></div>
</div>

And finally, here is a screenshot of whats not showing up.
[Image: 2009-09-02_2228.png]

Can anyone help? This is rather odd, as usually I have no problem coding with MyBB.
Just to let ya know, please wrap your PHP code on Pastie within PHP tags. So it turns on syntax highlighting. Wink
Is that why half the time it doesn't work? Thanks, ill edit it.
A HA! I found the issue. I was declaring the $userbar var after the header template was eval'ed.
You can lock this now Smile