BuddyDev

Search

Add category to corresponding group

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #22635

    Thank you for confirming.
    What I suggest is keep the category/groups association mutually exclusive to avoid this issue.

    For limiting the posting to group members only, Please open blog-categories-for-groups/core/bcg-actions.php and replace the function

    
    on_activity_publish
    

    and its code with the following code

    https://pastebin.com/HeTG6xsZ
    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 18
    logan on #22637

    Hi
    thanks brajesh for the code it is working ,post doesn’t show up in the group activity stream if the user is not the member of the group , also is there any safer way to disable the blog menu showing in the group

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #22640

    Hi,
    Thank you for confirming.

    For now, I will suggest using css to hide it from he view. Not the bets approach but will work for now.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 18
    logan on #22642

    Thanks i will do and thank you for your help btw i have removed the blog section by hiding or commenting the setup_nav function will it have any problem. as i can see this is the function which is adding nav on the buddypress group by using this buddypress api bp_core_new_subnav_item

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #22650

    This will work fine if you do not need the “Blogs” tab on the group page.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved