Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change landing page for Groups to Member List

  • Avatar of katepaneros
    katepaneros
    Member

    @katepaneros

    Hi all

    I’d like the default landing page for each group to be the list of members, not the Home tab. I’d actually like to remove the Home tab if possible, for the public side of the site (i.e. member is not logged in). Hoping this is a simple fix!

    Also, when viewing a member page (while not logged in to the site), I’d like to only show the Profile tab, and have the Groups and Forums tabs hidden from the public (but logged in users can see these tabs).

    Are these both do-able?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    In your bp-custom.php file — http://codex.buddypress.org/extending-buddypress/bp-custom-php/ — add the following:

    define(‘BP_GROUPS_DEFAULT_EXTENSION’, ‘members’);

    Avatar of katepaneros
    katepaneros
    Member

    @katepaneros

    Thanks Paul – it didn’t work at first but after some more searching I found this, which worked:

    function bbg_change_group_extension( $e ) {
    return ‘members';
    }
    add_filter( ‘bp_groups_default_extension’, ‘bbg_change_group_extension’ );

    Now, can I get rid of the Home tab?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    `
    function my_bp_groups_hide_home_tab() {
    global $bp;
    $bp->bp_options_nav = false;
    }
    add_action(‘wp’, ’my_bp_groups_hide_home_tab’);
    `

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

You must be logged in to reply to this topic.