XF 1.4 Avatar customization

Heavy

Active member
Hello,

I would like to have as vBulletin® with avatars that if I use an image that is small so it is small on the forum, and if it is large, it is large on the forum.

[Sorry for my english]

This image might explain what I mean!

06d61bf70ed0850d006bf548b96b1d8d.png


[Look at the profile pictures]

Can someone help me with this??

Thanks!
 
Last edited:
Hello,

I would like to have as vBulletin® with avatars that if I use an image that is small so it is small on the forum, and if it is large, it is great on the forum.

[Sorry for my english]

This image might explain what I mean!

06d61bf70ed0850d006bf548b96b1d8d.png


[Look at the profile pictures]

Can someone help me with this??

Thanks!
You wanna put this in the message_user_info:

Find this:
Code:
<xen:avatar user="$user" size="m" img="true" />

And replace with this:
Code:
<a class="username avatar Av{$user.user_id}l" href="{xen:link members, $user}">
<img src="{xen:helper avatar, $user, l, 'true'}" alt="{$user.username}" style="max-height:90px;max-width:90px;" itemprop="photo" />
</a>

This will keep the avatar aspect ratio and size if it's smaller than max size.
 
You wanna put this in the message_user_info:

Find this:
Code:
<xen:avatar user="$user" size="m" img="true" />

And replace with this:
Code:
<a class="username avatar Av{$user.user_id}l" href="{xen:link members, $user}">
<img src="{xen:helper avatar, $user, l, 'true'}" alt="{$user.username}" style="max-height:90px;max-width:90px;" itemprop="photo" />
</a>

This will keep the avatar aspect ratio and size if it's smaller than max size.

Can't thank you enough!

Thanks, thanks thanks!!!
 
Top Bottom