Skip to:
Content

bbPress.org

Ticket #2519: loop-single-reply and content-single-topic-lead.2.patch

File loop-single-reply and content-single-topic-lead.2.patch, 1.5 KB (added by hardeepasrani, 11 years ago)
  • content-single-topic-lead.php

     
    6767
    6868                                <?php endif; ?>
    6969
     70                                <?php if ( ! bbp_is_topic_anonymous() ) : ?>
     71
     72                                        <div class="bbp-user-topic-count"><?php printf( __( 'Topics Started: %s',  'bbpress' ), bbp_get_user_topic_count( bbp_get_topic_author_id( $topic_id ) ) ); ?></div>
     73                                        <div class="bbp-user-reply-count"><?php printf( __( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count( bbp_get_topic_author_id( $topic_id ) ) ); ?></div>
     74
     75                                <?php endif; ?>
     76
    7077                                <?php do_action( 'bbp_theme_after_topic_author_details' ); ?>
    7178
    7279                        </div><!-- .bbp-topic-author -->
  • loop-single-reply.php

     
    5454
    5555                <?php endif; ?>
    5656
     57                <?php if ( ! bbp_is_reply_anonymous() ) : ?>
     58
     59                        <div class="bbp-user-topic-count"><?php printf( __( 'Topics Started: %s',  'bbpress' ), bbp_get_user_topic_count( bbp_get_reply_author_id( $reply_id ) ) ); ?></div>
     60                        <div class="bbp-user-reply-count"><?php printf( __( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count( bbp_get_reply_author_id( $reply_id ) ) ); ?></div>
     61
     62                <?php endif; ?>
     63
    5764                <?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
    5865
    5966        </div><!-- .bbp-reply-author -->