Skip to:
Content

bbPress.org

Ticket #1251: profile.php.diff

File profile.php.diff, 1.5 KB (added by Gautam Gupta, 16 years ago)
  • profile.php

     
    3939<?php foreach ($posts as $bb_post) : $topic = get_topic( $bb_post->topic_id ) ?>
    4040<li<?php alt_class('replies'); ?>>
    4141        <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> -
    42         <?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) printf(__('You last replied: %s ago'), bb_get_post_time()); else printf(__('User last replied: %s ago'), bb_get_post_time()); ?> |
     42        <?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) printf(__('You last replied: <a href="%1$s">%2$s ago</a>'), get_post_link(), bb_get_post_time()); else printf(__('User last replied: <a href="%1$s">%2$s ago</a>'), get_post_link(), bb_get_post_time()); ?> |
    4343
    4444        <span class="freshness"><?php
    4545                if ( bb_get_post_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
    46                         printf(__('Most recent reply: %s ago'), get_topic_time());
     46                        printf(__('Most recent reply: <a href="%1$s">%2$s ago</a>'), get_topic_last_post_link(), get_topic_time());
    4747                else
    4848                        _e('No replies since');
    4949        ?></span>
     
    6868
    6969        <span class="freshness"><?php
    7070                if ( get_topic_start_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
    71                         printf(__('Most recent reply: %s ago'), get_topic_time());
     71                        printf(__('Most recent reply: <a href="%1$s">%2$s ago</a>'), get_topic_last_post_link(), get_topic_time());
    7272                else
    73                         _e('No replies.');
     73                        _e('No replies since');
    7474        ?></span>
    7575</li>
    7676<?php endforeach; ?>