Look into the Groups loop and adjust the parameters to output a list of group forums:
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-groups-loop/
These are the parameters you should be looking at: “most-forum-topics” and “most-forum-posts”.
Copy /bp-themes/forums/index.php in a child theme and add a new groups loop.
This won’t make it look exactly like the forums here on bp.org, but will come close.
I think @kriskl is asking for something like what I was asking about here, but didn’t get any responses to: https://buddypress.org/forums/topic/changing-group-tab-display-defaults
I’ll take a look at the Groups loop, @r-a-y, though I’m not sure I’ll be able to figure out what to do. Thanks.
Thank you for quick reply
I will try that,
Is there any way to “filter’ and show, for example 10 Forums only and not complete lists?
I understand buddypress forums does not support “sub-forums” (??)
kind regards
Kris
Ok, I was wrong above. @kriskl is talking about the Forums index page, while my other post — https://buddypress.org/forums/topic/changing-group-tab-display-defaults — is about changing the default tab view within the Groups pages.
But this is an interesting problem also. I looked at your pointers above, @r-a-y , but I couldn’t figure it out. The Standard Loop page you linked to shows the code for
bp_has_groups()
but then below that it has the “accepted parameters” for
bp_has_site_groups()
a function which I couldn’t find anywhere in BP. Likewise the “most-forum-topics” & “most-forum-posts” arguments for the “type” parameter of that function.
Here’s what I think it would be cool do do, but I’m not sure how to do it:
Currently, logged-in users see two navigation tabs for displaying forum Topics on the “Group Forums Directory” page accessed by clicking “Forums” in the general navigation (default display tab in bold):
[All Topics (25] [My Topics (12)]
How to implement the addition of a new default tab that lists all of the Group Forums, with the same filtering options? then the Forums page sub-nav tabs would look like this:
[All Forums (11)] [All Topics (25] [My Topics (12)]
I made a little progress on a forums index listing
then the Forums page sub-nav tabs would look like this:
the only action that will add something to the forums directory component subnav is <?php do_action( 'bp_forums_directory_group_types' ) ?>
which forces use of the ajax bp_has_forum_topics( bp_ajax_querystring( 'forums' ) )
so i decided to hook on <?php do_action( 'bp_directory_forums_content' ) ?>
or do_action( 'bp_after_directory_forums_list' )
both below the topic listings. the first action will display the forum index on all subnav ajax tabs (all topics, my topics, and tabs) the later will only display on the forums directory page until a subnav tab is clicked.
http://files.etiviti.com/misc/buddypress/bp-forum-extras-forum-index.gif
Link to attachment is broken.
Looking forward to your progress, Rich!
fixed (wp acting up on media stuff)
Ahh I see what you’re doing there!
I requested a new action before the topics loop so something like a group listings loop can go right there:
https://trac.buddypress.org/ticket/2139