Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/29/2011 10:43:45 PM (13 years ago)
Author:
boonebgorges
Message:

Fixes total found topic count for Started Topics and Replied To tabs on user profiles. Adds template tags to check whether you're looking at Started Topics or Replied To. Fixes class name in members/single/forums.php so that AJAX pagination works correctly. Fixes #3431

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-template.php

    r5030 r5047  
    142142            } else if ( !empty( $bp->groups->current_group ) ) {
    143143                $topic_count = (int)groups_total_public_forum_topic_count( $type );
     144            } else if ( bp_is_user_forums_started() ) {
     145                $topic_count = bp_forums_total_topic_count_for_user( bp_displayed_user_id() );
     146            } else if ( bp_is_user_forums_replied_to() ) {
     147                $topic_count = bp_forums_total_replied_count_for_user( bp_displayed_user_id() );
    144148            } else {
    145149                // For forum directories, get a true count
Note: See TracChangeset for help on using the changeset viewer.