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

Discussion in 'Styling and Customization Questions' started by Heavy, Mar 28, 2015.

  1. Heavy

    Heavy Active Member


    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??

    Last edited: Mar 29, 2015
  2. derpyhooves

    derpyhooves Active Member

    You wanna put this in the message_user_info:

    Find this:
    <xen:avatar user="$user" size="m" img="true" />
    And replace with this:
    <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" />
    This will keep the avatar aspect ratio and size if it's smaller than max size.
    Optic and Heavy like this.
  3. Heavy

    Heavy Active Member

    Can't thank you enough!

    Thanks, thanks thanks!!!

Share This Page