Tonny Kluften Member Sep 24, 2014 #1 How can I remove the avatar if a user have no avatar? It does not look very nice with all that default avtar images. Thanks!
How can I remove the avatar if a user have no avatar? It does not look very nice with all that default avtar images. Thanks!
Paul B XenForo moderator Staff member Sep 24, 2014 #2 It would require editing the template(s) and using a conditional statement related to whether an avatar or gravatar is being used. Upvote 0 Downvote
It would require editing the template(s) and using a conditional statement related to whether an avatar or gravatar is being used.
Tonny Kluften Member Sep 24, 2014 #3 Yes, thanks. But I have no clue on how to make that conditional statement. Upvote 0 Downvote
Paul B XenForo moderator Staff member Sep 24, 2014 #4 <xen:if is="!{$user.avatar_date} AND !{$user.gravatar}"> Upvote 0 Downvote
Tonny Kluften Member Sep 24, 2014 #5 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="{xenhrase online_now}" data-offsetX="-22" data-offsetY="-8"></span></xen:if> <!-- slot: message_user_info_avatar --> </div> </xen:if> Upvote 0 Downvote
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="{xenhrase online_now}" data-offsetX="-22" data-offsetY="-8"></span></xen:if> <!-- slot: message_user_info_avatar --> </div> </xen:if>
Paul B XenForo moderator Staff member Sep 24, 2014 #6 You need to change it to <xen:if is="{$user.avatar_date} OR {$user.gravatar}"> Upvote 0 Downvote
Tonny Kluften Member Sep 24, 2014 #7 Thats it. Thanks again for your help. I see that you are a great resource here. Hope you know that you really are making a difference for us beginners. Upvote 0 Downvote
Thats it. Thanks again for your help. I see that you are a great resource here. Hope you know that you really are making a difference for us beginners.