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

Default Avatars [Paid] 1.0

Hides avatars from guests and selective members

  1. ineedhelp

    ineedhelp Well-Known Member

    ineedhelp submitted a new resource:

    Default Avatars (version 1.0) - Hides avatars from guests and selective members

    Read more about this resource...
     
    erich37 likes this.
  2. erich37

    erich37 Well-Known Member

    great stuff !

    I forgot now how this is working in XF..... but can a user who did not confirm his E-mail-address during registration, actually see the Avatar-images of other members ?

    Anyway, this Add-on is a great idea!
     
    ineedhelp likes this.
  3. erich37

    erich37 Well-Known Member

    is it possible with this Addon to deny usergroup "Unregistered Members" from seeing any user-avatar, but not show any options to the user at the Frontend ?
    I just want to hide user-photos from guests, but do not want to offer my members to show their avatars to guests.

    Many thanks!
     
  4. ineedhelp

    ineedhelp Well-Known Member

    No sorry. But you should give members the choice if they want to display their avatar to Guests or not.
     
  5. DRE

    DRE Well-Known Member

    This slowed my site down considerably.

    On:
    Screen Shot 2013-10-13 at 5.28.12 PM.png

    Off:
    Screen Shot 2013-10-13 at 5.28.27 PM.png
     
    Last edited: Oct 13, 2013
  6. ineedhelp

    ineedhelp Well-Known Member

    I'm using this as well, as you know on my forum, but it hasn't effected my site. I did have an issue with my site being very slow recently, but it was due to another add-on which I have now disabled.
     
  7. DRE

    DRE Well-Known Member

    Which one was it? I only know that this makes it slow when this addon is enabled. Maybe it's clashing with another addon.
     
  8. ineedhelp

    ineedhelp Well-Known Member

  9. DRE

    DRE Well-Known Member

  10. Chris D

    Chris D XenForo Developer Staff Member

    With something that extreme, it'll be worth investigating a little bit further.

    I have previously seen an add-on cause another add-on's queries to constantly re-run.

    I would guess that if there's that many queries running that most of those will be duplicate queries. Could you click on the timing link and get the full debug output? Either post the full list here or post the query/queries that keeps getting repeated.

    As ever, it would be interesting to see if disabling all other add-ons will stop the add-on from using as many queries.
     
  11. DRE

    DRE Well-Known Member

    Interesting!
     
    Last edited: Oct 14, 2013
  12. Chris D

    Chris D XenForo Developer Staff Member

    The important thing (and possibly easiest) will be verifying if that add-on generates the queries on its own first with all other add-ons disabled.
     
  13. DRE

    DRE Well-Known Member

    Nothing happens when I click the Timing Link.

    Screen Shot 2013-10-13 at 6.24.32 PM.png
     
  14. Chris D

    Chris D XenForo Developer Staff Member

    Make sure debug is enabled in the config file. There's an issue with the Enable Debug From Admin Home add-on that does that. If debug is enabled in config, you can still turn Debug on/off from the Admin CP.
     
    DRE likes this.
  15. DRE

    DRE Well-Known Member

    ohhh
     
  16. DRE

    DRE Well-Known Member

    xf_user_avignored is used heavily in Default Avatars. These queries start at 25 then end at 166

    Screen Shot 2013-10-13 at 7.08.47 PM.png Screen Shot 2013-10-13 at 7.09.20 PM.png
     
  17. Chris D

    Chris D XenForo Developer Staff Member

    @ineedhelp

    This add-on generates as many as two additional queries per avatar displayed on a page. If you have 40 messages per page that's nearly 100 queries per page.

    I'm still not sure why DRE was hitting 200+ but the fact is, that is NOT good coding, not good performance and not worth £8.

    You should ask your developer to fix these fundamental issues as soon as possible.

    It is just not a sensible thing to do to execute database queries inside the avatar template helper.
     
    ineedhelp likes this.

Share This Page