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

Lack of Interest [suggestion] disable avatar placeholder image in threads

Discussion in 'Closed Suggestions' started by Jesepi, Oct 28, 2010.

  1. Jesepi

    Jesepi Well-Known Member

    Many of my users choose to not use an avatar, so the forum is filled with a bunch of placeholder images under people's names. Instead of that, I would like an option (possibly per-theme assigned just like post count/registration dates?) to disable these placeholder images and just display the username within a thread.
    sami simo and ked38 like this.
  2. mra0

    mra0 Member

    Is the placeholder from gravatar?
  3. Jesepi

    Jesepi Well-Known Member

    No, I think it is just a default image, which changes based on gender if that has been specified by the user.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You can do this very easily with a template edit.

    Open the message_user_info template and find this line and delete it.

    <div class="avatarHolder"><xen:avatar user="$user" size="m" itemprop="photo" /></div>
    You will also need to edit quick_reply to tidy that up due to the missing avatar block.

    Delete this:

    	<xen:include template="message_user_info">
    		<xen:map from="$visitor" to="$user" />
    		<xen:set var="$isQuickReply">1</xen:set>
    ghiboz, Andrew and anotheralias like this.
  5. Andrew

    Andrew Well-Known Member

    Ahh that is a very good suggestion. However, I believe that may only be a short-term fix. As new updates for XF roll out this template modification would have to be readded as that template changes. A long term fix may be to replace the default avatar images with a clear/blank 1x1 pixel spacer image. The avatar image would still exist but would be no more than 1kb and not visible.

    Avatar Images:
  6. Jesepi

    Jesepi Well-Known Member

    The above template edit suggestion completely removes avatars, which isn't what this suggestion is about.

    This suggestion is to have the avatar placeholder images not present at all. The lack of an avatar is enough of an indication that a user has not chosen to upload/select one. The above suggestion of changing the image to a 1x1 pixel image still leaves an empty box. I would much prefer things just gracefully move up and occupy the space where the avatar would have been.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    That's exactly what the template edits which I posted above do.

  8. Jesepi

    Jesepi Well-Known Member

    yes, but when I did that no avatars were shown at all, even if the user had uploaded one.
  9. Brogan

    Brogan XenForo Moderator Staff Member

    I see.
    So you want differing message templates depending on whether a user has uploaded an avatar or not.

    That's probably possible but it would involve querying the DB and using a conditional statement in the template.

    You could try asking in the add-ons forum.
  10. Netsultants

    Netsultants Active Member

    I would also like this feature implemented.

    I don't want to force everyone to create an avatar and I don't think it looks good to have a page full of default images.
  11. Andy.N

    Andy.N Well-Known Member

    I would love the ability for users to not display avatar, right next to the option to turn off signature.
    This should be user's choice, not side-wide option
    Crispy likes this.
  12. Crispy

    Crispy Member

    Hell yes. Many of our current vb4 users are strongly against Avatars (which are turned off in our vb installation).

    We've made a custom style for No Avatars in XF, but it needs a lot of template edits!
    A checkbox to turn avatars off, or replace them site-wide with a replacement generic image would be very useful indeed.
  13. whitetigergrowl

    whitetigergrowl Active Member

    This is outdated as the templates have changed and I was looking for a way to do this. To get rid of the placeholder avatar in the member list and next to each post. (Minus the quick reply. I like it there and it sets it apart from other forum software.)

    How would I go about doing this now? I've tried searching but have had no luck. And I have to agree it would be nice to have an on/off switch for this. Thanks!
  14. whitetigergrowl

    whitetigergrowl Active Member

    The avatar system needs revamping. The avatars should auto re-size if the image qualifications change too. Hopefully this is coming.

    Also, no answer on this yet? o_O
  15. Garamond

    Garamond Well-Known Member

    I also would like an easy option to remove the avatar placeholder in threads when a user doesn't have an avatar, since XenForo doesn't provide a way to force my users to upload an avatar.

    If mandatory avatar isn't supported, why then show this question-mark or the likes, at all? After only 4 months of running my XF-forum this is one of the things that's getting annoying now.

    If the reason behind this is thought through, I would very much love to hear what it is - because as it is now it seems half-baked. Sorry for my somewhat harsh choice of words :)
  16. Andy.N

    Andy.N Well-Known Member

  17. Garamond

    Garamond Well-Known Member

    Another add-on. I have now 22 add-ons installed to get my forum work as I want to, not to mention all the code mods. This is getting a bit out of hand, imo.

    Besides, the add-on you suggest requires each member to make this adjustment themselves. Pretty much back to square one here.
  18. Emil JaBo

    Emil JaBo Active Member

    Does this still work? The code looks slightly different and I do not want to cause any damage. :)
  19. Brogan

    Brogan XenForo Moderator Staff Member

    Just delete everything between the opening and closing div tags.
    Emil JaBo likes this.
  20. Emil JaBo

    Emil JaBo Active Member

    Thanks. :)

Share This Page