XF 1.4 Remove avatar if user have no avatar


XenForo moderator
Staff member
It would require editing the template(s) and using a conditional statement related to whether an avatar or gravatar is being used.
Thanks again Brogan. I am new to this wonderful software Xenforo and my knowledge is limited.

I use this, then the avatar to the ones who have an avatar disappeared, how can I achieve the opposite?:

<xen:if is="!{$user.avatar_date} AND !{$user.gravatar}">
<div class="avatarHolder">
<span class="helper"></span>
<xen:avatar user="$user" size="m" img="true" />
<xen:if is="{$user.isOnline}"><span class="Tooltip onlineMarker" title="{xen:phrase online_now}" data-offsetX="-22" data-offsetY="-8"></span></xen:if>
<!-- slot: message_user_info_avatar -->