Hello there, I built an LMS platform on the site with Tutor LMS. Also, I use the Social discussion side with the wpForo. but I have an issue with user profile updates like uploading profile pictures or about descriptions, on the Tutor dashboard don't change anything like the profile picture name bio. I tried with chat GPT but doesn't work,
PS: I use the Ultimate member plugin (if this will help me to integrate 3 plugins with each other)
Ai write me this code:
function wpforo_do_hook_update_profile_bio($user_id) {
$bio = get_user_meta($user_id, '_tutor_profile_bio', true);
update_user_meta($user_id, '_tutor_profile_bio', $bio);
}
add_action('personal_options_update', 'wpforo_do_hook_update_profile_bio');
add_action('edit_user_profile_update', 'wpforo_do_hook_update_profile_bio');
function wpforo_avatar_sync($avatar, $id_or_email, $size, $default, $alt) {
// Your WPForo logic to get avatar URL
$wpforo_avatar_url = WPF()->member->get_avatar_url($user_id);
// Update Tutor LMS avatar
update_user_meta($user_id, '_tutor_profile_picture', $wpforo_avatar_url);
// Return the original avatar
return $avatar;
}
add_filter('get_avatar', 'wpforo_avatar_sync', 10, 5);
function wpforo_do_hook_update_profile_bio($user_id) {
// Get the bio content from WPForo
$bio_content = get_user_meta($user_id, '_tutor_profile_bio', true);
// Update the Tutor LMS bio content
update_user_meta($user_id, '_tutor_profile_bio', $bio_content);
}
add_action('personal_options_update', 'wpforo_do_hook_update_profile_bio');
add_action('edit_user_profile_update', 'wpforo_do_hook_update_profile_bio');
Is this a recurrent error?
Hi @chingiz ,
Hello! It seems you're discussing an integration or synchronization between Tutor LMS and wpForo, but your messages are not entirely clear. Could you please provide more details or clarify your request so I can assist you better?
Lastly they write me back this:
You are checking the wrong field. On WordPress profile picture loads from https://gravatar.com/ . Also, we don't provide any customization-related support. So, in that case, we can't help you anymore.
As far as I understand, you are requesting customization and the synchronization of profiles between your Learning Management System (LMS) and wpForo. For such specific requests and customizations, I recommend reaching out to our pro support team.