Skip to:
Content
Pages
Categories
Search
Top
Bottom

Default groups view


  • bogski
    Participant

    @bogski

    Hi,

    I have tried using define('BP_GROUPS_DEFAULT_EXTENSION'); to change the default view on my groups page.

    I’ve added that code into a bp-custom.php file, but when I click on ‘Groups’ and try to go to a particular group i get a 404 error.

    I have commented that code out, and it works fine. What i dont understand is why it cant find the page, as the link itself doesnt change. It displays the same link regardless. Example

    with the code missing the link is : https://domain.com/groups/a-group/

    If i add that code in, the link is still https://domain.com/groups/a-group/

    but it gives me a 404 error. im not sure why.

    Im also using the define('BP_DEFAULT_COMPONENT'); to diplay the forums on the profile page by default seperate issue

    Am i missing something?

    Many thanks,

    Phil

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

  • Peter Hardy-vanDoorn
    Participant

    @petervandoorn

    You don’t say how you’re using them.

    My usage is:

    define ( 'BP_DEFAULT_COMPONENT', 'profile' );
    define ( 'BP_GROUPS_DEFAULT_EXTENSION', 'forum' );

    to change the default view in the user’s profile to ‘profile’ and the group to ‘forum’.


    bogski
    Participant

    @bogski

    Hi sorry about that.

    Im using them as you have them set out in your example there.

    BP_DEFAULT_COMPONENT works when set to ‘forums’

    Its the BP_GROUPS_DEFAULT_EXTENSION that doesnt seem to work. And that is also set as ‘Forums’

    hope that helps

    Phil


    Peter Hardy-vanDoorn
    Participant

    @petervandoorn

    On my install, ‘forums’ is singular – ie, ‘forum’.


    bogski
    Participant

    @bogski

    Hi,

    In my install the link is ‘forums’.

    https://love.golf/forums

    Id be inclined to believe id made a spelling mistake, but its spelt the same in both functions and one is working, the other is not.

    my bp-custom.php file

    define('BP_GROUPS_DEFAULT_EXTENSION' ,'forums');
    
    define('BP_DEFAULT_COMPONENT' , 'forums');
    

    the first one is commented out currently, but if I uncomment it I get a 404. If I comment it out again and refresh the page, it will work.

    Its when i try to go to the group forums i get the problem. As stated the default profile view works fine.

    As a point, I have tried changing ‘forums’ to ‘forum’ and this had no effect.

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