Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP_DEFAULT_COMPONENT usage


  • islandcastaway
    Participant

    @islandcastaway

    Hello,
    I am trying to get the default component that shows on a members profile to show the “blogs” or “site-tracker” page.

    I am using:
    define ( ‘BP_BLOGS_SLUG’, ‘sites’ );
    define( ‘BP_DEFAULT_COMPONENT’, ‘sites’ );

    Its not working.

    Thanx

Viewing 8 replies - 1 through 8 (of 8 total)
  • Which version of BuddyPress are you using?


    islandcastaway
    Participant

    @islandcastaway

    1.5


    islandcastaway
    Participant

    @islandcastaway

    So is this a known issue that should be submitted?

    I have tried:
    define( ‘BP_DEFAULT_COMPONENT’, ‘blogs’ );
    define( ‘BP_DEFAULT_COMPONENT’, ‘site-tracker’ );
    define( ‘BP_DEFAULT_COMPONENT’, ‘sites’ );


    r-a-y
    Keymaster

    @r-a-y

    BuddyPress 1.5 created pages for your directory pages.

    In the WP dashboard, navigate to “Pages”, and try and find a page that says “Sites” or “Blogs” or whatever your blog directory is called. Rename the page slug to ‘sites’.

    Then in your bp-custom.php file, use:
    `define( “BP_BLOGS_SLUG”, “sites” );
    define( “BP_DEFAULT_COMPONENT”, “sites” );`


    islandcastaway
    Participant

    @islandcastaway

    Hello,
    I used the manual config pages option and the slug is already “sites”.

    in the 1.5 codex it states to place:

    define ( ‘BP_BLOGS_SLUG’, ‘sites’ );
    define( ‘BP_DEFAULT_COMPONENT’, ‘sites’ );

    in wp-config.

    which is correct?


    r-a-y
    Keymaster

    @r-a-y

    Hi,

    You’re correct; you should add both defines in wp-config.php.

    Does that work?


    islandcastaway
    Participant

    @islandcastaway

    No, that is where i started.

    I added:
    define( ‘BP_DEFAULT_COMPONENT’, ‘sites’ );

    to bp-custom and now it does.

    so the page https://codex.buddypress.org/extending-buddypress/changing-internal-configuration-settings/ is incorrect.

    I currently have:

    define( ‘BP_MEMBERS_SLUG’, ‘clients’ );
    define ( ‘BP_BLOGS_SLUG’, ‘sites’ );
    define( ‘BP_DEFAULT_COMPONENT’, ‘sites’ );

    //define ( ‘BP_IGNORE_DEPRECATED’, true );
    //define ( ‘BP_ENABLE_MULTIBLOG’, true );

    //define( ‘BP_DTHEME_DISABLE_CUSTOM_HEADER’, true );
    define( ‘BP_SILENCE_THEME_NOTICE’, true );
    //define( ‘BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true );
    define ( ‘BP_DISABLE_ADMIN_BAR’, true );

    in wp-config. all seem to work accept the default profile page.


    r-a-y
    Keymaster

    @r-a-y

    Will update the codex article now.
    Thanks for debugging and posting your thoughts. I use bp-custom.php myself for any custom slug settings.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘BP_DEFAULT_COMPONENT usage’ is closed to new replies.
Skip to toolbar