Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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’ ) );
    }

    ?>

    I have changed my query post to:

    query_posts(‘author_name=’ . bp_displayed_user_username());

    With better luck, the dynamic username shows up on the page but all users posts are still displayed. Don’t know why the name would print on the page above the post? Has anyone ever run into this problem?

    I need each users profile page to display their blog posts only. For some reason cannot make this happen. Thanks again for the help.

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