Skip to:
Content

BuddyPress.org

Changeset 3620 for trunk/bp-messages.php


Ignore:
Timestamp:
12/30/2010 08:30:39 PM (14 years ago)
Author:
boonebgorges
Message:

Allows super admins to edit user settings. Fixes #965. Props johnjamesjacoby and sorich87 for initial patches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages.php

    r3584 r3620  
    168168
    169169function messages_screen_notification_settings() {
    170     global $current_user; ?>
     170    global $bp;
     171   
     172    ?>
     173   
    171174    <table class="notification-settings zebra" id="messages-notification-settings">
    172175        <thead>
     
    183186                <td></td>
    184187                <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>
    187190            </tr>
    188191            <tr id="messages-notification-settings-new-site-notice">
    189192                <td></td>
    190193                <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>
    193196            </tr>
    194197
Note: See TracChangeset for help on using the changeset viewer.