Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change default landing page of Groups


  • arsalanrashid
    Participant

    @arsalanrashid

    Currently n the groups activity feed(wall) is the default landing tab for all users. I want to change t to the forum so everyone sees the discussion topics as soon as they land on groups. I have tried many different ways by adding code in the bp-custom.php but most of them are from 6-7 years old and probably not working anymore. They through errors on the top of screen and makes the group navigation un-usable. Does any have a custom code for this? Many Thanks

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

  • shanebp
    Moderator

    @shanebp

    This works, in wp-config.php or bp-custom.php,
    define( 'BP_GROUPS_DEFAULT_EXTENSION', 'forum' );


    arsalanrashid
    Participant

    @arsalanrashid

    I have added this in bp-custom.php but the code throws error on screen:

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-content/plugins/bp-custom.php:1) in /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-includes/functions.php on line 6029

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-content/plugins/bp-custom.php:1) in /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-admin/includes/misc.php on line 1252

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-content/plugins/bp-custom.php:1) in /homepages/22/d813624401/htdocs/clickandbuilds/ee/wp-admin/admin-header.php on line 9

    And when I have added it to wp-config. Now it shows members page as default but still not the forum (discussion) even the code says “forum”.

    Any help is highly appreciated. Thanks


    arsalanrashid
    Participant

    @arsalanrashid

    Sorry, I figure out the error was because of a space after the closing PHP tag. But with the error fixed the problem is same even in bp-custom.php file with this code the default tab changes to members, not the discussion. Any idea why? Thanks

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