Group Administration
-
I would like to see a feature where the site admin is the only one with the authority to create groups. All users can join, etc. But not create. Is this possible or in the works?
-
What is the point with that?
I am considering creating a social network, and I wish to pre-define the groups, which would therefore provide structure to the forum topics within groups. If the network members were allowed to create groups, I see potential overlap (in my particular community) in topics, discussions, etc. I wish to keep it simple to my own pre-defined groups or groups I choose to add in the future. Quoting from About Buddy Press:
“Groups also include a group forum (bbPress), wire, and photo gallery. These features can be selectively disabled by group creator.”
When I enable the group forum, I believe that limiting group creation will keep forums more organized and therefore, more easily navigated by members.
So that’s why.
If this isn’t possible, then I would ask, is it possible to use the forum without the groups? Or would that entail a separate installation of bbPress?
I’m with you, wardeh. As the site admin, I would also like sole authority to create groups. It’ll really help with the overlap and redundant user-created groups.
I’ll third that opinion.
And also, I have the same problem Wardeh–all my groups are gone!!! Can you let me know if there is a solution or if your website works now.
In trunk 544, my main installation still says “no groups to display” but the two added blogs show the groups. I think I found a ticket in trac for the groups not displaying, so I’d say Andy is working on it and aware of it.
Good to know others are interested in limiting group creation. Thanks for chiming in.
If you have lost all your groups, please make sure you have upgraded your database my logging in as a site admin and visiting /wp-admin/
Andy, that did not work for me.
Wardeh, make sure you upgrade to the latest 547 and purposely log out and log in again, it worked for me. In addition, clicking on the next page of groups now works also (did not use to work).
Thank you, but no, it didn’t work.
I am up to trunk 547. Logged out, logged in. Now, the groups page of the dashboard says nothing, not even “no groups to display.” I logged in with two different user accounts, and same thing. When I viewed Site Admin > Groups through two of the added blogs the groups show up then.
I’m aware that I might be doing something wrong, but I can’t figure out what it is. I’ve reinstalled a couple times and followed Andy’s instructions to the T.
Is this – site admins can only create Group and add Group admins to those groups – now possible in BP? I grabbed the latest download – not the trunk – and I don’t see this being possible. If it is, any help pointing me in the right direction would be greatly appreciated.
Site admins have group admin rights to all groups.
Thanks for the reply but I probably wasn’t very clear on my question. Specifically, can the ability to create groups by standard members be turned off where only the site admins could create groups and assign group admins?
here is what I used to limit the group creation to admins only
(can also be changed to allow other user levels if needed)
hope this helps
edit: bp-groups.php around line 205
global $user_ID; if( $user_ID ) :
if( current_user_can('level_10') ) {
bp_core_add_subnav_item( $bp->groups->slug, 'create', __('Create a Group', 'buddypress'), $groups_link, 'groups_screen_create_group', false, bp_is_home() );
}
endif;I’ll make a plugin,
you’ve change the global $bp values
“you’ve change the global $bp values “
Nicola:
I don’t understand what you mean…
are you saying I should NOT have done it in this way?
is there any reasons why I would not want to do it like this?
I know very little about PHP…
You don’t have to hack the core
the $bp global contains as values the item that have to be displayed,
if you make those values = false
look here:
$bp->bp_options_nav[$parent_id][$slug] = array(
'name' => $name,
'link' => $link . $slug,
'css_id' => $css_id
);that’s what bp_core_add_subnav_item does
you’ve to do that:
if ( !is_site_admin() )
$bp->bp_options_nav = false;
and make it as a function that has to be called back with the add_action function
Please Let me understand, doing like this I’ll get the ability to create groups via dashboard? As is in create user?
I want to create about 25/30 groups before the public release of my project, it would be awesome to create those via dashboard, and having also the possibility to assign to each group an avatar uploaded via Ftp. Is it possible to achieve this?
Notice that After the release, I want that the normal user can create as many groups as needed.
-#- sorry for the double post, i’m using a mobile…
With that code, only the admin can create groups (in the member interface i mean not in wp-admin)
Ok. But I’d like to have on the admin dashboard the ability to add groups as is possible in the “add new member” section. Is it possible or it’s necessary to hack the core ( I don’t want to do that cuz I’m a newbie.)?
It’s really possible with a plugin
I’ll hire you, better talk via mail and in italian I think
I’write you what I need. A presto.
Hi Nicola,
Thanks for the tip above.
Maybe I’m missing something here, but are we talking about bp-groups.php here?
I’ve searched for a number of strings including ‘bp_core_add_subnav_item’ in there, and I’ve not been able to find anything.
Any pointers would be appreciated.
Cheers,
bn
enlightenmental1, I just ended up using your fix. Does the job for now – I can see issues when upgrading bp but I’ll cross that hurdle when I get to it.
Thanks
With the code i wrote you should make a plugin, so make a new plugin
Hi Nicola,
I have tried method suggested by you but its not working…
$bp->bp_options_nav[\'groups\'][\'create\']=false;
Can you provide some help on this
- The topic ‘Group Administration’ is closed to new replies.