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

  1. Andrea Tarantini
    Posted 3 years 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 );


  2. metalmick
    Posted 2 years ago #

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

  3. Andrea Tarantini
    Posted 2 years 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:


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Friends On-Line
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.