Skip to:
Content

BuddyPress.org

Changeset 2434


Ignore:
Timestamp:
01/24/2010 10:37:51 PM (17 years ago)
Author:
apeatling
Message:

Fixing missing message thread title.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-templatetags.php

    r2408 r2434  
    555555                $this->thread = new BP_Messages_Thread( $thread_id, true );
    556556                $this->message_count = count( $this->thread->messages );
     557
     558                $last_message_index = $this->message_count - 1;
     559                $this->thread->last_message_id = $this->thread->messages[$last_message_index]->id;
     560                $this->thread->last_message_date = $this->thread->messages[$last_message_index]->date_sent;
     561                $this->thread->last_sender_id = $this->thread->messages[$last_message_index]->sender_id;
     562                $this->thread->last_message_subject = $this->thread->messages[$last_message_index]->subject;
     563                $this->thread->last_message_content = $this->thread->messages[$last_message_index]->message;
    557564        }
    558565
  • trunk/bp-themes/bp-default/_inc/global.js

    r2433 r2434  
    251251                if ( null == filter )
    252252                        var filter = '-1';
     253
     254                /* If there's a hash URL, try and use it. */
     255                if ( location.hash.length )
     256                        var scope = location.hash.substr( 1, location.hash.length - 2 );
    253257
    254258                /* Save the type and filter to a session cookie */
  • trunk/bp-themes/bp-default/activity/index.php

    r2430 r2434  
    2323
    2424                                                <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    25                                                         <li id="activity-friends"><a href="<?php echo site_url( BP_ACTIVITY_SLUG . '/#my-friends/' ) ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li>
     25                                                        <li id="activity-friends"><a href="<?php echo site_url( BP_ACTIVITY_SLUG . '/#friends/' ) ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li>
    2626                                                <?php endif; ?>
    2727
    2828                                                <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    29                                                         <li id="activity-groups"><a href="<?php echo site_url( BP_ACTIVITY_SLUG . '/#my-groups/' ) ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
     29                                                        <li id="activity-groups"><a href="<?php echo site_url( BP_ACTIVITY_SLUG . '/#groups/' ) ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
    3030                                                <?php endif; ?>
    3131
    3232                                                <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
    33                                                         <li id="activity-favorites"><a href="<?php echo site_url( BP_ACTIVITY_SLUG . '/#my-favorites/' ) ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ) ?>"><?php printf( __( 'My Favorites (<span>%s</span>)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
     33                                                        <li id="activity-favorites"><a href="<?php echo site_url( BP_ACTIVITY_SLUG . '/#favorites/' ) ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ) ?>"><?php printf( __( 'My Favorites (<span>%s</span>)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
    3434                                                <?php endif; ?>
    3535
  • trunk/bp-themes/bp-default/members/single/messages/single.php

    r2409 r2434  
    2424
    2525                                        <?php bp_the_thread_message_sender_avatar( 'type=thumb&width=30&height=30' ) ?>
    26                                         <h3><a href="<?php bp_the_thread_message_sender_link() ?>" title="<?php bp_the_thread_message_sender_name() ?>"><?php bp_the_thread_message_sender_name() ?></a> <span class="activity"><?php bp_the_thread_message_time_since() ?></span></h3>
     26                                        <strong><a href="<?php bp_the_thread_message_sender_link() ?>" title="<?php bp_the_thread_message_sender_name() ?>"><?php bp_the_thread_message_sender_name() ?></a> <span class="activity"><?php bp_the_thread_message_time_since() ?></span></strong>
    2727
    2828                                        <?php do_action( 'bp_after_message_meta' ) ?>
     
    6161                                                <?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ) ?>
    6262
    63                                                 <h3><?php _e( 'Send a Reply', 'buddypress' ) ?></h3>
     63                                                <strong><?php _e( 'Send a Reply', 'buddypress' ) ?></strong>
    6464                                        </div>
    6565
Note: See TracChangeset for help on using the changeset viewer.