Skip to:
Content
Pages
Categories
Search
Top
Bottom

issue with bp_core_add_nav_default

  • @djpaul

    Keymaster

    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)
  • @djpaul

    Keymaster

    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)
  • The topic ‘issue with bp_core_add_nav_default’ is closed to new replies.
Skip to toolbar