[buddypress-trac] [BuddyPress Trac] #6095: Define behavior for group status

buddypress-trac noreply at wordpress.org
Mon Jan 19 10:50:45 UTC 2015


#6095: Define behavior for group status
------------------------------------+------------------------------
 Reporter:  tandreatta              |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Groups                  |     Version:  2.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by tandreatta):

 With the last sbmitted patch, custom status management is almost complete:

 - custom status can be added with filter 'groups_valid_status'
 ($bp->groups->valid_status = array('public', 'private', 'hidden') );

 - status who can be used in creation can be added/removed with filter
 'groups_valid_creation_status' ( $bp->groups->valid_creation_status =
 array('public', 'private', 'hidden'); default creation status is the first
 defined status, but can be changed with filter
 'groups_default_creation_status';


 - filter 'groups_membership_request_allowed' defines the status who allow
 membership request ($bp->groups->membership_request_allowed_status =
 array('public', 'private') )

 - filter 'groups_membership_request_moderated' defines the status who
 triggers membership request moderation
 ($bp->groups->membership_request_moderated_status = array('private') )


 - filter 'groups_private_status' defines the status whose content is
 visibile only to members ( $bp->groups->private_status = array('private',
 'hidden')

 - filter 'groups_hidden_status' defines the status who is hidden in
 directory ( $bp->groups->hidden_status = array('hidden')


 Group's description is automated (with functions
 group_membership_request_description( $status ),
 group_listing_visibility_description( $status ), and
 group_content_visibility_description( $status )). Adding/removing/changing
 behavior of a status will change description in Privacy section.

 (Warning: since in my project I'm using a custom theme and users manage
 groups in the frontend only, backend and default theme are not yet heavily
 tested.)

 [Warning 2: since my mother language is not English, may be I choosed some
 wrong function/variable names and/or descriptions.]

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


More information about the buddypress-trac mailing list