BuddyDev

Search

[Resolved] Hiding a specific member from the 'recently active' list

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #21333

    *Started a new post to remain clear for this forum:

    What code would I need to use to hide a specific member from the ‘recently active’ list.

    Many thanks,

    Kristian.

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

    Hi Kristian,
    Thank you for opening the new topic.

    Is it from the directory/widget listing?

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #21356

    No problem 🙂 This forum is pretty awesome!

    Yes, it’s a widget listing. It appears in my right side bar.

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

    Hi Kristian,
    Thank you.

    Here is a link to post that shows how to do it

    https://buddydev.com/hiding-users-on-buddypress-based-site/

    Please do note that hiding a user will remove him from the members directory as well as other places. Since the widget uses bp_has_members() and we don’t have a context to differentiate it. The code has side effect of hiding users from other places too.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #21380

    Thank you, Brajesh!

    Actually, that’s perfect.

    I even updated the admin hide code as well.

    Thank you so much for all this, you’ve been amazing ~

    Adi

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

    Hi Adi,
    You are welcome. Glad that I was able to assist.

    Regards
    Brajesh

The topic ‘ [Resolved] Hiding a specific member from the 'recently active' list’ is closed to new replies.

This topic is: resolved