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

surfsup

Well-known member
#1
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?
 

Jake Bunce

XenForo moderator
Staff member
#2
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>
 

Forsaken

Well-known member
#3
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>
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.