[buddypress-trac] [BuddyPress Trac] #6094: Support custom group statuses

buddypress-trac noreply at wordpress.org
Thu Jan 8 15:12:37 UTC 2015


#6094: Support custom group statuses
-------------------------------+------------------------------
 Reporter:  Offereins          |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Groups             |     Version:  2.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by dcavins):

 I've also wondered if there was a clever way of building a
 filterable/extendable list of group statuses and their traits that could
 be referred to at action points. This would allow site admins to override
 some core group traits as well as add new group types--say if you wanted
 to make private groups invitation-only on your site. A very small example
 might be building something that looks like this:

 {{{
 group-types {
     public: [
         invites-allowed: true,
         request-membership: false,
         default-extension-access: 'anyone',
         default-extension-tab-visibility: 'anyone'
     ],
     private: [
         invites-allowed: true,
         request-membership: true, // this could be filtered to change the
 behavior
         default-extension-access: 'members',
         default-extension-tab-visibility: 'members'
     ],
     hidden: [
         invites-allowed: true,
         request-membership: false,
         default-extension-access: 'members',
         default-extension-tab-visibility: 'members'
     ]
 }
 }}}

 Then there'd be some sort of helper that would be used to perform the
 various checks.
 `groups_get_group_trait( bp_get_group_status( $group ),  'request-
 membership'  )`

 I think that @offereins and I are thinking along the same lines.

 Also note that @imath wrestled with this complexity to create a
 restricted-membership public group:
 [https://github.com/imath/altctrl-public-group]

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6094#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list