Skip to:
Content

BuddyPress.org

Changeset 2502


Ignore:
Timestamp:
01/31/2010 08:08:28 PM (17 years ago)
Author:
apeatling
Message:

Messaging sentbox fix and various other minor fixes.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r2485 r2502  
    629629        /* Send an email notification if settings allow */
    630630        require_once( BP_PLUGIN_DIR . '/bp-activity/bp-activity-notifications.php' );
    631         bp_activity_new_comment_notification( $comment_id, $params );
     631        bp_activity_new_comment_notification( $comment_id, $user_id, $params );
    632632
    633633        do_action( 'bp_activity_comment_posted', $comment_id, $params );
  • trunk/bp-activity/bp-activity-classes.php

    r2485 r2502  
    2727
    2828                $row = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$bp->activity->table_name} WHERE id = %d", $this->id ) );
    29 
    30                 if ( $activity ) {
     29                if ( $row ) {
    3130                        $this->id = $row->id;
    3231                        $this->item_id = $row->item_id;
  • trunk/bp-groups/bp-groups-notifications.php

    r2480 r2502  
    238238
    239239                // Now email the user with the contents of the message (if they have enabled email notifications)
    240                 if ( !get_usermeta( $user_id, 'notification_activity_new_mention' ) || 'yes' == get_usermeta( $user_id, 'notification_activity_new_mention' ) ) {
     240                if ( 'no' != get_usermeta( $user_id, 'notification_activity_new_mention' ) ) {
    241241                        $poster_name = bp_core_get_user_displayname( $poster_user_id );
    242242
  • trunk/bp-messages/bp-messages-classes.php

    r2450 r2502  
    191191        function get_recipient_links($recipients) {
    192192                if ( count($recipients) >= 5 )
    193                         return count($recipients) . __(' Recipients', 'buddypress');
    194 
    195                         for ( $i = 0; $i < count($recipients); $i++ ) {
    196                         $recipient_links[] = bp_core_get_userlink( $recipients[$i] );
     193                        return count( $recipients ) . __(' Recipients', 'buddypress');
     194
     195                foreach ( $recipients as $recipient ) {
     196                        $recipient_links[] = bp_core_get_userlink( $recipient->user_id );
    197197                }
    198198
  • trunk/bp-themes/bp-default/members/single/messages/messages-loop.php

    r2405 r2502  
    2626                                </td>
    2727                                <td width="1%" class="thread-avatar"><?php bp_message_thread_avatar() ?></td>
    28                                 <td width="30%" class="thread-from">
    29                                         <?php _e( 'From:', 'buddypress' ); ?> <?php bp_message_thread_from() ?><br />
    30                                         <span class="activity"><?php bp_message_thread_last_post_date() ?></span>
    31                                 </td>
     28
     29                                <?php if ( 'sentbox' != bp_current_action() ) : ?>
     30                                        <td width="30%" class="thread-from">
     31                                                <?php _e( 'From:', 'buddypress' ); ?> <?php bp_message_thread_from() ?><br />
     32                                                <span class="activity"><?php bp_message_thread_last_post_date() ?></span>
     33                                        </td>
     34                                <?php else: ?>
     35                                        <td width="30%" class="thread-from">
     36                                                <?php _e( 'To:', 'buddypress' ); ?> <?php bp_message_thread_to() ?><br />
     37                                                <span class="activity"><?php bp_message_thread_last_post_date() ?></span>
     38                                        </td>
     39                                <?php endif; ?>
     40
    3241                                <td width="50%" class="thread-info">
    3342                                        <p><a href="<?php bp_message_thread_view_link() ?>" title="<?php _e( "View Message", "buddypress" ); ?>"><?php bp_message_thread_subject() ?></a></p>
Note: See TracChangeset for help on using the changeset viewer.