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:

BuddyPress Restrict Group Plugin - Admin settings


16 Responses to “BuddyPress Restrict Group Creation plugin”

  • #BuddyPress Hack: Auto-assign mod or admin to new groups | the rich! ramblings Says:

    [...] 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 [...]

  • weblogian Says:

    Thanks for the great plugin. I have some few things.
    How to I enable create group only by ADmin and editor?

    Thank you

  • Simon Says:

    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.

  • Ross Says:

    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?

  • rich! Says:

    nothing for a “mod” everything hooks onto the wp_caps defined in the link i posted above.

  • Ross Says:

    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?

  • rich! Says:

    for admin – you would want manage_options – think i set the defaults to author (upload_files)

  • Ross Says:

    Cheers Rich, works a treat!

  • Connor Says:

    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

  • rich! Says:

    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.

  • CraigS Says:

    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?

  • rich! Says:

    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`

  • Giovanni Gonzalez Says:

    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

  • rich Says:

    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.

Leave a Reply

You must be logged in to post a comment.

You will need to register at etivite which includes access to this site for commenting.