Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/16/2011 08:08:45 PM (13 years ago)
Author:
boonebgorges
Message:

Adds toggle for who can send group invitations, in order to make the option more consistent and configurable throughout BP. Fixes #2005. Props DJPaul for help cleaning up the patches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/groups/single/admin.php

    r4498 r4524  
    5858    <div class="radio">
    5959        <label>
    60             <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting('public') ?> />
     60            <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting( 'public' ) ?> />
    6161            <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong>
    6262            <ul>
     
    6868
    6969        <label>
    70             <input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting('private') ?> />
     70            <input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting( 'private' ) ?> />
    7171            <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong>
    7272            <ul>
     
    7878
    7979        <label>
    80             <input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting('hidden') ?> />
     80            <input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting( 'hidden' ) ?> />
    8181            <strong><?php _e( 'This is a hidden group', 'buddypress' ) ?></strong>
    8282            <ul>
     
    8787        </label>
    8888    </div>
     89
     90    <hr />
     91     
     92    <h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4>
     93
     94    <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ) ?></p>
     95
     96    <div class="radio">
     97        <label>
     98            <input type="radio" name="group-invite-status" value="members"<?php bp_group_show_invite_status_setting( 'members' ) ?> />
     99            <strong><?php _e( 'All group members', 'buddypress' ) ?></strong>
     100        </label>
     101
     102        <label>
     103            <input type="radio" name="group-invite-status" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ) ?> />
     104            <strong><?php _e( 'Group admins and mods only', 'buddypress' ) ?></strong>
     105        </label>
     106       
     107        <label>
     108            <input type="radio" name="group-invite-status" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ) ?> />
     109            <strong><?php _e( 'Group admins only', 'buddypress' ) ?></strong>
     110        </label>
     111    </div>
     112
     113    <hr />
    89114
    90115    <?php do_action( 'bp_after_group_settings_admin' ); ?>
Note: See TracChangeset for help on using the changeset viewer.