BuddyDev

Search

Hide Users’ Activity from certain roles or member types

  • Participant
    Level: Initiated
    Posts: 19
    EazyCast on #50593

    Hello again!

    I’m looking at hiding the activity of some users from some other users.

    E.g.

    Member Type Creative posts activities, other members can see that but hide it from Member Type Client, so anyone with Member Type Client cannot see what Creative is posting…

    Thank you!
    Bruno

  • Keymaster
    (BuddyDev Team)
    Posts: 24577
    Brajesh Singh on #50605

    Hi Bruno,
    Thank you for the question.
    It is doable but it may not be efficient enough for larger community.

    What is the expected size of your community? I may have some idea based on your answer.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    EazyCast on #50637

    We’ll start already with around 700 members and grow from there, but hard to be sure HOW much it’ll grow…

    It could be based on roles instead of member types too…

    Thank you so much!

  • Keymaster
    (BuddyDev Team)
    Posts: 24577
    Brajesh Singh on #50647

    Hi Bruno,
    Thank you for the reply.

    1. BuddyPress activity stream is not built for this use case. we could exclude users bu role/type but that means adding a sub query/passing values and as the user list grows that becomes problematic.

    It is not a problem if you are going to have say upto 4000 users but it will be a problem if the user list is 40000+ or so.

    We can assist you with code to separate stream by role or member type but we will not be able to assist with performance as the site grows. If that is acceptable, Please let me know and I will share the code.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    EazyCast on #50652

    Hi Brajesh,

    Thank you so much. Yes I would like to try the code out. Not in a hurry though…

    Bruno

  • Keymaster
    (BuddyDev Team)
    Posts: 24577
    Brajesh Singh on #50661

    Hi Bruno,
    Thank you.
    I will share the code sometimes this week.

    Thank you
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved