Skip to:
Content

BuddyPress.org

Changes between Version 2 and Version 3 of Ticket #4347, comment 5


Ignore:
Timestamp:
07/11/2012 08:27:20 PM (12 years ago)
Author:
frank13
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4347, comment 5

    v2 v3  
    66
    77This is what I added to my functions.php in my theme:
    8 `function ub_core_get_users_sql() {
     8`function my_bp_core_get_users_sql() {
    99        if ( 'online' == $type )
    1010                $sql['where_online'] = "AND DATE_ADD( um.meta_value, INTERVAL 15 MINUTE ) >= UTC_TIMESTAMP()";  // 2012-05-15 increased value to 15 minutes
    1111}
    12 add_filter( 'bp_core_get_paged_users_sql', 'ub_core_get_users_sql' );
    13 add_filter( 'bp_core_get_total_users_sql', 'ub_core_get_users_sql' );
     12add_filter( 'bp_core_get_paged_users_sql', 'my_bp_core_get_users_sql' );
     13add_filter( 'bp_core_get_total_users_sql', 'my_bp_core_get_users_sql' );
    1414`
    1515