Lack of interest No avatar if none is provided

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Adam Howard

Well-known member
XenForo uses the simple grey avatars when a member does not upload their own. I would love an option that if someone does not supply an avatar, no avatar is displayed for that member.

So rather than this:
J0u1P1k.webp

You would have this (if no avatar was uploaded by the user)
rAbKh8y.webp

I think is more cleaner looking than seeing the same dull 'default' repeated.
 
Last edited:
Upvote 6
This suggestion has been closed. Votes are no longer accepted.
If you want to achieve that now, it can be done with a template edit and conditional statement.
Oh really? Yes please, do share this knowledge.

I tried doing this myself via template edit, but was fairly sure it would need some sort of code change in the core files.
 
Oh really? Yes please, do share this knowledge.

I tried doing this myself via template edit, but was fairly sure it would need some sort of code change in the core files.

Haven't really tested it much but in message_user_info:

Code:
  <xen:if is="{$user.avatar_date} AND {$user.gravatar}">
     <div class="avatarHolder">
       <span class="helper"></span>
       <xen:avatar user="$user" size="m" img="true" />
       <!-- slot: message_user_info_avatar -->
     </div>
     </xen:if>

Add the conditional around the avatarholder div.

preavatar.webp

preavatar2.webp
 
Haven't really tested it much but in message_user_info:

Code:
  <xen:if is="{$user.avatar_date} AND {$user.gravatar}">
     <div class="avatarHolder">
       <span class="helper"></span>
       <xen:avatar user="$user" size="m" img="true" />
       <!-- slot: message_user_info_avatar -->
     </div>
     </xen:if>

Add the conditional around the avatarholder div.

View attachment 72883

View attachment 72884
NOPE. :(

That hides everyone's avatar.

What I want is if no avatar is supplied, that none will be shown. But if you supply an avatar, yours should show. ;)
 
Again, not what I'm talking about or looking for.

Let's use this thread as an example
http://xenforo.com/community/threads/may-day-2014.73331/#post-759721

How it is NOW
View attachment 72887


What I am suggesting (looking for)
View attachment 72886

Try this instead?

Code:
    <xen:if is="!{$user.avatar_date} AND !{$user.gravatar}">
     <xen:else />
     <div class="avatarHolder">
       <span class="helper"></span>
       <xen:avatar user="$user" size="m" img="true" />
       <!-- slot: message_user_info_avatar -->
     </div>
     </xen:if>

:
Screenshot_1.webp

I'm no good with conditionals :)
 
Was looking to do the same and realized that for branding purposes, something like this would be even better. Just replace the default avatars.

Just sayin' :D

Sans-titre-2.webp
 
Top Bottom