Home › Forums › Legacy Support › Support queries › Other issues › Complete profile before proceeding
Tagged: profile
- This topic has 26 replies, 2 voices, and was last updated 5 years, 4 months ago by Mk.
-
AuthorPosts
-
August 1, 2019 at 4:42 pm #220772ICHARSSpectatorThank you for the plugin: https://github.com/VibeThemes/bp-profile-completion-status Is there a way to make it such that users need to complete the required field in the profile before they can proceed to courses? Or display a constant notification to complete the required field in profile?August 2, 2019 at 1:47 pm #220887MkModeratorYou can use announcement for this. Download and activate wplms Announcement plugin and send an announcement for each user.August 2, 2019 at 5:38 pm #220925ICHARSSpectatorHi, I am not looking to just make an announcement. What I want is to force users to complete their profile and upload profile photo before accessing the courses they have enrolled for. I tried using the plugin “BuddyPress Profile Completion” available at https://wordpress.org/plugins/buddypress-profile-completion/ but it seems to have no effect on wplms sites. For more details kindly check this thread on themeforest: https://themeforest.net/comments/21825199August 5, 2019 at 3:02 pm #221142MkModeratorPlease tell me the fields that you want to be filled? Also, share FTP credentials. In case we need to check on your setup. thank you.
For profile pic, this should work. add this code in your customizer. add_action('template_redirect',function (){ if(!is_user_logged_in()) return; $user_id = get_current_user_id(); if(!vibe_bpuser_has_avatar($user_id) ){ wp_redirect(bp_loggedin_user_domain().'/edit?error=complete_profile'); } }); add_action('bp_before_profile_content',function (){ if(!empty($_GET['complete_profile'])){ echo 'complete profile please'; } });August 8, 2019 at 7:44 pm #221666ICHARSSpectatorThis reply has been marked as private.August 9, 2019 at 1:45 pm #221780MkModeratorPlease Remove code from there and install and active wplms-customizer plugin and paste code in wplms-customizer.php file. This plugin will be required further too. All type of customization will take place in this plugin.August 10, 2019 at 7:12 am #221904ICHARSSpectatorThis reply has been marked as private.August 10, 2019 at 7:16 am #221906ICHARSSpectatorThis reply has been marked as private.August 11, 2019 at 9:55 am #221939ICHARSSpectatorJust for clarification, the features that I am looking for are exactly as the one's available in https://wordpress.org/plugins/buddypress-profile-completion/ I have tested this plugin with wplms, but there is some conflict. The error message or notice that must be displayed to members, whose profile is not complete, is not displayed when using wplms theme.August 12, 2019 at 6:50 am #221975MkModeratorUse this code and add in customizer.php . add_action('template_redirect',function (){ if(!is_user_logged_in()) return; $user_id = get_current_user_id(); if(!get_avatar($user_id) || get_avatar_url($user_id) == VIBE_URL.'/assets/images/avatar.jpg'){ wp_redirect(bp_loggedin_user_domain().'profile/change-avatar/?check=complete_profile'); } }); add_action('bp_before_profile_content',function (){ if(!empty($_GET['check']) && $_GET['check'] == 'complete_profile'){ echo 'COMPLETE PROFILE PLEASE'; } });
I am unable to update code as it is advising to use FTP/sFTP. Please update code in your plugins -> wplms-customizer -> wplms-customizer.phpAugust 12, 2019 at 8:00 am #221993ICHARSSpectatorThis reply has been marked as private.August 12, 2019 at 8:01 am #221994ICHARSSpectatorThis reply has been marked as private.August 12, 2019 at 8:09 am #221998ICHARSSpectatorIf I understand the code correctly, it will only work for profile avatar. I need it to work for all fields that are required in the buddypress profile. Also is it possible to not trigger this code when the user is on woocommerce checkout, woocommerce cart and woocommerce thank you pages.August 13, 2019 at 1:35 pm #222221MkModeratorAs I asked you before, If you want it for other fields too please reply. I will have to add custom code for them too. Please tell me for which fields you want to check the required option.August 14, 2019 at 10:36 am #222301ICHARSSpectatorThe fields that I need to be completed include:- Name
- Bio
- Phone
- Date of Birth
- Profession
- City
-
AuthorPosts
- The topic ‘Complete profile before proceeding’ is closed to new replies.