Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity View template overriding behavior (based on privacy)


  • thebigonee
    Participant

    @thebigonee

    Hi BP community,

    In my community website, When users post something, I would like users to have only one privacy possibility : post in groups.

    My website is based only on groups, and the activity post can only be in the groups.

    Then, I would like to change the behavior of the form pop-up used to post an activity in the activity feed to behave as showed on the screen attached below.

    To achieve that, I started to search some answers in the file “bp-templates/bp-nouveau/js/buddypress-activity-post-form.js”, but there is a lot of information and I don’t know if I’m in the right way.

    Can someone help me to achieve that ?

    Thanks in advance 🙂
    Link of the image : https://ibb.co/4SsrPcM

    BPwantedBehavior

Viewing 1 replies (of 1 total)

  • VibeThemes
    Participant

    @vibethemes

    So you can do that
    use filter “bp_after_activity_add_parse_args” and pass on the component and the item_id

    add_filter('bp_after_activity_add_parse_args',function($args){
    //Your code 
    // $args['component']='groups'; $args['item_id']=12; //group id 
    return $args;
    });
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar