This topic has 3 replies, 2 voices, and was last updated 11 years by mpitka.

  • Author
  • #7015
     mpitka
    Participant

    Hi!

    I have one big problem. This is very essential issue.

    When an user goes to another persons profile, the system will show his friends. This has to be removed, because it will cause privacy issues for users.

    How can I remove this information?

    Thanks!

    #7018
     mpitka
    Participant

    Oh, Forgot to mention that I have tried this (functions.php @childtheme)

    function my_remove_friends_nav() {
    global $bp;
    if (!bp_is_my_profile()) {
    bp_core_remove_nav_item( ‘friends’ );
    }
    }
    add_action( ‘bp_setup_nav’, ‘my_remove_friends_nav’ );

    I have translated the site to finnish language. “Friends” is “Kaverit”… Can this cause issues?

    #7059
     SQadmin
    Keymaster

    If you have the child theme active that code should do the trick.
    Try with kaverit also

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #7106
     mpitka
    Participant

    This worked!

    function my_remove_friends_nav() {
    global $bp;
    if (!bp_is_my_profile()) {
    bp_core_remove_nav_item( ‘friends’ );
    }
    }
    add_action( ‘bp_setup_nav’, ‘my_remove_friends_nav’ );

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?