Skip to:
Content
Pages
Categories
Search
Top
Bottom

issue with bp_core_add_nav_default

  • Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    I doubt I’ll get an answer before I get home and figure it out, but: ;)

    bp_core_add_nav_default()

    as in

    bp_core_add_nav_default( $bp->achievements->slug, 'dpa_screen', apply_filters( 'dpa_screen_summary_slug', 'summary' ) ); //TODO slugbug

    adds the default page to display when you visit a URL like http://dangerous-minds.org/members/djpaul/achievements/.

    Problem is, that line above also ‘enables’ http://dangerous-minds.org/achievements/. Achievements is my slug. I don’t want this and can’t figure out why it is doing this.

    Anyone got any ideas?

Viewing 1 replies (of 1 total)
  • Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Ah hah. Here’s how. Check for these vars, and they’ll pick up your slug if it’s not in /members/.

    ($bp->current_component == slug && $is_member_page)

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.