Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2011 07:39:38 PM (13 years ago)
Author:
boonebgorges
Message:

Creates queries for member Replied To tab. References #3177

File:
1 edited

Legend:

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

    r4211 r4301  
    230230    if ( !empty( $bp->displayed_user->id ) )
    231231        $user_id = $bp->displayed_user->id;
     232   
     233    // "Replied" query must be manually modified
     234    if ( 'replies' == bp_current_action() ) {
     235        $user_id = 0; // User id must be handled manually by the filter, not by BB_Query
     236       
     237        add_filter( 'get_topics_distinct',   'bp_forums_add_replied_distinct_sql', 20 );
     238        add_filter( 'get_topics_join',       'bp_forums_add_replied_join_sql', 20 );
     239        add_filter( 'get_topics_where',      'bp_forums_add_replied_where_sql', 20  );
     240    }
    232241
    233242    // If we're in a single group, set this group's forum_id
Note: See TracChangeset for help on using the changeset viewer.