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

Avatar size around 125x125....how to get it working 100%?

Discussion in 'XenForo Questions and Support' started by surfsup, Aug 4, 2012.

  1. surfsup

    surfsup Well-Known Member

    How can I get everyones avatar section to be around 125x125 without it leaving a white space or cropping it too much?

    Cause to my knowledge if i change it, it will still resize the image to either s m l = 48, 96, 192

    Right?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    XF resizes avatars to fit into one of those three sizes. You can change which size is used by editing the appropriate template. For example, to change the avatar size used in posts edit this template:

    Admin CP -> Appearance -> Templates -> message_user_info

    Change the size in red:

    Code:
    	<xen:hook name="message_user_info_avatar" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
    		<div class="avatarHolder">
    			<span class="helper"></span>
    			<xen:avatar user="$user" size="m" />
    			<!-- slot: message_user_info_avatar -->
    		</div>
    	</xen:hook>
    
     
  3. Forsaken

    Forsaken Well-Known Member

    The problem is his members think 96 is too small, but 192 (The large avatar) is too large. While it can be resized with CSS, it crops part of the avatar which throws it off.
     
    8thos likes this.
  4. Shelley

    Shelley Well-Known Member

    Yeah just noticed that and trying to see if there's a css workaround for that.
     

    Attached Files:

    • 125.png
      125.png
      File size:
      325.1 KB
      Views:
      19
    8thos and ArnyVee like this.
  5. DRE

    DRE Well-Known Member

    Even vB4 lets us resize avatars without scrunching it up cmon son!
     
    surfsup likes this.

Share This Page