MyBB Community Forums

Full Version: Avatar in #panel
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey there, I'm starting a template
http://i47.tinypic.com/nexf0n.png
Do you see where is the panel?

Now I want the avatar to be near the Welcome (Benvenuto) Trinit,
[attachment=18535]

and the private message under the line.
The line is only of the bg, is not a div.
[attachment=18536]


Who could help me?

Ps. Don't care about the theme, is just the start lmao
For the avatar, you can get the code from the postbit templates (what I did on a theme I'm working on), and it works fine.
I write
	<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>


But no result
I think it has something to do with the "post" part, you don't need the <td class></td>, you can just have the avatar.
I forgot what code I used, sorry.
I tried but nothing Confused
Try:
<img src="{$user['avatar']}" />
Doesn't work
(2010-06-10, 05:38 PM)AJS Wrote: [ -> ]Try:
<img src="{$user['avatar']}" />
Yup that's the correct code, you can customize it by adding a class to it as it's an img.
But doesn't work Confused
Ugh my bad:

<img src="{$mybb->settings['bburl']}/{$mybb->user['avatar']}" height="25" width="25">

This must work took it out of one of my themes that displays an avatar.
Pages: 1 2