XF 2.X Edge - default noavatar (without auto-letters) sizing

Russ

Pixel Exit Staff
#2
@Brightside I've adjusted this for our 2.0.11 release. Essentially Large avatars will now only load in the thread_view template. Because XF uses macros for certain areas they can re-use the same elements in other places, since they do this the Large size was "spilling" into other areas it shouldn't..

If you want to make the correction now, open message_macros on your parent style (yes the one that says do not edit).

Find:

HTML:
<xf:avatar user="$user" size="{{ property('xbMessageAvatarSize') }}" defaultname="{$fallbackName}" itemprop="image" />
Replace with:

HTML:
                <xf:if is="$xf.reply.template == 'thread_view'">
                    <xf:avatar user="$user" size="{{ property('xbMessageAvatarSize') }}" defaultname="{$fallbackName}" itemprop="image" />
                <xf:else />
                    <xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />
                </xf:if>
Only place this edit on the main style, this way when you upgrade you won't have outdated templates and the fix will still be applied.
 
Last edited by a moderator:

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.