[buddypress-trac] [BuddyPress Trac] #3961: Hierarchical groups

buddypress-trac noreply at wordpress.org
Thu Jul 21 19:05:29 UTC 2016

#3961: Hierarchical groups
 Reporter:  sooskriszta               |       Owner:  dcavins
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  2.7
Component:  Groups                    |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  dev-feedback 2nd-opinion  |

Comment (by dcavins):

 I'm attaching a first patch for adding hierarchical groups in BuddyPress.
 This includes the following changes:
 * New parent_id column to the groups table in the database.
 * Setting for enabling hierarchical groups.
 * Per-group setting for parent group.
 * Per-group setting for what kind of member can create subgroups of the
 * Functions for finding the parent ID, ancestor group IDs and descendent
 * A `bp_user_can()` filter for whether a user can create subgroups of a
 particular group.
 * New screen to show subgroups of a group at `/group-name/hierarchy`.
 * Breadcrumb template function, `bp_group_permalink_breadcrumbs()`.
 * Tests.

 What this patch does not do:
 * Change the group directory to somehow display hierarchical
 * Change the url for a group to be `/groups/parent-group/this-group/`
 * Any kind of membership propagation.

 Other notes:
 * `bp_groups_get_child_groups()`, `bp_groups_get_child_group_ids()`, and
 `bp_groups_has_children()` would all be unnecessary if the group
 visibility pieces from #6677 were added to BP. Then, you could just use
 `groups_get_groups()` or `bp_has_groups()` with dynamic group visibility,
 now that `parent_id` support is added in `BP_Groups_Template`.

 Please test and give feedback. I'll also attach screenshots of some of the
 controls below.

 Thanks in advance for your thoughts and criticism.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3961#comment:21>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list