Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cannot Log Out After uploading bp-custom.php

Viewing 1 replies (of 1 total)
  • @davec87

    Member

    The custom Functions I added area as follows: (When I delete the bp-custom.php everything works fine again)

    // Setups up Type=Full avatar pics for BP-post author
    function bp_custompost_author_avatar() {
    global $post;

    if ( function_exists(‘bp_core_fetch_avatar’) ) {
    echo apply_filters( ‘bp_post_author_avatar’, bp_core_fetch_avatar( array( ‘item_id’ => $post->post_author, ‘type’ => ‘full’, ‘width’ => ’70’, ‘height’ => ’70’ ) ) );
    } else if ( function_exists(‘get_avatar’) ) {
    get_avatar();
    }
    }

    // Changes order for member profile menu items
    function bbg_change_profile_tab_order() {
    global $bp;

    $bp->bp_nav = 20;
    $bp->bp_nav = 30;
    $bp->bp_nav = 40;
    $bp->bp_nav = 50;
    $bp->bp_nav = 60;
    $bp->bp_nav = 70;
    $bp->bp_nav = 80;

    $bp->bp_nav = false;
    $bp->bp_nav = false;

    }
    add_action( ‘bp_setup_nav’, ‘bbg_change_profile_tab_order’, 999 );*/

    // Setup the navigation
    // Props to http://wordpress.stackexchange.com/questions/16223/add-buddypress-profile-menu-item for helping me figure this out
    // and http://themekraft.com/customize-profile-and-group-menus-in-buddypress/
    function my_setup_nav() {
    global $bp;

    bp_core_new_nav_item( array(
    ‘name’ => __( ‘my adventure list’, ‘buddypress’ ),
    ‘slug’ => ‘my-adventure-list’,
    ‘position’ => 10,
    ‘screen_function’ => ‘my_adventure_list_link’,
    ‘show_for_displayed_user’ => true,
    ‘default_subnav_slug’ => ‘my-adventure-list’,
    ‘item_css_id’ => ‘my-adventure-list’
    ) );
    }

    add_action( ‘bp_setup_nav’, ‘my_setup_nav’, 1000 );

    function my_adventure_list_title() {
    echo ‘My Adventure List’;
    }

    function my_adventure_list_content() {
    ?>


    <?php
    }

    function my_adventure_list_link () {
    add_action( ‘bp_template_title’, ‘my_adventure_list_title’ );
    add_action( ‘bp_template_content’, ‘my_adventure_list_content’ );
    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/my-adventure-list’ ) );
    }

    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot Log Out After uploading bp-custom.php’ is closed to new replies.
Skip to toolbar