Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #4347, comment 5


Ignore:
Timestamp:
07/11/2012 08:26:03 PM (14 years ago)
Author:
frank13

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4347, comment 5

    initial v1  
    44
    55I can't seem to figure out how to override it short of my hard coded hack @boonebgorges
     6
     7This is what I added to my functions.php in my theme:
     8`function ub_core_get_users_sql() {
     9        if ( 'online' == $type )
     10                $sql['where_online'] = "AND DATE_ADD( um.meta_value, INTERVAL 15 MINUTE ) >= UTC_TIMESTAMP()";  // 2012-05-15 D.Kozar increased value to 15 minutes
     11}
     12add_filter( 'bp_core_get_paged_users_sql', 'ub_core_get_users_sql' );
     13add_filter( 'bp_core_get_total_users_sql', 'ub_core_get_users_sql' );
     14`
     15
     16But I got "Sorry, no members were found." in my BuddyPress site