MyBB Community Forums

Full Version: User avatar tag
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What does {$post['useravatar']} call on?

By that, i mean, if i wanted to call on this method, but with <img> tags instead, how would i go about doing that?
I ask because I need to resize my {$post['useravatar']} differently that my default avatar post size.
It is defined to get the postbit_avatar template, which is:
<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></a></div>

I'm confused as to what you're trying to do. Are you trying to make one avatar smaller than all the others?
(2013-02-08, 03:05 AM)pandaa Wrote: [ -> ]It is defined to get the postbit_avatar template, which is:
<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></a></div>

I'm confused as to what you're trying to do. Are you trying to make one avatar smaller than all the others?

yes, the classic threading style requires a bit smaller avatar so that it fits properly. right now it looks a little squished. Thanks for the help Smile

EDIT:
I tried replacing the {$post['useravatar']} just as you posted and this was the result:
[Image: TCgkCLc.png]
:o ?

EDIT2: I checked the template you said that it was defined in, and it looked a little different: (no div)

<a href="{$post['profilelink_plain']}"><img style="-webkit-border-radius: 5px; border-radius: 5px;" src="{$post['avatar']}" alt="" {$avatar_width_height} /></a>

and i got it to work
Thanks for the help Toungue