Header Edit
#1
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?
[Image: sigs.gif]
Reply
#2
you have to modify code in header template (esp. content of panel div and its style)
Reply
#3
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.
[Image: sigs.gif]
Reply
#4
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
Reply
#5
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.
[Image: sigs.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)