Skip to:
Content
Pages
Categories
Search
Top
Bottom

Using BP_DEFAULT_COMPONENT to select a plugin tab

  • @nowton

    Participant

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

    Participant

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

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

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

    @nowton

    Participant

    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?

    @macpresss

    Participant

    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.

    @hnla

    Participant

    @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 https://codex.buddypress.org/developer/filters-reference/ which is designed to list filters and defines in one place due to the large number of these.

    @nowton

    Participant

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

    @colabsadmin

    Participant

    Anyone figure this out yet?

    @h2waldmann

    Participant

    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)
  • The topic ‘Using BP_DEFAULT_COMPONENT to select a plugin tab’ is closed to new replies.
Skip to toolbar