Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • @iamdhunt

    Participant

    I figured this out. I couldn’t find a function to use so I just went into bp-activity-loader.php and changed the ‘default_subnav_slug’ => ‘just-me’, to ‘default_subnav_slug’ => ‘my-stream’,

    I’ll have to make this change every time I update but it’ll have to do for now.

    @iamdhunt

    Participant

    Well I’m using a custom activity stream provided by Buddydev that pulls all of a users relevant activity into one convenient feed, similar to Facebook. The problem I’m having is that when a user goes to their profile they have to click on the “My Stream” tab again for their checkin option to show up properly in their post form. Not a huge problem but kind of annoying.

    Now that I think about it more if there was a way I could change the slug of the Personal subnav to something like “/activity/personal” then change the My Stream subnav slug to just “/activity/” I’m sure that’d solve it. Any way of doing this?

    @iamdhunt

    Participant

    Wow I made things a lot harder than they should’ve been lol. All I had to do was replace ”!is_super_admin()” with ”!is_user_logged_in()”. Thanks for pointing me in the right direction.

    @iamdhunt

    Participant

    Ok sorry but I’m not the best programmer. Using their menu as an example, do you mean something like this:

    ”function add_sumtips_admin_bar_link() {
    global $wp_admin_bar;
    if ( !is_super_admin() || !is_admin_bar_showing() )
    return;
    if ( is_user_logged_in() )
    $wp_admin_bar->add_menu( array(
    ‘id’ => ‘sumtips_link’,
    ‘title’ => __( ‘SumTips Menu’),
    ‘href’ => __(‘http://sumtips.com’),
    ) );
    else
    false;
    endif
    }
    add_action(‘admin_bar_menu’, ‘add_sumtips_admin_bar_link’,25);”

    @iamdhunt

    Participant

    Thanks I got the redirect logout to work by using the function from here: http://projectivemotion.com/2011/07/27/wordpress-always-redirect-to-homepage-after-logout/

    Still looking to change the link on the toolbar’s My Account from “Edit Profile” to “Activity”

    @iamdhunt

    Participant

    Thanks but I already understand how to add items to the menu, I’ve already done that. What code do I need to add to hide those menu items from non-logged in users?

    @iamdhunt

    Participant

    Awesome! That did the trick thank you very much.

    @iamdhunt

    Participant

    Hm, well I switched to the default theme but I still got the same error. It might be a problem with one of my plugins but I’m not sure. I think I’ll just hold off on upgrading for now hopefully they’ll become compatible.

    @iamdhunt

    Participant

    Oh and commenting was working just fine before I updated Buddypress.

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