Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • boristheteacher
    Participant

    @boristheteacher

    wow, it’s incredible.
    Works perfectly. Thank you so much 🙂


    boristheteacher
    Participant

    @boristheteacher

    My dev friend said to say this:
    “When you set bp_core_new_nav_default to friends tab, you are no longer able to access personal tab since it also keep using the default url slug.”

    And this code:

    function add_settings_subnav_tab() {
    
    if ( bp_is_my_profile() ) {
    
    buddypress()->members->nav->edit_nav(array(
    'position' => 9,
    ), 'friends', 'activity');
    
    global $bp;
    bp_core_new_nav_default(array( 'parent_slug' => $bp->activity->slug, 'screen_function' => 'bp_activity_screen_friends', 'subnav_slug' => $bp->friends->slug));
    
    } else {
    
    buddypress()->members->nav->edit_nav(array(
    'position' => 10,
    ), 'friends', 'activity');
    }
    }
    
    add_action( 'bp_setup_nav', 'add_settings_subnav_tab', 100 );

    boristheteacher
    Participant

    @boristheteacher

    Great, thanks.
    But now, the personal tab redirects to friends. It means that there is no way to access the personal tab. As such, there is no “status update” box anymore.
    Thanks again for your time!


    boristheteacher
    Participant

    @boristheteacher

    Hi Venutius,
    Thank you so much for your reply.
    I just added it the the bp-custom file but unfortunately, it didn’t seem to work.
    My profile page returned nothing (just header and footer of the page)

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar