Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to make replying for group activity stream only for group members?..

  • Avatar of jittopjose
    jittopjose
    Participant

    @jittopjose

    I am using BP 1.2 with WP 2.9.2.. I created a group. there are few members in it. But it seems that, any user, who are not even member of that group, can reply to the activity stream of that group. Is there any way to constrain replying for group activity stream only for group members?.

    The same issues for user updates. Some user who are not a friend of mine can reply to my updates?…

    Please help me if there any tweaks available to solve this..

    Thanks,

    Jitto P.Jose

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of abcde666
    abcde666
    Participant

    @erich73

    just change the Group-settings from “Public Group” to “Private Group”.

    Avatar of Mike Pratt
    Mike Pratt
    Participant

    @mikepratt

    Well, it’s an interesting point. Non-members cannot post replies to forums but they can reply to updates. To my mind, they should not be unless they are auto joined (as with forums) Thoughs?

    Avatar of Mike Pratt
    Mike Pratt
    Participant

    @mikepratt

    Of course, it might not be a bad thing…it allows people to give shout outs to the less formal things (updates) without having to join every group they want to just say something in. It would be good for a site like our alumni site…but might not work with others

    edit the theme file /activity/entry.php and under the activity-meta div – you’ll see the link for comments. you could add the following checks to that section:

    bp_get_activity_object_name() == 'groups'  //the component name
    groups_is_user_member( $bp->loggedin_user->id, bp_get_activity_item_id() ) //if a group then item_id references the group_id

    (i didn’t test this – just what i found)

    Avatar of Marco72
    Marco72
    Participant

    @marco72

    Nice trick. Do you think you can include it in child theme functions file via a hook? Kind of remove action - add action.

    sorry, here is the code that works:

    (bp_get_activity_object_name() == 'groups' && groups_is_user_member( bp_loggedin_user_id(), bp_get_activity_item_id() ) )

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.