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

XF 1.3 Hide avatars for users without one

Brogan

XenForo moderator
Staff member
#2
You could try using a conditional statement in the template:

Code:
<xen:if is="!{$visitor.avatar_date} AND !{$visitor.gravatar}">
Content to remove here
</xen:if>
 

Warchamp7

Active member
#4
Ah, silly me. Visitor isn't what I want in this case. Changed it to:

Code:
<xen:if is="{$user.avatar_date} OR {$visitor.gravatar}">
Hides the avatars in posts for users who don't have one. My initial post may not have been totally clear on the behaviour I wanted