MyBB Community Forums

Full Version: Header Edit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey all, it's been a while since I've been around, but I'm here to ask for help.

Basically, I've been editing the header of MyBB 1.8, and I need a little insight to finish up.

http://myfortress.us.to/lolwat.png


I want to move all of the "welcome back" stuff up into the top of the page, and have the users avatar next to it, as you can see by my terrible picture haha.

How would I go about doing this?
you have to modify code in header template (esp. content of panel div and its style)
My main question is, how do I get the avatar to display? I noticed in the usercp template, {$avatar} is used to display the users avatar, but inserting that into the header template does nothing.
Hey HM, long time! (Ooka)

Well, you'll want to use this code:

<img src="{$mybb->user['avatar']}" alt="User Avatar" />

to display the user's avatar.



Also you'll want to move this around in the header template:

{$welcomeblock}

to move the welcome panel.

Hope that helps bud. Big Grin
Thanks Ooka, it's been a while since I've done anything lately, just wanted to jump back in.
I'll most likely be back because something will go horribly wrong.

EDIT: How would I go about it displaying the default avatar if there is none uploaded? All it shows is "User Avatar" when you have no avatar uploaded.