• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Avatar customization

Heavy

Active member
#1
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!



[Look at the profile pictures]

Can someone help me with this??

Thanks!
 
Last edited:
#2
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!



[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.
 

Heavy

Active member
#3
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!!!