Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group Administration

  • Avatar of Wardeh
    Wardee
    Participant

    @wardeh

    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?

Viewing 25 replies - 1 through 25 (of 38 total)
  • What is the point with that?

    Avatar of Wardeh
    Wardee
    Participant

    @wardeh

    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?

    Avatar of Chris
    chriscarter
    Participant

    @chriscarter

    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.

    Avatar of Famous
    Famous
    Participant

    @famous

    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.

    Avatar of Wardeh
    Wardee
    Participant

    @wardeh

    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/

    Avatar of Wardeh
    Wardee
    Participant

    @wardeh

    Andy, that did not work for me.

    Avatar of Famous
    Famous
    Participant

    @famous

    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).

    Avatar of Wardeh
    Wardee
    Participant

    @wardeh

    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.

    Avatar of Smueller
    smueller
    Participant

    @smueller

    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.

    Avatar of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    Site admins have group admin rights to all groups.

    Avatar of Smueller
    smueller
    Participant

    @smueller

    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?

    Avatar of Enlightenmental1
    enlightenmental1
    Participant

    @enlightenmental1

    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;

    Avatar of Nicola Greco
    nicolagreco
    Participant

    @nicolagreco

    I’ll make a plugin,

    you’ve change the global $bp values :)

    Avatar of Enlightenmental1
    enlightenmental1
    Participant

    @enlightenmental1

    “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…

    Avatar of Nicola Greco
    nicolagreco
    Participant

    @nicolagreco

    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 :)

    Avatar of Marco72
    Marco72
    Participant

    @marco72

    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…

    Avatar of Nicola Greco
    nicolagreco
    Participant

    @nicolagreco

    With that code, only the admin can create groups (in the member interface i mean not in wp-admin)

    Avatar of Marco72
    Marco72
    Participant

    @marco72

    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.)?

    Avatar of Nicola Greco
    nicolagreco
    Participant

    @nicolagreco

    It’s really possible with a plugin :)

    Avatar of Marco72
    Marco72
    Participant

    @marco72

    I’ll hire you, better talk via mail and in italian I think ;-)

    I’write you what I need. A presto.

    Avatar of BingoNeighbour
    BingoNeighbour
    Participant

    @bingoneighbour

    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

    Avatar of BingoNeighbour
    BingoNeighbour
    Participant

    @bingoneighbour

    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 :)

    Avatar of Nicola Greco
    nicolagreco
    Participant

    @nicolagreco

    With the code i wrote you should make a plugin, so make a new plugin :)

    Avatar of Manoj Kumar
    talk2manoj
    Participant

    @talk2manoj

    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

Viewing 25 replies - 1 through 25 (of 38 total)

You must be logged in to reply to this topic.