BuddyPress Restrict Group Creation plugin
Download from Wordpress Plugin Repo: BuddyPress Restrict Group Creation
This plugin will restrict group creation and settings to certain WP Capabilities, and thresholds (friends, days registered, status updates, post counts) In addition, this plugin will auto-demote the group creator to group mod to ensure group settings may not be modified after creation. You may also define a group admin and mod that will be auto-assigned all new groups created.
Auto-assigning an admin and/or mod to new groups
In your wp-config.php file – set the following constants and check ‘Auto demote group creator to group mod‘ under the settings page.
define( 'BP_RESTRICTGROUP_AUTOADD_ADMIN_USER_ID', the_database_user_id );
and/or (admin inherits mod – no reason to define the same user_id twice)
define( 'BP_RESTRICTGROUP_AUTOADD_MOD_USER_ID', the_database_user_id );
Where the_database_user_id is the actual integer ID from the wp_users table.
Threshold Limits
You may also enable threshold limits for certain categories:
Days registered
Number of Friends
Number of Status updates
Number of Post counts
Helpful you want to allow more experience members of your community create groups at will.
CSS to remove Create Group button
You may now enter in custom css if you do not use the default theme – this will remove the create group button displayed (even though if a user clicks on it – group creation is closed – but better for UI experience)
Screenshots:


March 8th, 2010 at 12:26 pm
[...] you have no need for the BuddyPress Restrict Group Creation plugin here is the function I used to demote the creator and automatically assign an admin and/or mod to [...]
March 10th, 2010 at 2:37 pm
Thanks for the great plugin. I have some few things.
How to I enable create group only by ADmin and editor?
Thank you
March 11th, 2010 at 4:01 pm
have a look on this chart:
http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table
moderate_comments
March 12th, 2010 at 7:43 am
Hey rich! just found your site through the bp forums. Love it and especially this one.
How about a deeper integration of tadlocks members plugin with bp? Wouldn’t that make sense? I’ve seen gravity forms make good use of it. Something like that would be seriously great.
March 20th, 2010 at 8:42 pm
Hey Rich,
What entries need to be put into the settings boxes in the dashboard to enable only mods to make groups? I want the create groups button hidden from everyone else. Is it possible to have a widget to restrict topic creation in forums too?
March 21st, 2010 at 8:05 am
nothing for a “mod” everything hooks onto the wp_caps defined in the link i posted above.
March 21st, 2010 at 2:21 pm
Thanks for getting back to me Rich.
Sorry I’m very new to WP and BP and have a little trouble deciphering the chart linked above.
So say I as the admin want to be the only one to be able to create groups. Do I need to change the default settings that your plugin comes with?
March 21st, 2010 at 5:49 pm
for admin – you would want manage_options – think i set the defaults to author (upload_files)
March 21st, 2010 at 7:35 pm
Cheers Rich, works a treat!
March 30th, 2010 at 6:05 am
Hi Rich,
Is the admin settings page for this plugin under the buddypress tab? Call me stupid but I can’t see where the admin page is.
Thanks
March 30th, 2010 at 6:48 am
seems when i had to use the loader file (for safe buddypress disable) i somehow fudged the menu item. i’ll make a fix and updated the plugin today.
March 31st, 2010 at 4:39 am
Hey Rich,
I am trying to find a way to limit specific forums/groups to additional roles that I create on the wordpress side (i.e. Free-member, Silver Member, Gold-member) Can I achieve this with your plugin…..with some custom coding can it be done with BBpress?
March 31st, 2010 at 6:44 am
This plugin won’t suit your needs as it only restricts new group creation to a certain wp_cap/rol.
a little bit of code is all it would take though, what you need to look at is `current_user_can`
April 4th, 2010 at 8:20 pm
[...] BuddyPress Restrict Group Creation [...]
May 24th, 2010 at 11:07 pm
Hello.
I have my own child theme and the button still shows up. I read that you can modify the CSS and I added the CSS on the admin section to my style.css file but the button is now hidden for admin users.
Any ideas how to fix this?
Thank you,
Giovanni
May 25th, 2010 at 6:49 am
Ah, since you added it to your style.css – everyone won’t see the button. Within the Restrict Group plugin’s admin page – there is a textarea to place the css. Then the plugin will insert this snippet of style code when needed.