This topic has 3 replies, 2 voices, and was last updated 11 years by SQadmin.

  • Author
  • #2625
     Santos Ramos
    Participant

    Is there way to only allowed the admin to create groups?

    I found hot to remove the button but I not sure the the start and end of the code is.

    FIle is located in sweetdate/groups/index.php line 20.

    <h2 style=”display: inline;”><?php _e( ‘Groups Directory’, ‘buddypress’ ); ?><?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?><?php endif; ?></h2>  “><?php _e( ‘Create a Group’, ‘buddypress’ ); ?>
    <div style=”margin-bottom: 10px;” class=”clearfix”></div><br><br>
    <?php do_action( ‘bp_before_directory_groups_content’ ); ?>

    Thanks for the help.

    #2640
     SQadmin
    Keymaster

    Hi,
    That should be set from Settings -> Buddypress -> Settings -> Enable group creation for all users

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #2651
     Santos Ramos
    Participant

    Thanks!

    What I need is to allow only the admin to create groups.

    If I desabe groups creations on Settings -> Buddypress -> Settings -> Enable group then the groups creation does not
    work for admin and users.

    Thanks for the quick reply.

    #2690
     SQadmin
    Keymaster

    Hi,
    You said that you want to disallow users from creating groups. That setting does exactly that and allows only admins to create. create groups from WP Admin -> Groups

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?