Skip to:
Content
Pages
Categories
Search
Top
Bottom

Using BP_DEFAULT_COMPONENT to select a plugin tab

  • Avatar of nowton
    nowton
    Participant

    @nowton

    We’re using rtMedia and would like to show the media tab as the default view for a profile. We use the BP_DEFAULT_COMPONENT setting in bp-custom.php for that. But when activating we get a 404 on the profile. Apparently the slug being referenced is not the right one, or rtmedia is not a Default Component. Anyone care to shed some light on this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of Shmoo
    Shmoo
    Participant

    @macpresss

    Hahaha.. I was looking for the same thing yesterday so I made a Codex-page for this question.

    http://codex.buddypress.org/buddypress-components-and-features/member/change-members-profile-landing-tab/

    You have to add that code to the config.php file.

    Avatar of nowton
    nowton
    Participant

    @nowton

    Yes, I found that. But if I set that to ‘media’ which apparently is the slug the page fails. Claims it cannot find the content. So rtmedia is not a component? How to define a custom component or refer to it by slug?

    Avatar of Shmoo
    Shmoo
    Participant

    @macpresss

    Yeah mostly it’s the slug or the name of the template ( file-name.php ) inside the plugins folder.

    members/single/plugins.php

    ” 3rd-party plugins should use this template to easily add template support to their plugins for the members component. ”

    Thats the template they use for adding a component to the profile page.

    Just try a few or ask the Plugin developer.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @macpresss Thanks for the Codex contribution, I have however moved it for the moment to the user submitted guides under getting started as the components section is really descriptions of the standard default BP settings.

    In reality we do have a page in progress here http://codex.buddypress.org/developer/filters-reference/ which is designed to list filters and defines in one place due to the large number of these.

    Avatar of nowton
    nowton
    Participant

    @nowton

    So there’s no possible solution? Great, I will try and explain to my client…

    Avatar of colabsadmin
    colabsadmin
    Participant

    @colabsadmin

    Anyone figure this out yet?

    Avatar of h2waldmann
    h2waldmann
    Participant

    @h2waldmann

    I have the same prob with the media tab.

    is there really no solution to cutomize the default_component target ???

    best regards
    tomas

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

You must be logged in to reply to this topic.