MyBB Community Forums

Full Version: User Avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm creating a theme for my shop I've created and I wanted to know what I need to do to get the users avatar to show up in the header. I'm trying to figure out how to make the avatar a user dropdown menu if anyone could help with that?
hi
u must edit the "header_welcomeblock_member" template
pls refer to this tutorial (its quite good) by envira
http://community.mybb.com/thread-172860.html

following that with some aditions i got this dropdown on a theme i was making:
[Image: Gwlt8p1.png]


for showing your avatar like i did on top use something like this:
<span class="avatar"><img src="{$mybb->user['avatar']}"/></span>
(2016-04-22, 10:04 AM)subzr1 Wrote: [ -> ]hi
u must edit the "header_welcomeblock_member" template
pls refer to this tutorial (its quite good) by envira
http://community.mybb.com/thread-172860.html

following that with some aditions i got this dropdown on a theme i was making:
[Image: Gwlt8p1.png]


for showing your avatar like i did on top use something like this:
<span class="avatar"><img src="{$mybb->user['avatar']}"/></span>

Could you show me your dropdown menu code I'd like to use it? I really like what you did.
Check out mine at http://shop.technologx.com
the dropdown code i got it from this tutorial
http://community.mybb.com/thread-172860.html
after ive just edited the content of dropdown