Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/09/2011 09:07:25 PM (15 years ago)
Author:
boonebgorges
Message:

Adds admin switch to allow group creation to be restricted to Super Admins only. Fixes #1150. Props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-admin.php

    r4257 r4338  
    133133                                                                <input type="radio" name="bp-admin[bp-disable-blogforum-comments]"<?php if ( (int)get_site_option( 'bp-disable-blogforum-comments' ) || false === get_site_option( 'bp-disable-blogforum-comments' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-blogforum-comments" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> &nbsp;
    134134                                                                <input type="radio" name="bp-admin[bp-disable-blogforum-comments]"<?php if ( !(int)get_site_option( 'bp-disable-blogforum-comments' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-blogforum-comments" value="0" /> <?php _e( 'No', 'buddypress' ) ?>
     135                                                        </td>
     136                                                </tr>
     137
     138                                        <?php endif; ?>
     139
     140                                        <?php if ( bp_is_active( 'groups' ) ) : ?>
     141
     142                                                <tr>
     143                                                        <th scope="row"><?php _e( 'Restrict group creation to Site Admins?', 'buddypress' ) ?>:</th>
     144                                                        <td>
     145                                                                <input type="radio" name="bp-admin[bp_restrict_group_creation]"<?php checked( '1', get_site_option( 'bp_restrict_group_creation', '0' ) ); ?>id="bp-restrict-group-creation" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> &nbsp;
     146                                                                <input type="radio" name="bp-admin[bp_restrict_group_creation]"<?php checked( '0', get_site_option( 'bp_restrict_group_creation', '0' ) ); ?>id="bp-restrict-group-creation" value="0" /> <?php _e( 'No', 'buddypress' ) ?>
    135147                                                        </td>
    136148                                                </tr>
Note: See TracChangeset for help on using the changeset viewer.