Skip to:
Content
Pages
Categories
Search
Top
Bottom

defult submenu on profile page


  • louie5055
    Member

    @louie5055

    hi,
    once creacted a new submenu in profile how do you make it defult?
    you can position it to be the 1st but it will still go to the activity submenu so its not position..

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)

  • ping
    Member

    @liping

    Are you using `bp_core_new_nav_item` ?
    If you set the position to any value less than 10, it should work since Activity’s position is 10.

    `
    bp_core_new_nav_item( array(
    ‘name’ => ‘Your Item’,
    ‘slug’ => ‘yourslug’,
    ‘position’ => 9, // Activity is 10, so any value lower than 10 should work
    ‘screen_function’ => ‘your_screen_function’,
    ‘default_subnav_slug’ => ‘your_default_subnav_slug’,
    ) );
    `


    louie5055
    Member

    @louie5055

    @liping this is what i have!
    when you press on the user link you go to his profile /members/userName
    and the screen you see in the sub nav is activity
    what i want to know is what setting the defult screen on the profile single page
    setting your sub nav to be first not working

    i know it’s somthing with the $bp global defult component just didnt know how to do it.
    well here is the solution:

    http://www.thinkinginwordpress.com/2010/06/changing-default-component-for-landing-page-of-user-profile-in-buddypress/
    `define(“BP_DEFAULT_COMPONENT”,”profile”);`

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘defult submenu on profile page’ is closed to new replies.
Skip to toolbar