Skip to:
Content

BuddyPress.org

Changeset 1063


Ignore:
Timestamp:
02/11/2009 08:34:43 PM (15 years ago)
Author:
apeatling
Message:

Fixes #379

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1062 r1063  
    13041304 */
    13051305function bp_core_strip_username_spaces( $username ) {
    1306     return str_replace( ' ', '', $username );
     1306    return str_replace( ' ', '-', $username );
    13071307}
    13081308add_action( 'pre_user_login', 'bp_core_strip_username_spaces' );
  • trunk/bp-groups/bp-groups-templatetags.php

    r1052 r1063  
    860860                <?php endif; ?>
    861861           
    862                 <h3><?php _e('Privacy Options', 'buddypress'); ?></h3>
     862                <h3><?php _e( 'Privacy Options', 'buddypress' ); ?></h3>
    863863           
    864864                <div class="radio">
    865                     <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == $group_obj->status ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is an open group', 'buddypress') ?></strong><br /><?php _e('This group will be free to join and will appear in group search results.', 'buddypress'); ?></label>
    866                     <label><input type="radio" name="group-status" value="private"<?php if ( 'private' == $group_obj->status ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is an private group', 'buddypress') ?></strong><br /><?php _e('This group will require an invite to join but will still appear in group search results.', 'buddypress'); ?></label>
    867                     <label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == $group_obj->status ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is a hidden group', 'buddypress') ?></strong><br /><?php _e('This group will require an invite to join and will only be visible to invited members. It will not appear in search results or on member profiles.', 'buddypress'); ?></label>
     865                    <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == $group_obj->status ) { ?> checked="checked"<?php } ?> />
     866                        <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong>
     867                        <ul>
     868                            <li><?php _e( 'Any site member can join this group.', 'buddypress' ) ?></li>
     869                            <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ) ?></li>
     870                            <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ) ?></li>
     871                        </ul>
     872                    </label>
     873                   
     874                    <label><input type="radio" name="group-status" value="private"<?php if ( 'private' == $group_obj->status ) { ?> checked="checked"<?php } ?> />
     875                        <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong>
     876                        <ul>
     877                            <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ) ?></li>
     878                            <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ) ?></li>
     879                            <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ) ?></li>
     880                        </ul>
     881                    </label>
     882                   
     883                    <label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == $group_obj->status ) { ?> checked="checked"<?php } ?> />
     884                        <strong><?php _e('This is a hidden group', 'buddypress') ?></strong>
     885                        <ul>
     886                            <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ) ?></li>
     887                            <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ) ?></li>
     888                            <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ) ?></li>
     889                        </ul>
     890                    </label>
    868891                </div>
    869892
  • trunk/buddypress-theme/member-themes/buddypress-member/groups/admin/group-settings.php

    r1052 r1063  
    4545       
    4646            <div class="radio">
    47                 <label><input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting('public') ?> /> <strong><?php _e( 'This is an open group', 'buddypress' ) ?></strong><br /><?php _e( 'This group will be free to join and will appear in group search results.', 'buddypress' ); ?></label>
    48                 <label><input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting('private') ?> /> <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong><br /><?php _e( 'This group will require an invite to join but will still appear in group search results.', 'buddypress' ); ?></label>
    49                 <label><input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting('hidden') ?> /> <strong><?php _e( 'This is a hidden group', 'buddypress' ) ?></strong><br /><?php _e( 'This group will require an invite to join and will only be visible to invited members. It will not appear in search results or on member profiles.', 'buddypress' ); ?></label>
     47                <label>
     48                    <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting('public') ?> />
     49                    <strong><?php _e( 'This is an open group', 'buddypress' ) ?></strong>
     50                    <ul>
     51                        <li><?php _e( 'Any site member can join this group.', 'buddypress' ) ?></li>
     52                        <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ) ?></li>
     53                        <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ) ?></li>
     54                    </ul>
     55                </label>
     56               
     57                <label>
     58                    <input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting('private') ?> />
     59                    <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong>
     60                    <ul>
     61                        <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ) ?></li>
     62                        <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ) ?></li>
     63                        <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ) ?></li>
     64                    </ul>
     65                </label>
     66               
     67                <label>
     68                    <input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting('hidden') ?> />
     69                    <?php _e( 'This is a hidden group', 'buddypress' ) ?></strong>
     70                    <ul>
     71                        <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ) ?></li>
     72                        <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ) ?></li>
     73                        <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ) ?></li>
     74                    </ul>
     75                </label>
    5076            </div>
    51 
     77           
    5278            <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" />
    5379           
Note: See TracChangeset for help on using the changeset viewer.