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

There are three different avatar sizes

Discussion in 'XenForo Questions and Support' started by AndyB, Apr 8, 2013.

  1. AndyB

    AndyB Well-Known Member

    There are three different avatars created when you upload an avatar:

    Large 192x192
    Medium 96x96
    Small 48x48

    I can see where the Medium and Small avatars are being used, but I cannot locate where the Large avatar is used. Is it being used anywhere?
     
  2. Lycaon

    Lycaon Well-Known Member

    It's used on the member card.
     
  3. AndyB

    AndyB Well-Known Member

    Hi Lycaon,

    Interesting, on my forum the member card shows the Medium size avatar.
     
  4. James

    James Well-Known Member

    Large are used in profile pages.
     
  5. Lycaon

    Lycaon Well-Known Member

    Are you using the default style?

    This is the code

    HTML:
    <img src="{xen:helper avatar, {$user}, l}" alt="" style="{xen:helper avatarCropCss, $user}" />
    And changing th 'l' to m or s changes the avatar size.
     

    Attached Files:

  6. AndyB

    AndyB Well-Known Member

    Okay found the setting that changes the member card image size.

    ACP -> Home -> Options -> Attachment Thumbnail Dimensions -> 192

    I changed it from the default of 100 to 192.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Umm, that has nothing to do with member cards and avatars.

    That is the thumbnail size of attached images.
     
  8. James

    James Well-Known Member

    You need to change it in the template, it'll have size="m" in <xen:avatar />, change it to size="l".
     
  9. AndyB

    AndyB Well-Known Member

    I stand corrected. I put it back to 100 and tried again, now the member card is 192x192. Not sure why it was showing 96x96 before.
     
  10. AndyB

    AndyB Well-Known Member

    Not sure which template you're referring to, but the member card now shows 192x192 and I didn't need to edit any templates.
     
  11. James

    James Well-Known Member

    If you didn't change anything, perhaps it was always 192x192.
     

Share This Page