Skip to:
Content
Pages
Categories
Search
Top
Bottom

redirecting to main page

  • Avatar of Horoshiy
    Horoshiy
    Participant

    @horoshiy

    Good day.

    I’m creating new template for registered users who want to post their “Projects”. It’s like an object with standard fields, but for a single user there can be several Projects.
    So I created file “…/buddypress/bp-themes/bp-default/members/single/projects.php” with my content.
    Then I edited file “buddypress/bp-themes/bp-default/members/single/home.php”:

    and I thought it’s enough, but when I clicking to the Projects link in my header I’m redirecting to main page.

    Any thoughts to fix this?


    Horoshiy

Viewing 1 replies (of 1 total)
  • Avatar of sicksight
    sicksight
    Participant

    @sicksight

    you need to register a ‘slug’ for your new profile component…

    maybe the codex could help you… and check this: http://codex.buddypress.org/how-to-guides/creating-a-custom-buddypress-component/

    something like this:

    bp_core_new_nav_item(
    array(
    'name' => __('Test', 'buddypress'),
    'slug' => 'test',
    'position' => 1,
    'show_for_displayed_user' => true,
    'screen_function' => 'test_screen_inbox',
    'default_subnav_slug' => 'test',
    'item_css_id' => $bp->test->id
    ));

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.