[buddypress-trac] [BuddyPress] #4071: Changes to allow for completely seperate group types

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Mar 10 17:16:27 UTC 2012


#4071: Changes to allow for completely seperate group types
---------------------------+------------------------------
 Reporter:  travel-junkie  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Groups         |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------------------

Comment (by travel-junkie):

 There's nothing fancy, really. I just filter a bunch of links by checking
 against group meta, remove all group types but the normal user groups from
 the groups directory (and then create their own directories) and then
 reset the current component to groups with something like this function:

 {{{
 function setup_single_spheres()
 {
         global $bp;

         if( bp_is_current_component( 'spheres' ) && bp_current_action() )
 :
                 $bp->current_component = 'groups';
         endif;
 }
 add_action( 'bp_setup_globals', 'setup_single_spheres', 0 );
 }}}

 Not sure how much of the code I'm allowed to share as it's a commercial
 contract. I'll get in contact with my clients. It's all pretty
 straightforward, though.

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


More information about the buddypress-trac mailing list