• BuddyPress Friends On-Line conflicts with BP Profile Search. When BuddyPress Friends On-Line is activated, any search submitted by BP Profile Search returns all the members.

    I believe the problem lies in the function fol_get_online, that always filters the data, while in my opinion it should filter only when necessary. The code fragment follows:

    add_filter('bp_core_get_users', 'fol_get_online', 10, 2);
    function fol_get_online($data, $params){
        extract( $params, EXTR_SKIP );
        if(bp_is_user_friends() && bp_is_current_action( 'online') ){
            $type    = 'online';
            $user_id = bp_loggedin_user_id();
        }
        return BP_Core_User::get_users( $type, $per_page, $page, $user_id, $include, $search_terms, $populate_extras, $exclude, $meta_key, $meta_value );
    }

    https://www.ads-software.com/extend/plugins/buddypress-friends-on-line/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin conflicts with BP Profile Search’ is closed to new replies.