MyBB Community Forums

Full Version: Displaying Avatar's on welcome block.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using the following to pull up the avatar and display it in the panel.

<img src="{$mybb->user['avatar']}"/ height="20px" width="20px">

Is this the best way to do it? Will this add a lot of overhead? Thanks.
That script should be perfect because {$mybb->user['avatar']} is the best variable to call for avatars and since you are specifying the height and width, it wouldn't overlap.
Thanks arbaz, its working fine for now. I thought there may be seem better ways as I am not a pro but learning it.
there is a mistake and I guess it is not the actual code. should be like below
<img src="{$mybb->user['avatar']}" height="20px" width="20px" />
Just to add on to Ms post. You placed / at the wrong location.
Oh yeah sorry, I typed it not copy pasted it. I have the correct code in the templates. Thanks .m. for pointing it out.