diff -ru buddypress/bp-activity/bp-activity-templatetags.php htdocs/wp-content/plugins/buddypress/bp-activity/bp-activity-templatetags.php
old
|
new
|
|
155 | 155 | $object = $bp->groups->id; |
156 | 156 | $primary_id = $bp->groups->current_group->id; |
157 | 157 | |
158 | | if ( 'public' != $bp->groups->current_group->status && ( groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) || $bp->loggedin_user->is_super_admin ) ) |
| 158 | if ( 'public' != $bp->groups->current_group->status && 'modmems' != $bp->groups->current_group->status && ( groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) || $bp->loggedin_user->is_super_admin ) ) |
159 | 159 | $show_hidden = true; |
160 | 160 | } |
161 | 161 | |
… |
… |
|
1000 | 1000 | else if ( 'mentions' == $bp->current_action ) |
1001 | 1001 | $link = $bp->displayed_user->domain . $bp->activity->slug . '/mentions/feed/'; |
1002 | 1002 | |
1003 | | return apply_filters( 'bp_get_activities_member_rss_link', $link ); |
| 1003 | return apply_filters( 'bp_get_activities_member_feed_link', $link ); |
1004 | 1004 | } |
1005 | 1005 | function bp_get_activities_member_rss_link() { return bp_get_member_activity_feed_link(); } |
1006 | 1006 | |
| 1007 | function bp_get_member_current_activity_feed_title() { |
| 1008 | global $bp; |
| 1009 | |
| 1010 | if ( $bp->current_component == $bp->profile->slug || 'just-me' == $bp->current_action ) |
| 1011 | $name = 'Personal'; |
| 1012 | else if ( 'friends' == $bp->current_action ) |
| 1013 | $name = 'Friends'; |
| 1014 | else if ( 'groups' == $bp->current_action ) |
| 1015 | $name = 'Groups'; |
| 1016 | else if ( 'favorites' == $bp->current_action ) |
| 1017 | $name = 'Favorites'; |
| 1018 | else if ( 'mentions' == $bp->current_action ) |
| 1019 | $name = 'Mentions'; |
| 1020 | else if ( 'blogs' == $bp->current_action ) |
| 1021 | $name = 'Blogs'; |
| 1022 | |
| 1023 | return apply_filters( 'bp_get_activity_current_feed_title', $name ); |
| 1024 | } |
| 1025 | function bp_member_current_activity_feed_title() { return bp_get_member_current_activity_feed_title(); } |
| 1026 | function bp_member_current_activity_rss_title() { return bp_get_member_current_activity_feed_title(); } |
| 1027 | |
| 1028 | |
1007 | 1029 | |
1008 | 1030 | /* Template tags for RSS feed output */ |
1009 | 1031 | |
… |
… |
|
1071 | 1093 | return apply_filters( 'bp_get_activity_feed_item_description', html_entity_decode( str_replace( '%s', '', $content ) ) ); |
1072 | 1094 | } |
1073 | 1095 | |
1074 | | ?> |
1075 | | No newline at end of file |
| 1096 | ?> |
diff -ru buddypress/bp-activity.php htdocs/wp-content/plugins/buddypress/bp-activity.php
old
|
new
|
|
1212 | 1212 | add_action( 'bp_loaded', 'bp_register_activity_actions', 8 ); |
1213 | 1213 | |
1214 | 1214 | |
1215 | | ?> |
1216 | | No newline at end of file |
| 1215 | ?> |
diff -ru buddypress/bp-core/bp-core-avatars.php htdocs/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php
old
|
new
|
|
476 | 476 | * @param string $alt Alternate text to use in image tag. Defaults to blank |
477 | 477 | * @return <type> |
478 | 478 | */ |
479 | | function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt ) { |
| 479 | function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt = '' ) { |
480 | 480 | global $pagenow; |
481 | 481 | |
482 | 482 | // Do not filter if inside WordPress options page |
… |
… |
|
572 | 572 | return apply_filters( 'bp_core_avatar_url', $upload_dir['baseurl'] ); |
573 | 573 | } |
574 | 574 | |
575 | | ?> |
576 | | No newline at end of file |
| 575 | ?> |
diff -ru buddypress/bp-groups/bp-groups-classes.php htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-classes.php
old
|
new
|
|
467 | 467 | |
468 | 468 | // Limit results to public status |
469 | 469 | if ( $only_public ) |
470 | | $where_conditions[] = $wpdb->prepare( "g.status = 'public'" ); |
| 470 | $where_conditions[] = $wpdb->prepare( "(g.status = 'public' OR g.status = 'modmems')" ); |
471 | 471 | |
472 | 472 | if ( !is_super_admin() ) |
473 | 473 | $where_conditions[] = $wpdb->prepare( "g.status != 'hidden'"); |
… |
… |
|
618 | 618 | |
619 | 619 | $extra_sql = apply_filters( 'groups_total_public_forum_topic_count', $bp->groups->filter_sql, $type ); |
620 | 620 | |
621 | | return $wpdb->get_var( "SELECT COUNT(t.topic_id) FROM {$bbdb->topics} AS t, {$bp->groups->table_name} AS g LEFT JOIN {$bp->groups->table_name_groupmeta} AS gm ON g.id = gm.group_id WHERE (gm.meta_key = 'forum_id' AND gm.meta_value = t.forum_id) AND g.status = 'public' AND t.topic_status = '0' AND t.topic_sticky != '2' {$extra_sql} " ); |
| 621 | return $wpdb->get_var( "SELECT COUNT(t.topic_id) FROM {$bbdb->topics} AS t, {$bp->groups->table_name} AS g LEFT JOIN {$bp->groups->table_name_groupmeta} AS gm ON g.id = gm.group_id WHERE (gm.meta_key = 'forum_id' AND gm.meta_value = t.forum_id) AND (g.status = 'public' OR g.status = 'modmems') AND t.topic_status = '0' AND t.topic_sticky != '2' {$extra_sql} " ); |
622 | 622 | } |
623 | 623 | |
624 | 624 | function get_total_member_count( $group_id ) { |
… |
… |
|
821 | 821 | if ( $limit && $page ) |
822 | 822 | $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); |
823 | 823 | |
824 | | // If the user is logged in and viewing their own groups, we can show hidden and private groups |
| 824 | // If the user is logged in and viewing their own groups, we can show hidden, private and moderated-membership groups |
825 | 825 | if ( $user_id != $bp->loggedin_user->id ) { |
826 | 826 | $group_sql = $wpdb->prepare( "SELECT DISTINCT m.group_id FROM {$bp->groups->table_name_members} m, {$bp->groups->table_name} g WHERE g.status != 'hidden' AND m.user_id = %d AND m.is_confirmed = 1 AND m.is_banned = 0{$pag_sql}", $user_id ); |
827 | 827 | $total_groups = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(DISTINCT m.group_id) FROM {$bp->groups->table_name_members} m, {$bp->groups->table_name} g WHERE g.status != 'hidden' AND m.user_id = %d AND m.is_confirmed = 1 AND m.is_banned = 0", $user_id ) ); |
… |
… |
|
1013 | 1013 | function get_random_groups( $user_id, $total_groups = 5 ) { |
1014 | 1014 | global $wpdb, $bp; |
1015 | 1015 | |
1016 | | // If the user is logged in and viewing their random groups, we can show hidden and private groups |
| 1016 | // If the user is logged in and viewing their random groups, we can show hidden, private and moderated-membership groups |
1017 | 1017 | if ( bp_is_my_profile() ) { |
1018 | 1018 | return $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT group_id FROM {$bp->groups->table_name_members} WHERE user_id = %d AND is_confirmed = 1 AND is_banned = 0 ORDER BY rand() LIMIT $total_groups", $user_id ) ); |
1019 | 1019 | } else { |
diff -ru buddypress/bp-groups/bp-groups-filters.php htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-filters.php
old
|
new
|
|
65 | 65 | global $bp; |
66 | 66 | |
67 | 67 | /* Only filter the forum SQL on group pages or on the forums directory */ |
68 | | if ( ( $bp->groups->current_group && 'public' == $bp->groups->current_group->status ) || !$bp->groups->current_group ) { |
| 68 | if ( ( $bp->groups->current_group && ( 'public' == $bp->groups->current_group->status || 'modmems' == $bp->groups->current_group->status ) ) || !$bp->groups->current_group ) { |
69 | 69 | add_filter( 'get_topics_fields', 'groups_add_forum_fields_sql' ); |
70 | 70 | add_filter( 'get_topics_index_hint', 'groups_add_forum_tables_sql' ); |
71 | 71 | add_filter( 'get_topics_where', 'groups_add_forum_where_sql' ); |
… |
… |
|
86 | 86 | global $bp; |
87 | 87 | |
88 | 88 | $bp->groups->filter_sql = ' AND ' . $sql; |
89 | | return "(gm.meta_key = 'forum_id' AND gm.meta_value = t.forum_id) AND g.status = 'public' AND " . $sql; |
| 89 | return "(gm.meta_key = 'forum_id' AND gm.meta_value = t.forum_id) AND (g.status = 'public' OR g.status = 'modmems') AND " . $sql; |
90 | 90 | } |
91 | 91 | |
92 | 92 | function groups_filter_bbpress_caps( $value, $cap, $args ) { |
… |
… |
|
105 | 105 | } |
106 | 106 | add_filter( 'bb_current_user_can', 'groups_filter_bbpress_caps', 10, 3 ); |
107 | 107 | |
108 | | ?> |
109 | | No newline at end of file |
| 108 | ?> |
diff -ru buddypress/bp-groups/bp-groups-templatetags.php htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-templatetags.php
old
|
new
|
|
204 | 204 | if ( !$group ) |
205 | 205 | $group =& $groups_template->group; |
206 | 206 | |
207 | | if ( 'public' == $group->status ) { |
| 207 | if ( 'public' == $group->status || 'modmems' == $group->status ) { |
208 | 208 | return true; |
209 | 209 | } else { |
210 | 210 | if ( groups_is_user_member( $bp->loggedin_user->id, $group->id ) ) { |
… |
… |
|
250 | 250 | |
251 | 251 | if ( 'public' == $group->status ) { |
252 | 252 | $type = __( "Public Group", "buddypress" ); |
| 253 | } else if ( 'modmems' == $group->status ) { |
| 254 | $type = __( "Moderated-Membership Group", "buddypress" ); |
253 | 255 | } else if ( 'hidden' == $group->status ) { |
254 | 256 | $type = __( "Hidden Group", "buddypress" ); |
255 | 257 | } else if ( 'private' == $group->status ) { |
… |
… |
|
415 | 417 | if ( !$group ) |
416 | 418 | $group =& $groups_template->group; |
417 | 419 | |
418 | | if ( $group->is_public ) { |
| 420 | if ( $group->status == 'public' ) { |
419 | 421 | return __( 'Public', 'buddypress' ); |
| 422 | } elseif ( $group->status == 'modmems' ) { |
| 423 | return __( 'Moderated-Membership', 'buddypress' ); |
420 | 424 | } else { |
421 | 425 | return __( 'Private', 'buddypress' ); |
422 | 426 | } |
… |
… |
|
930 | 934 | <li<?php if ( 'group-avatar' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->root_domain . '/' . $bp->groups->slug ?>/<?php echo $group->slug ?>/admin/group-avatar"><?php _e('Group Avatar', 'buddypress') ?></a></li> |
931 | 935 | <li<?php if ( 'manage-members' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->root_domain . '/' . $bp->groups->slug ?>/<?php echo $group->slug ?>/admin/manage-members"><?php _e('Manage Members', 'buddypress') ?></a></li> |
932 | 936 | |
933 | | <?php if ( $groups_template->group->status == 'private' ) : ?> |
| 937 | <?php if ( $groups_template->group->status == 'private' || $group_template->group->status == 'modmems' ) : ?> |
934 | 938 | <li<?php if ( 'membership-requests' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->root_domain . '/' . $bp->groups->slug ?>/<?php echo $group->slug ?>/admin/membership-requests"><?php _e('Membership Requests', 'buddypress') ?></a></li> |
935 | 939 | <?php endif; ?> |
936 | 940 | |
… |
… |
|
1095 | 1099 | return true; |
1096 | 1100 | } |
1097 | 1101 | |
| 1102 | function bp_group_can_post_new_topic( $group = false ) { |
| 1103 | global $groups_template; |
| 1104 | |
| 1105 | if ( !bp_is_group_forum() || !is_user_logged_in() || bp_is_group_forum_topic() ) |
| 1106 | return false; |
| 1107 | |
| 1108 | if ( !$group ) |
| 1109 | $group =& $groups_template->group; |
| 1110 | |
| 1111 | if ( $group->status == 'modmems' && !$group->is_member ) |
| 1112 | return false; |
| 1113 | } |
| 1114 | |
1098 | 1115 | function bp_group_new_topic_button() { |
1099 | | if ( bp_is_group_forum() && is_user_logged_in() && !bp_is_group_forum_topic() ) { |
| 1116 | if ( bp_group_can_post_new_topic() ) { |
1100 | 1117 | bp_button( array ( |
1101 | 1118 | 'id' => 'new_topic', |
1102 | 1119 | 'component' => 'groups', |
… |
… |
|
1173 | 1190 | break; |
1174 | 1191 | |
1175 | 1192 | case 'private' : |
| 1193 | case 'modmems' : |
1176 | 1194 | |
1177 | 1195 | // Member has not requested membership yet |
1178 | 1196 | if ( !bp_group_has_requested_membership( $group ) ) { |
… |
… |
|
1219 | 1237 | if ( !$group ) |
1220 | 1238 | $group =& $groups_template->group; |
1221 | 1239 | |
1222 | | if ( 'private' == $group->status ) { |
| 1240 | $privstatus = null; |
| 1241 | |
| 1242 | if ( 'private' == $group->status ) |
| 1243 | $privstatus = 'private'; |
| 1244 | if ( 'modmems' == $group->status ) |
| 1245 | $privstatus = 'moderated-membership'; |
| 1246 | |
| 1247 | if ( $privstatus ) { |
1223 | 1248 | if ( !bp_group_has_requested_membership() ) |
1224 | 1249 | if ( is_user_logged_in() ) |
1225 | | _e( 'This is a private group and you must request group membership in order to join.', 'buddypress' ); |
| 1250 | _e( 'This is a ' . $privstatus . ' group and you must request group membership in order to join.', 'buddypress' ); |
1226 | 1251 | else |
1227 | | _e( 'This is a private group. To join you must be a registered site member and request group membership.', 'buddypress' ); |
| 1252 | _e( 'This is a ' . $privstatus . ' group. To join you must be a registered site member and request group membership.', 'buddypress' ); |
1228 | 1253 | else |
1229 | | _e( 'This is a private group. Your membership request is awaiting approval from the group administrator.', 'buddypress' ); |
| 1254 | _e( 'This is a ' . $privstatus . ' group. Your membership request is awaiting approval from the group administrator.', 'buddypress' ); |
1230 | 1255 | } else { |
1231 | 1256 | _e( 'This is a hidden group and only invited members can join.', 'buddypress' ); |
1232 | 1257 | } |
… |
… |
|
2271 | 2296 | $name = apply_filters( 'bp_get_group_name', $bp->groups->current_group->name ); |
2272 | 2297 | return apply_filters( 'bp_get_current_group_name', $name ); |
2273 | 2298 | } |
2274 | | ?> |
2275 | | No newline at end of file |
| 2299 | ?> |
diff -ru buddypress/bp-groups.php htdocs/wp-content/plugins/buddypress/bp-groups.php
old
|
new
|
|
96 | 96 | if ( bp_is_active( 'friends' ) ) |
97 | 97 | $bp->groups->group_creation_steps['group-invites'] = array( 'name' => __( 'Invites', 'buddypress' ), 'position' => 30 ); |
98 | 98 | |
99 | | $bp->groups->valid_status = apply_filters( 'groups_valid_status', array( 'public', 'private', 'hidden' ) ); |
| 99 | $bp->groups->valid_status = apply_filters( 'groups_valid_status', array( 'public', 'private', 'hidden', 'modmems' ) ); |
100 | 100 | |
101 | 101 | // Auto join group when non group member performs group activity |
102 | 102 | $bp->groups->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) ? false : true; |
… |
… |
|
141 | 141 | $bp->groups->current_group->is_user_member = ( is_user_logged_in() && groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) ? true : false; |
142 | 142 | |
143 | 143 | /* Should this group be visible to the logged in user? */ |
144 | | $bp->groups->current_group->is_group_visible_to_member = ( 'public' == $bp->groups->current_group->status || $is_member ) ? true : false; |
| 144 | $bp->groups->current_group->is_group_visible_to_member = ( 'public' == $bp->groups->current_group->status || 'modmems' == $bp->groups->current_group_status || $is_member ) ? true : false; |
145 | 145 | } |
146 | 146 | |
147 | 147 | /* Add 'Groups' to the main navigation */ |
… |
… |
|
204 | 204 | if ( $bp->is_item_mod || $bp->is_item_admin ) |
205 | 205 | bp_core_new_subnav_item( array( 'name' => __( 'Admin', 'buddypress' ), 'slug' => 'admin', 'parent_url' => $group_link, 'parent_slug' => $bp->groups->slug, 'screen_function' => 'groups_screen_group_admin', 'position' => 20, 'user_has_access' => ( $bp->is_item_admin + (int)$bp->is_item_mod ), 'item_css_id' => 'admin' ) ); |
206 | 206 | |
207 | | // If this is a private group, and the user is not a member, show a "Request Membership" nav item. |
208 | | if ( !is_super_admin() && is_user_logged_in() && !$bp->groups->current_group->is_user_member && !groups_check_for_membership_request( $bp->loggedin_user->id, $bp->groups->current_group->id ) && $bp->groups->current_group->status == 'private' ) |
| 207 | // If this is a private or moderated-membership group, and the user is not a member, show a "Request Membership" nav item. |
| 208 | if ( !is_super_admin() && is_user_logged_in() && !$bp->groups->current_group->is_user_member && !groups_check_for_membership_request( $bp->loggedin_user->id, $bp->groups->current_group->id ) && ( $bp->groups->current_group->status == 'private' || $bp->groups->current_group->status == 'modmems' ) ) |
209 | 209 | bp_core_new_subnav_item( array( 'name' => __( 'Request Membership', 'buddypress' ), 'slug' => 'request-membership', 'parent_url' => $group_link, 'parent_slug' => $bp->groups->slug, 'screen_function' => 'groups_screen_group_request_membership', 'position' => 30 ) ); |
210 | 210 | |
211 | 211 | if ( $bp->groups->current_group->enable_forum && function_exists('bp_forums_setup') ) |
… |
… |
|
607 | 607 | if ( !is_user_logged_in() ) |
608 | 608 | return false; |
609 | 609 | |
610 | | if ( 'private' == $bp->groups->current_group->status ) { |
| 610 | if ( 'private' == $bp->groups->current_group->status || 'modmems' == $bp->groups->current_group->status ) { |
611 | 611 | // If the user has submitted a request, send it. |
612 | 612 | if ( isset( $_POST['group-request-send']) ) { |
613 | 613 | /* Check the nonce first. */ |
… |
… |
|
696 | 696 | if ( isset( $_POST['save'] ) ) { |
697 | 697 | $enable_forum = ( isset($_POST['group-show-forum'] ) ) ? 1 : 0; |
698 | 698 | |
699 | | $allowed_status = apply_filters( 'groups_allowed_status', array( 'public', 'private', 'hidden' ) ); |
| 699 | $allowed_status = apply_filters( 'groups_allowed_status', array( 'public', 'private', 'hidden', 'modmems' ) ); |
700 | 700 | $status = ( in_array( $_POST['group-status'], (array)$allowed_status ) ) ? $_POST['group-status'] : 'public'; |
701 | 701 | |
702 | 702 | /* Check the nonce first. */ |
… |
… |
|
1010 | 1010 | </tr> |
1011 | 1011 | <tr> |
1012 | 1012 | <td></td> |
1013 | | <td><?php _e( 'A member requests to join a private group for which you are an admin', 'buddypress' ) ?></td> |
| 1013 | <td><?php _e( 'A member requests to join a private or moderated-membership group for which you are an admin', 'buddypress' ) ?></td> |
1014 | 1014 | <td class="yes"><input type="radio" name="notifications[notification_groups_membership_request]" value="yes" <?php if ( !get_user_meta( $current_user->id, 'notification_groups_membership_request', true ) || 'yes' == get_user_meta( $current_user->id, 'notification_groups_membership_request', true ) ) { ?>checked="checked" <?php } ?>/></td> |
1015 | 1015 | <td class="no"><input type="radio" name="notifications[notification_groups_membership_request]" value="no" <?php if ( 'no' == get_user_meta( $current_user->id, 'notification_groups_membership_request', true ) ) { ?>checked="checked" <?php } ?>/></td> |
1016 | 1016 | </tr> |
… |
… |
|
1109 | 1109 | |
1110 | 1110 | if ( 'private' == $_POST['group-status'] ) |
1111 | 1111 | $group_status = 'private'; |
| 1112 | else if ( 'modmems' == $_POST['group-status'] ) |
| 1113 | $group_status = 'modmems'; |
1112 | 1114 | else if ( 'hidden' == $_POST['group-status'] ) |
1113 | 1115 | $group_status = 'hidden'; |
1114 | 1116 | |
… |
… |
|
1306 | 1308 | $wp_query->is_404 = false; |
1307 | 1309 | status_header( 200 ); |
1308 | 1310 | |
1309 | | if ( 'public' != $bp->groups->current_group->status ) { |
| 1311 | if ( 'public' != $bp->groups->current_group->status && 'modmems' != $bp->groups->current_group->status ) { |
1310 | 1312 | if ( !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) |
1311 | 1313 | return false; |
1312 | 1314 | } |
… |
… |
|
1346 | 1348 | return false; |
1347 | 1349 | |
1348 | 1350 | /* If the group is not public, hide the activity sitewide. */ |
1349 | | if ( 'public' == $bp->groups->current_group->status ) |
| 1351 | if ( 'public' == $bp->groups->current_group->status || 'modmems' == $bp->groups->current_group->status ) |
1350 | 1352 | $hide_sitewide = false; |
1351 | 1353 | else |
1352 | 1354 | $hide_sitewide = true; |
… |
… |
|
1602 | 1604 | * Before we potentially switch the group status, if it has been changed to public |
1603 | 1605 | * from private and there are outstanding membership requests, auto-accept those requests. |
1604 | 1606 | */ |
1605 | | if ( 'private' == $group->status && 'public' == $status ) |
| 1607 | if ( ( 'private' == $group->status || 'modmems' == $group->status ) && 'public' == $status ) |
1606 | 1608 | groups_accept_all_pending_membership_requests( $group->id ); |
1607 | 1609 | |
1608 | 1610 | /* Now update the status */ |
diff -ru buddypress/bp-themes/bp-default/forums/index.php htdocs/wp-content/plugins/buddypress/bp-themes/bp-default/forums/index.php
old
|
new
|
|
42 | 42 | |
43 | 43 | <?php while ( bp_groups() ) : bp_the_group(); ?> |
44 | 44 | |
45 | | <?php if ( bp_group_is_forum_enabled() && 'public' == bp_get_group_status() ) : ?> |
| 45 | <?php if ( bp_group_is_forum_enabled() && ( 'public' == bp_get_group_status() || bp_group_is_member() ) ) : ?> |
46 | 46 | |
47 | 47 | <option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option> |
48 | 48 | |
… |
… |
|
117 | 117 | |
118 | 118 | <?php locate_template( array( 'sidebar.php' ), true ) ?> |
119 | 119 | |
120 | | <?php get_footer() ?> |
121 | | No newline at end of file |
| 120 | <?php get_footer() ?> |
diff -ru buddypress/bp-themes/bp-default/groups/create.php htdocs/wp-content/plugins/buddypress/bp-themes/bp-default/groups/create.php
old
|
new
|
|
74 | 74 | </ul> |
75 | 75 | </label> |
76 | 76 | |
| 77 | <label><input type="radio" name="group-status" value="modmems"<?php if ( 'modmems' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> |
| 78 | <strong><?php _e( 'This is a moderated-membership group', 'buddypress' ) ?></strong> |
| 79 | <ul> |
| 80 | <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ) ?></li> |
| 81 | <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ) ?></li> |
| 82 | <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ) ?></li> |
| 83 | </ul> |
| 84 | </label> |
| 85 | |
77 | 86 | <label><input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> |
78 | 87 | <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong> |
79 | 88 | <ul> |
diff -ru buddypress/bp-themes/bp-default/groups/single/admin.php htdocs/wp-content/plugins/buddypress/bp-themes/bp-default/groups/single/admin.php
old
|
new
|
|
75 | 75 | </label> |
76 | 76 | |
77 | 77 | <label> |
| 78 | <input type="radio" name="group-status" value="modmems"<?php bp_group_show_status_setting('modmems') ?> /> |
| 79 | <strong><?php _e( 'This is a moderated-membership group', 'buddypress' ) ?></strong> |
| 80 | <ul> |
| 81 | <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ) ?></li> |
| 82 | <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ) ?></li> |
| 83 | <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ) ?></li> |
| 84 | </ul> |
| 85 | </label> |
| 86 | |
| 87 | <label> |
78 | 88 | <input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting('private') ?> /> |
79 | 89 | <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong> |
80 | 90 | <ul> |
diff -ru buddypress/bp-themes/bp-default/header.php htdocs/wp-content/plugins/buddypress/bp-themes/bp-default/header.php
old
|
new
|
|
18 | 18 | <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" /> |
19 | 19 | <?php endif; ?> |
20 | 20 | |
21 | | <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?> |
22 | | <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" /> |
| 21 | <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() && bp_is_activity_component() ) : ?> |
| 22 | <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( bp_member_current_activity_rss_title() . ' Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" /> |
23 | 23 | <?php endif; ?> |
24 | 24 | |
25 | 25 | <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?> |