Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • in reply to: Theme CSS Required for Plugin Navi Tab #71990
     Camyen
    Participant

    I did some research on #reordering the BP profile nav bar and #renaming ‘Activity’ to ‘Wall’

    All suggestions seemly are pointed out the code below which should be added to my theme’s function.php. It didn’t make any change on my site. Any idea?

    COPY CODE
    function bbg_change_profile_tab_order() {
    

    global $bp;

    COPY CODE
    $bp->bp_nav[‘profile’][‘position’] = 10;
    

    $bp->bp_nav[‘activity’][‘position’] = 20;

    COPY CODE
    $bp->bp_nav[‘friends’][‘position’] = 30;
    

    $bp->bp_nav[‘groups’][‘position’] = 40;

    COPY CODE
    $bp->bp_nav[‘blogs’][‘position’] = 50;
    

    $bp->bp_nav[‘messages’][‘position’] = 60;

    COPY CODE
    $bp->bp_nav[‘settings’][‘position’] = 70;
    

    }
    `add_action( ‘bp_setup_nav’, ‘bbg_change_profile_tab_order’, 999 );

    in reply to: Make a private BP site #70168
     Camyen
    Participant

    I found it out.

    This post claim that no matter much codes in there, the template should looks like this:

    COPY CODE
    <?php /* Template Name: Custom Lockdown */ ?> <?php get_header(); ?> /* A lot of code in here */ <?php get_sidebar(); ?> <?php get_footer(); ?>
    
    And, in the case, I should add some codes. The template will looks like this:
    

    <?php /* Template Name: Custom Lockdown */ ?> <?php get_header(); ?> /* A lot of code in here */ <?php if (is_user_logged_in()) :?> <?php get_sidebar(); ?> <?php get_footer(); ?> <?php endif; ?>

    There’re two problems here. 1. <?php get_sidebar(); ?>, is not available. 2.<?php endif; ?>, is located upper than <?php get_footer(); ?>

    Any ideas?

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

Log in with your credentials

Forgot your details?