BuddyDev

Search

[Resolved] BP Members With Uploaded Avatars Widget no longer showing members

  • Participant
    Level: Enlightened
    Posts: 24
    xmginc on #21295

    Hi Brajesh,

    Hope you’re doing well

    It appears the latest updates to the plugins/Buddypress has made “BP Members With Uploaded Avatars Widget” no longer show members anymore – I’m still trying to troubleshoot this but wanted you to know in advance. It seems to have been working until the latest updates.

    Hope this can still work with the latest updates.

    Thanks!
    XMG

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #21301

    Hi Kuni,
    I am sorry for the inconvenience. Please allow me to check it and post an update to you by tomorrow.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #21327

    Hi Kuni,
    I have tested it and it is working.

    There was a bug when no members had uploaded avatar, It was showing a db error(due to BP_User_Query not understanding the empty array).
    I have fixed that too.

    It is possible that a plugin filtering on bp_after_has_members_parse_args or bp user query can cause this. Please check.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 24
    xmginc on #21332
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 24
    xmginc on #21334

    Good news! Your latest update now works!

    The only feature not working for me is if I choose “Use members loop from theme for listing?”

    If this check is turned off, it works great. If turned on, it stops working.

    Would you have any clues to where I should look to add/remove/update code for the theme’s member loop?

    Thanks Brajesh!

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #21335

    Hi Kuni,
    Thank you for the update.

    I am sorry but due to use of the custom code, you won’t be able to use theme template.

    The theme template uses bp_has_members() and that will be affected by the custom code used to modify members loop.

    The default is working, because it does not uses bp_has_members() loop.

    At the moment, since the filter bp_after_has_members_parse_args is not aware of the context, we are unable to filter it for one loop and not for another.

    Please use the default listing to keep it working.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 24
    xmginc on #21343

    Oh I see… Thanks for your time and help on this.

    Just to confirm:
    1. this was working before with custom themes but due to recent changes with Buddypress, this no longer works
    2. however if I use stock Buddypress without a custom theme, it should work

    Quick question:
    1. is there any way for me to edit the loop within the plugin so that it can show specific details of each member such as Name and certain custom fields? Your member
    2. could it call a different loop somehow to show the extra details? (name, office, custom)
    3. currently it only shows the photo and would be great if we could add the option of showing a few extra fields

    Thank you!

    • This reply was modified 5 years, 9 months ago by xmginc.
  • Participant
    Level: Enlightened
    Posts: 24
    xmginc on #21345
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #21346

    Hi Kuni,
    I am sorry, the option “Use members loop from theme for listing?” will not work, no matter which theme you use or template pack you use.

    The reason is you have custom filters on members loop and our loop gets affected by that.

    The solution is to differentiate between these two loops.

    A probable solution will be to create a copy of members-loop.php in buddypress/members in the theme and pass some “context=>avatar-widget” and then the original role based filter code, we will return the args if this context is found.

    If you are comfortable with it, Please do let me know.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 24
    xmginc on #21347
    This reply has been marked as private.

The topic ‘ [Resolved] BP Members With Uploaded Avatars Widget no longer showing members’ is closed to new replies.

This topic is: resolved