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

    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!

    [​IMG]

    [Look at the profile pictures]

    Can someone help me with this??

    Thanks!
     
    Last edited: Mar 29, 2015
  2. derpyhooves

    derpyhooves Active Member

    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.
     
    Optic and Heavy like this.
  3. Heavy

    Heavy Active Member

    Can't thank you enough!

    Thanks, thanks thanks!!!
     

Share This Page