Replies
- Ravi on May 17, 2019 at 7:25 am in reply to: [Resolved] Issue with profile photo (BuddyPress Profile Completion) #23020
Hi,
I am sorry but we can not have two different set of rules for users registered via two different methods. The best way will be to go with the minimum common requirement.
I will suggest keeping the requirement to photo only to keep it working.
Regards
Ravi Hello Barry,
Thank you for the acknowledgement. Please give it a try the following code and let me know if it works or not.
function buddydev_filter_activities_query_args( $r ) { $searched_category = empty( $r[ 'search_terms' ] ) ? false : $r[ 'search_terms' ]; if ( ! $searched_category ) { return $r; } $r['search_terms'] = false; if ( empty( $r['meta_query'] ) ) { $r['meta_query'] = array( array( 'key' => 'bpcat', 'value' => $searched_category, ) ); } else { array_push( $r['meta_query'], array( 'key' => 'bpcat', 'value' => $searched_category, ) ); } return $r; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_filter_activities_query_args' );
Regards
RaviHello Bec Las,
Thank you for posting. By force profile images are you talking about “BuddyPress Force Profile Photo”?. If yes, you can use the following code in your active theme “functions.php” file to skip redirection in case of welcome page
/** * Do not redirect user on welcome page. * * @param bool $skip should we skip or redirect. * * @return bool */ function buddydev_skip_redirect_on_welcome_page( $skip ) { // Page ID, title, slug can be used. if ( is_page( 'welcome' ) ) { $skip = true; } return $skip; } add_filter( 'bp_force_profile_photo_skip', 'buddydev_skip_redirect_on_welcome_page' );
Regards
RaviHello Barry,
Try the following code and let me know if it works or not.
function buddydev_filter_activities_query_args( $r ) { $searched_category = empty( $_REQUEST[ 'activity_search' ] ) ? false : $_REQUEST[ 'activity_search' ]; if ( ! $searched_category ) { return $r; } $r['search_terms'] = false; $category_args = array( 'key' => 'bpcat', 'value' => $searched_category, ); $r[ 'meta_query' ] = empty( $r['meta_query'] ) ? array( $category_args ) : array_push( $r['meta_query'], $category_args ); return $r; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_filter_activities_query_args' );
Regards
Ravi- Ravi on May 16, 2019 at 5:04 am in reply to: [Resolved] Issue with profile photo (BuddyPress Profile Completion) #22999
Hello Imborx,
Thank you for sharing the details. I have checked and noticed that Facebook register plugin has their on redirect which is conflicting with the “BuddyPress Profile Completion” as with Facebook register there is not all required fields are filled by user. If I deactivate “BuddyPress Profile Completion” option not to redirect if required are not fulfilled then all goes well. User gets redirected to their profile.
Regards
Ravi - Ravi on May 15, 2019 at 11:41 am in reply to: [Resolved] Issue with profile photo (BuddyPress Profile Completion) #22992This reply has been marked as private.
- Ravi on May 13, 2019 at 12:26 pm in reply to: How to show description of notifications in dropdown? #22964
Hello Siyah,
We have added shortcode feature to the plugin. Please download the latest version of pluign. For more detail about shortcode option you can check the following link.
https://buddydev.com/buddypress-notification-widget-shortcode-integration/
Regards
Ravi - Ravi on May 13, 2019 at 11:23 am in reply to: [Resolved] Issue with profile photo (BuddyPress Profile Completion) #22963
Hello Imborx,
Thank you for sharing the details. Please download the latest version of the plugin and paste the following code in your active theme “functions.php” file. Please let me know if it works or not.
/** * If user has not uploaded any avatar and has facebook id set. Do not display has avatar message * * @param bool $has_avatar Has uploaded avatar or not. * @param int $user_id User id. * * @return bool */ function buddypress_profile_completion_has_uploaded_avatar( $has_avatar, $user_id ) { if ( ! $has_avatar && get_user_meta( $user_id, '_fbid', true ) ) { $has_avatar = true; } return $has_avatar; } add_filter( 'buddypress_profile_completion_has_uploaded_avatar', 'buddypress_profile_completion_has_uploaded_avatar', 10, 2 );
Regards
Ravi Hi Vivek,
We have updated the plugin. Please download the latest version of plugin. Please do let me know if works or not. You can download the plugin form the following url:
https://buddydev.com/plugins/facebook-like-user-activity-stream-for-buddypress/
Regards
Ravi- Ravi on May 13, 2019 at 9:14 am in reply to: [Resolved] Facebook like activity feed plugin – my-stream-activity filter broken #22960
Hi,
We have updated the plugin. Please download the latest version of plugin. Please do let me know if works or not. You can download the plugin form the following url:
https://buddydev.com/plugins/facebook-like-user-activity-stream-for-buddypress/
Regards
Ravi