Changeset 3620
- Timestamp:
- 12/30/2010 08:30:39 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r3592 r3620 203 203 204 204 function bp_activity_screen_notification_settings() { 205 global $bp; ?> 205 global $bp; 206 207 ?> 208 206 209 <table class="notification-settings zebra" id="activity-notification-settings"> 207 210 <thead> … … 217 220 <tr id="activity-notification-settings-mentions"> 218 221 <td></td> 219 <td><?php printf( __( 'A member mentions you in an update using "@%s"', 'buddypress' ), bp_core_get_username( $bp-> loggedin_user->id, $bp->loggedin_user->userdata->user_nicename, $bp->loggedin_user->userdata->user_login ) ) ?></td>220 <td class="yes"><input type="radio" name="notifications[notification_activity_new_mention]" value="yes" <?php if ( !get_user_meta( $bp-> loggedin_user->id, 'notification_activity_new_mention', true ) || 'yes' == get_user_meta( $bp->loggedin_user->id, 'notification_activity_new_mention', true ) ) { ?>checked="checked" <?php } ?>/></td>221 <td class="no"><input type="radio" name="notifications[notification_activity_new_mention]" value="no" <?php if ( 'no' == get_user_meta( $bp-> loggedin_user->id, 'notification_activity_new_mention', true ) ) { ?>checked="checked" <?php } ?>/></td>222 <td><?php printf( __( 'A member mentions you in an update using "@%s"', 'buddypress' ), bp_core_get_username( $bp->displayed_user->id, $bp->displayed_user->userdata->user_nicename, $bp->displayed_user->userdata->user_login ) ) ?></td> 223 <td class="yes"><input type="radio" name="notifications[notification_activity_new_mention]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_activity_new_mention', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_activity_new_mention', true ) ) { ?>checked="checked" <?php } ?>/></td> 224 <td class="no"><input type="radio" name="notifications[notification_activity_new_mention]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_activity_new_mention', true ) ) { ?>checked="checked" <?php } ?>/></td> 222 225 </tr> 223 226 <tr id="activity-notification-settings-replies"> 224 227 <td></td> 225 228 <td><?php _e( "A member replies to an update or comment you've posted", 'buddypress' ) ?></td> 226 <td class="yes"><input type="radio" name="notifications[notification_activity_new_reply]" value="yes" <?php if ( !get_user_meta( $bp->loggedin_user->id, 'notification_activity_new_reply', true ) || 'yes' == get_user_meta( $bp-> loggedin_user->id, 'notification_activity_new_reply', true ) ) { ?>checked="checked" <?php } ?>/></td>227 <td class="no"><input type="radio" name="notifications[notification_activity_new_reply]" value="no" <?php if ( 'no' == get_user_meta( $bp-> loggedin_user->id, 'notification_activity_new_reply', true ) ) { ?>checked="checked" <?php } ?>/></td>229 <td class="yes"><input type="radio" name="notifications[notification_activity_new_reply]" value="yes" <?php if ( !get_user_meta( $bp->loggedin_user->id, 'notification_activity_new_reply', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_activity_new_reply', true ) ) { ?>checked="checked" <?php } ?>/></td> 230 <td class="no"><input type="radio" name="notifications[notification_activity_new_reply]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_activity_new_reply', true ) ) { ?>checked="checked" <?php } ?>/></td> 228 231 </tr> 229 232 -
trunk/bp-core/bp-core-settings.php
r3592 r3620 15 15 16 16 /* Add the settings navigation item */ 17 bp_core_new_nav_item( array( 'name' => __('Settings', 'buddypress'), 'slug' => $bp->settings->slug, 'position' => 100, 'show_for_displayed_user' => false, 'screen_function' => 'bp_core_screen_general_settings', 'default_subnav_slug' => 'general' ) );18 19 $settings_link = $bp-> loggedin_user->domain . $bp->settings->slug . '/';20 21 bp_core_new_subnav_item( array( 'name' => __( 'General', 'buddypress' ), 'slug' => 'general', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_general_settings', 'position' => 10, 'user_has_access' => bp_ is_my_profile() ) );22 bp_core_new_subnav_item( array( 'name' => __( 'Notifications', 'buddypress' ), 'slug' => 'notifications', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_notification_settings', 'position' => 20, 'user_has_access' => bp_ is_my_profile() ) );17 bp_core_new_nav_item( array( 'name' => __('Settings', 'buddypress'), 'slug' => $bp->settings->slug, 'position' => 100, 'show_for_displayed_user' => bp_core_can_edit_settings(), 'screen_function' => 'bp_core_screen_general_settings', 'default_subnav_slug' => 'general' ) ); 18 19 $settings_link = $bp->displayed_user->domain . $bp->settings->slug . '/'; 20 21 bp_core_new_subnav_item( array( 'name' => __( 'General', 'buddypress' ), 'slug' => 'general', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_general_settings', 'position' => 10, 'user_has_access' => bp_core_can_edit_settings() ) ); 22 bp_core_new_subnav_item( array( 'name' => __( 'Notifications', 'buddypress' ), 'slug' => 'notifications', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_notification_settings', 'position' => 20, 'user_has_access' => bp_core_can_edit_settings() ) ); 23 23 24 24 if ( !is_super_admin() && empty( $bp->site_options['bp-disable-account-deletion'] ) ) … … 29 29 add_action( 'bp_setup_nav', 'bp_core_add_settings_nav' ); 30 30 31 function bp_core_can_edit_settings() { 32 if ( bp_is_my_profile() ) 33 return true; 34 35 if ( is_super_admin() ) 36 return true; 37 38 return false; 39 } 40 31 41 /**** GENERAL SETTINGS ****/ 32 42 33 43 function bp_core_screen_general_settings() { 34 global $ current_user, $bp_settings_updated, $pass_error, $email_error, $pwd_error;44 global $bp, $current_user, $bp_settings_updated, $pass_error, $email_error, $pwd_error; 35 45 36 46 $bp_settings_updated = false; … … 47 57 48 58 // Validate the user again for the current password when making a big change 49 if ( !empty( $_POST['pwd'] ) && $_POST['pwd'] != '' && wp_check_password($_POST['pwd'], $current_user->user_pass, $current_user->ID) ) { 59 if ( is_super_admin() || ( !empty( $_POST['pwd'] ) && $_POST['pwd'] != '' && wp_check_password($_POST['pwd'], $current_user->user_pass, $current_user->ID ) ) ) { 60 61 $update_user = get_userdata( $bp->displayed_user->id ); 50 62 51 63 // Make sure changing an email address does not already exist … … 53 65 54 66 // What is missing from the profile page vs signup - lets double check the goodies 55 $user_email = sanitize_email( wp_specialchars( trim( $_POST['email'] ) ) );67 $user_email = sanitize_email( esc_html( trim( $_POST['email'] ) ) ); 56 68 57 69 if ( !is_email( $user_email ) ) … … 65 77 if ( in_array( $emaildomain, (array)$limited_email_domains ) == false ) { 66 78 $email_error = true; 67 68 79 } 69 80 } 70 81 71 if ( !$email_error && $ current_user->user_email != $user_email ) {82 if ( !$email_error && $bp->displayed_user->userdata->user_email != $user_email ) { 72 83 73 84 //we don't want email dups in the system … … 75 86 $email_error = true; 76 87 77 if ( !$email_error)78 $ current_user->user_email = $user_email;88 if ( !$email_error ) 89 $update_user->user_email = $user_email; 79 90 } 80 91 } … … 82 93 if ( $_POST['pass1'] != '' && $_POST['pass2'] != '' ) { 83 94 84 if ( $_POST['pass1'] == $_POST['pass2'] && !strpos( " " . $_POST['pass1'], "\\" ) ) 85 $ current_user->user_pass = $_POST['pass1'];86 else95 if ( $_POST['pass1'] == $_POST['pass2'] && !strpos( " " . $_POST['pass1'], "\\" ) ) { 96 $update_user->user_pass = $_POST['pass1']; 97 } else { 87 98 $pass_error = true; 99 } 88 100 89 101 } else if ( empty( $_POST['pass1'] ) && !empty( $_POST['pass2'] ) || !empty( $_POST['pass1'] ) && empty( $_POST['pass2'] ) ) { 90 102 $pass_error = true; 91 103 } else { 92 unset( $ current_user->user_pass );104 unset( $update_user->user_pass ); 93 105 } 94 106 95 if ( !$email_error && !$pass_error && wp_update_user( get_object_vars( $current_user ) ) ) 107 if ( !$email_error && !$pass_error && wp_update_user( get_object_vars( $update_user ) ) ) { 108 // Make sure these changes are in $bp for the current page load 109 $bp->displayed_user->userdata = bp_core_get_core_userdata( $bp->displayed_user->id ); 96 110 $bp_settings_updated = true; 111 } 97 112 98 113 } else { … … 114 129 115 130 function bp_core_screen_general_settings_content() { 116 global $bp, $ current_user, $bp_settings_updated, $pass_error, $pwd_error, $email_error; ?>131 global $bp, $bp_settings_updated, $pass_error, $pwd_error, $email_error; ?> 117 132 118 133 <?php if ( $bp_settings_updated && !$pass_error ) { ?> … … 142 157 143 158 144 <form action="<?php echo $bp->loggedin_user->domain . BP_SETTINGS_SLUG . '/general' ?>" method="post" class="standard-form" id="settings-form"> 145 146 <label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ) ?></label> 147 <input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" /> <a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a> 159 <form action="<?php echo $bp->displayed_user->domain . BP_SETTINGS_SLUG . '/general' ?>" method="post" class="standard-form" id="settings-form"> 160 161 <?php if ( empty( $bp->loggedin_user->is_super_admin ) ) : ?> 162 <label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ) ?></label> 163 <input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" /> <a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a> 164 <?php endif ?> 148 165 149 166 <label for="email"><?php _e( 'Account Email', 'buddypress' ) ?></label> 150 <input type="text" name="email" id="email" value="<?php echo esc_attr( $ current_user->user_email ); ?>" class="settings-input" />167 <input type="text" name="email" id="email" value="<?php echo esc_attr( $bp->displayed_user->userdata->user_email ); ?>" class="settings-input" /> 151 168 152 169 <label for="pass1"><?php _e( 'Change Password <span>(leave blank for no change)</span>', 'buddypress' ) ?></label> … … 170 187 171 188 function bp_core_screen_notification_settings() { 172 global $ current_user, $bp_settings_updated;189 global $bp, $bp_settings_updated; 173 190 174 191 $bp_settings_updated = false; … … 179 196 if ( isset( $_POST['notifications'] ) ) { 180 197 foreach ( (array)$_POST['notifications'] as $key => $value ) { 181 update_user_meta( (int)$ current_user->id, $key, $value );198 update_user_meta( (int)$bp->displayed_user->id, $key, $value ); 182 199 } 183 200 } … … 199 216 200 217 function bp_core_screen_notification_settings_content() { 201 global $bp, $ current_user, $bp_settings_updated; ?>218 global $bp, $bp_settings_updated; ?> 202 219 203 220 <?php if ( $bp_settings_updated ) { ?> … … 207 224 <?php } ?> 208 225 209 <form action="<?php echo $bp-> loggedin_user->domain . BP_SETTINGS_SLUG . '/notifications' ?>" method="post" id="settings-form">226 <form action="<?php echo $bp->displayed_user->domain . BP_SETTINGS_SLUG . '/notifications' ?>" method="post" id="settings-form"> 210 227 <p><?php _e( 'Send a notification by email when:', 'buddypress' ) ?></p> 211 228 … … 227 244 228 245 function bp_core_screen_delete_account() { 246 global $bp; 247 229 248 if ( isset( $_POST['delete-account-understand'] ) ) { 230 249 check_admin_referer( 'delete-account' ); 231 250 232 251 // delete the users account 233 if ( bp_core_delete_account( ) )252 if ( bp_core_delete_account( $bp->displayed_user->id ) ) 234 253 bp_core_redirect( site_url() ); 235 254 } … … 246 265 247 266 function bp_core_screen_delete_account_content() { 248 global $bp, $ current_user, $bp_settings_updated, $pass_error; ?>249 250 <form action="<?php echo $bp-> loggedin_user->domain . BP_SETTINGS_SLUG . '/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">267 global $bp, $bp_settings_updated, $pass_error; ?> 268 269 <form action="<?php echo $bp->displayed_user->domain . BP_SETTINGS_SLUG . '/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post"> 251 270 252 271 <div id="message" class="info"> -
trunk/bp-friends.php
r3592 r3620 108 108 109 109 function friends_screen_notification_settings() { 110 global $current_user; ?> 110 global $bp; 111 112 ?> 113 111 114 <table class="notification-settings zebra" id="friends-notification-settings"> 112 115 <thead> … … 123 126 <td></td> 124 127 <td><?php _e( 'A member sends you a friendship request', 'buddypress' ) ?></td> 125 <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_request]" value="yes" <?php if ( !get_user_meta( $ current_user->id, 'notification_friends_friendship_request', true ) || 'yes' == get_user_meta( $current_user->id, 'notification_friends_friendship_request', true ) ) { ?>checked="checked" <?php } ?>/></td>126 <td class="no"><input type="radio" name="notifications[notification_friends_friendship_request]" value="no" <?php if ( get_user_meta( $ current_user->id, 'notification_friends_friendship_request', true ) == 'no' ) { ?>checked="checked" <?php } ?>/></td>128 <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_request]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_friends_friendship_request', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_friends_friendship_request', true ) ) { ?>checked="checked" <?php } ?>/></td> 129 <td class="no"><input type="radio" name="notifications[notification_friends_friendship_request]" value="no" <?php if ( get_user_meta( $bp->displayed_user->id, 'notification_friends_friendship_request', true ) == 'no' ) { ?>checked="checked" <?php } ?>/></td> 127 130 </tr> 128 131 <tr id="friends-notification-settings-accepted"> 129 132 <td></td> 130 133 <td><?php _e( 'A member accepts your friendship request', 'buddypress' ) ?></td> 131 <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="yes" <?php if ( !get_user_meta( $ current_user->id, 'notification_friends_friendship_accepted', true ) || 'yes' == get_user_meta( $current_user->id, 'notification_friends_friendship_accepted', true ) ) { ?>checked="checked" <?php } ?>/></td>132 <td class="no"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="no" <?php if ( 'no' == get_user_meta( $ current_user->id, 'notification_friends_friendship_accepted', true ) ) { ?>checked="checked" <?php } ?>/></td>134 <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_friends_friendship_accepted', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_friends_friendship_accepted', true ) ) { ?>checked="checked" <?php } ?>/></td> 135 <td class="no"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_friends_friendship_accepted', true ) ) { ?>checked="checked" <?php } ?>/></td> 133 136 </tr> 134 137 -
trunk/bp-groups.php
r3592 r3620 939 939 940 940 function groups_screen_notification_settings() { 941 global $current_user; ?> 941 global $bp; 942 943 ?> 944 942 945 <table class="notification-settings zebra" id="groups-notification-settings"> 943 946 <thead> … … 954 957 <td></td> 955 958 <td><?php _e( 'A member invites you to join a group', 'buddypress' ) ?></td> 956 <td class="yes"><input type="radio" name="notifications[notification_groups_invite]" value="yes" <?php if ( !get_user_meta( $ current_user->id, 'notification_groups_invite', true ) || 'yes' == get_user_meta( $current_user->id, 'notification_groups_invite', true ) ) { ?>checked="checked" <?php } ?>/></td>957 <td class="no"><input type="radio" name="notifications[notification_groups_invite]" value="no" <?php if ( 'no' == get_user_meta( $ current_user->id, 'notification_groups_invite', true ) ) { ?>checked="checked" <?php } ?>/></td>959 <td class="yes"><input type="radio" name="notifications[notification_groups_invite]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_groups_invite', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_groups_invite', true ) ) { ?>checked="checked" <?php } ?>/></td> 960 <td class="no"><input type="radio" name="notifications[notification_groups_invite]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_groups_invite', true ) ) { ?>checked="checked" <?php } ?>/></td> 958 961 </tr> 959 962 <tr id="groups-notification-settings-info-updated"> 960 963 <td></td> 961 964 <td><?php _e( 'Group information is updated', 'buddypress' ) ?></td> 962 <td class="yes"><input type="radio" name="notifications[notification_groups_group_updated]" value="yes" <?php if ( !get_user_meta( $ current_user->id, 'notification_groups_group_updated', true ) || 'yes' == get_user_meta( $current_user->id, 'notification_groups_group_updated', true ) ) { ?>checked="checked" <?php } ?>/></td>963 <td class="no"><input type="radio" name="notifications[notification_groups_group_updated]" value="no" <?php if ( 'no' == get_user_meta( $ current_user->id, 'notification_groups_group_updated', true ) ) { ?>checked="checked" <?php } ?>/></td>965 <td class="yes"><input type="radio" name="notifications[notification_groups_group_updated]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_groups_group_updated', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_groups_group_updated', true ) ) { ?>checked="checked" <?php } ?>/></td> 966 <td class="no"><input type="radio" name="notifications[notification_groups_group_updated]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_groups_group_updated', true ) ) { ?>checked="checked" <?php } ?>/></td> 964 967 </tr> 965 968 <tr id="groups-notification-settings-promoted"> 966 969 <td></td> 967 970 <td><?php _e( 'You are promoted to a group administrator or moderator', 'buddypress' ) ?></td> 968 <td class="yes"><input type="radio" name="notifications[notification_groups_admin_promotion]" value="yes" <?php if ( !get_user_meta( $ current_user->id, 'notification_groups_admin_promotion', true ) || 'yes' == get_user_meta( $current_user->id, 'notification_groups_admin_promotion', true ) ) { ?>checked="checked" <?php } ?>/></td>969 <td class="no"><input type="radio" name="notifications[notification_groups_admin_promotion]" value="no" <?php if ( 'no' == get_user_meta( $ current_user->id, 'notification_groups_admin_promotion', true ) ) { ?>checked="checked" <?php } ?>/></td>971 <td class="yes"><input type="radio" name="notifications[notification_groups_admin_promotion]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_groups_admin_promotion', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_groups_admin_promotion', true ) ) { ?>checked="checked" <?php } ?>/></td> 972 <td class="no"><input type="radio" name="notifications[notification_groups_admin_promotion]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_groups_admin_promotion', true ) ) { ?>checked="checked" <?php } ?>/></td> 970 973 </tr> 971 974 <tr id="groups-notification-settings-request"> 972 975 <td></td> 973 976 <td><?php _e( 'A member requests to join a private group for which you are an admin', 'buddypress' ) ?></td> 974 <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>975 <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>977 <td class="yes"><input type="radio" name="notifications[notification_groups_membership_request]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_groups_membership_request', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_groups_membership_request', true ) ) { ?>checked="checked" <?php } ?>/></td> 978 <td class="no"><input type="radio" name="notifications[notification_groups_membership_request]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_groups_membership_request', true ) ) { ?>checked="checked" <?php } ?>/></td> 976 979 </tr> 977 980 -
trunk/bp-messages.php
r3584 r3620 168 168 169 169 function messages_screen_notification_settings() { 170 global $current_user; ?> 170 global $bp; 171 172 ?> 173 171 174 <table class="notification-settings zebra" id="messages-notification-settings"> 172 175 <thead> … … 183 186 <td></td> 184 187 <td><?php _e( 'A member sends you a new message', 'buddypress' ) ?></td> 185 <td class="yes"><input type="radio" name="notifications[notification_messages_new_message]" value="yes" <?php if ( !get_user_meta( $ current_user->id, 'notification_messages_new_message', true ) || 'yes' == get_user_meta( $current_user->id, 'notification_messages_new_message', true ) ) { ?>checked="checked" <?php } ?>/></td>186 <td class="no"><input type="radio" name="notifications[notification_messages_new_message]" value="no" <?php if ( 'no' == get_user_meta( $ current_user->id, 'notification_messages_new_message', true ) ) { ?>checked="checked" <?php } ?>/></td>188 <td class="yes"><input type="radio" name="notifications[notification_messages_new_message]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_messages_new_message', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_messages_new_message', true ) ) { ?>checked="checked" <?php } ?>/></td> 189 <td class="no"><input type="radio" name="notifications[notification_messages_new_message]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_messages_new_message', true ) ) { ?>checked="checked" <?php } ?>/></td> 187 190 </tr> 188 191 <tr id="messages-notification-settings-new-site-notice"> 189 192 <td></td> 190 193 <td><?php _e( 'A new site notice is posted', 'buddypress' ) ?></td> 191 <td class="yes"><input type="radio" name="notifications[notification_messages_new_notice]" value="yes" <?php if ( !get_user_meta( $ current_user->id, 'notification_messages_new_notice', true ) || 'yes' == get_user_meta( $current_user->id, 'notification_messages_new_notice', true ) ) { ?>checked="checked" <?php } ?>/></td>192 <td class="no"><input type="radio" name="notifications[notification_messages_new_notice]" value="no" <?php if ( 'no' == get_user_meta( $ current_user->id, 'notification_messages_new_notice', true ) ) { ?>checked="checked" <?php } ?>/></td>194 <td class="yes"><input type="radio" name="notifications[notification_messages_new_notice]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_messages_new_notice', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_messages_new_notice', true ) ) { ?>checked="checked" <?php } ?>/></td> 195 <td class="no"><input type="radio" name="notifications[notification_messages_new_notice]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_messages_new_notice', true ) ) { ?>checked="checked" <?php } ?>/></td> 193 196 </tr> 194 197
Note: See TracChangeset
for help on using the changeset viewer.