WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Friends On-Line
Plugin conflicts with BP Profile Search (3 posts)

  1. Andrea Tarantini
    Member
    Posted 1 year ago #

    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 );
    }

    http://wordpress.org/extend/plugins/buddypress-friends-on-line/

  2. metalmick
    Member
    Posted 2 months ago #

    I'm having the same problem. Any ideas anyone? Did you find a solution Andrea?

  3. Andrea Tarantini
    Member
    Posted 2 months ago #

    Unfortunately BuddyPress Friends On-Line hasn't been fixed, and the incompatible code is still there.

    You can fix it yourself as explained in my page:

    http://dontdream.it/bp-profile-search/incompatible-plugins/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.