Most accurate would probably be to check {$user.getAvatarType()}. That will return "gravatar", "custom" or "default". Default means they have no avatar.
Most accurate would probably be to check {$user.getAvatarType()}. That will return "gravatar", "custom" or "default". Default means they have no avatar.
That can be used in templates. Are you trying to use it in a template that has the user variable? Or are you trying to check it for the currently logged in user?
If the latter you would use {$xf.visitor.getAvatarType()
That can be used in templates. Are you trying to use it in a template that has the user variable? Or are you trying to check it for the currently logged in user?
If the latter you would use {$xf.visitor.getAvatarType()