Skip to:
Content
Pages
Categories
Search
Top
Bottom

Make Group Home the Forum


  • Andrew Tibbetts
    Participant

    @andrewgtibbetts

    When Activity Streams are disabled, Members becomes the default landing page within a group.
    How can I make the Forum the ‘Home’ page and bring back the Members nav item?

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

  • Andrew Tibbetts
    Participant

    @andrewgtibbetts

    To be clear, and provide further details to demonstrate that this hasn’t been answered previously, I’m looking to have 2 nav items in every group: Forum, Members.
    In that order, with the default page being Forum.
    I have achieved the default page being Forum with this:

    add_filter( 'bp_groups_default_extension', 'custom_bp_groups_default_extension' );
    function custom_bp_groups_default_extension() { return 'forum'; }

    But, again, when Activity Stream is disabled, Members becomes Home.
    So right now my nav is: Home, Forum
    I need a way to tell Home to revert to Members and go below Forum in the nav.


    shanebp
    Moderator

    @shanebp

    You could try creating a template overload of
    buddypress\bp-templates\bp-legacy\buddypress\groups\single\home.php

    And replace <?php bp_get_options_nav(); ?> with whatever you want.
    Before you do, grab the current nav output and then tweak it as you wish.


    Andrew Tibbetts
    Participant

    @andrewgtibbetts

    Couple things to consider / need direction on:
    – the URL is still /home. Looking to have /members
    – the “Manage” section for admins—what is the proper way to handle visibility in the nav?


    Andrew Tibbetts
    Participant

    @andrewgtibbetts

    Found the solution!
    So, in /buddypress/bp-groups/bp-groups-loader.php if found that it’s checking for a “front” template along with Activity Streams being disabled.
    So, I just created an empty front.php file in my overloads /buddypress/groups/single/ folder and, boom!


    Andrew Tibbetts
    Participant

    @andrewgtibbetts

    FYI – this approach still shows the ‘Home’ nav item to logged out users, but it can effectively be hidden via CSS.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar