This topic has 2 replies, 2 voices, and was last updated 9 years by Laura.

  • Author
  • #114580
     TXTFox
    Participant

    Is there anyway to hide the friends list and friendship activity so people cannot see who the other person is friends with – like private friends? Seems like it would be a better option for a dating site.

     

    [Note we fixed this with code added to buddypress-custom.php The only thing now is we cannot stop new friendships from showing up on the activity stream… Any idea how we can do this.

    #114581
     TXTFox
    Participant

    this is what I added to bp-custom.php to hide friends… cant figure out how to hide it from activity streams as people dont need to see who becomes friends with whoever if its a dating site

    ===============================
    /**
    * Hide User Friends from Other Users
    * Only Admin or the user himself can see friends
    */
    add_action(‘bp_friends_setup_nav’,’bpdev_custom_hide_friends_if_not_self’);
    function bpdev_custom_hide_friends_if_not_self(){
    if( bp_is_my_profile() || is_super_admin() )
    return ;
    bp_core_remove_nav_item( ‘friends’ );
    }

    #114937
     Laura
    Moderator

    Hello, try the following https://archived.seventhqueen.com/forums/topic/hide-certain-events-from-activity-stream/#post-107235 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?