Replies
Ok, I think I understand now. The function you gave me was designed to work WITH the buddy dev profile completion widget.
The problem I have is that I’m using an additional profile field group. That breaks the buddy dev profile completion widget:
Basic Info (collected at registration)
More About Me (user fills in later)So, I need the buddy dev profile completion widget to handle an extra profile field group
OR
I need a function based on
/buddyboss-platform/bp-xprofile/classes/class-bp-xprofile-profile-completion-widget.phpThat can email the admin when a user’s profile reaches 100% as measured by that widget:
if ( 100 === (int) $user_progress[‘completion_percentage’]That widget can handle multiple profile field groups.
- This reply was modified 1 year, 5 months ago by John.
Hi Ravi, the relevant code in the Buddyboss template is found in: /buddyboss-theme/inc/plugins/elementor/widgets/bb-profile-completion.php
Line 962:
if ( ( $settings[‘switch_hide_widget’] == ‘yes’ || ! isset( $settings[‘switch_hide_widget’] ) ) && ( $user_progress[‘completion_percentage’] == 100 ) ) { ?>
It is that $user_progress[‘completion_percentage’] == 100 that I need to trigger the sending of the email.
Hi Ravi, that’s very generous of you to provide this code.
I’ve tried the code, but all it can do is send an email anytime a user updates any aspect of their profile, which is not what I need. I need just one email sent when ALL aspects of the profile are completed – as measured but the Buddyboss profile completion widget.
Currently, the BB profile completion widget can be set to disappear when the profile is complete, so there is an existing part of the BB code that knows when a person has completed their profile…
I have opened a ticket with Buddyboss:
“Hi, I want to create a function that emails the site admin when a user completes their profile – as measured by the Buddyboss profile completion widget. The widget can be set to disappear when the profile is complete. Is there a way to call on that status?”
I will follow up here when I get an answer from them.
Thank you!
I’d like to piece this apart if I may:
Just having the existing Buddydev profile completion plugin:
1. Redirect users to one custom field set completion after photo upload
2. Redirect users to custom URL after #1Would do a lot….
The existing plugin is so close to that, and I think that solves a serious problem with the current sign up process.
Regarding a multistep registration form, that is on the Buddyboss roadmap:
https://www.buddyboss.com/roadmap/
(not sure if you use Buddyboss John)One more thing: just thinking out loud here. What I’ve described above is good. What would be excellent is this:
Site owner has the option in the plugin to only require profile photo and/or additional field set profile completion when users are trying to access a certain part of the website (i.e., the members directory).
Would be great to require a photo right away, and then require additional profile field completion when users try to access member directory.
That’s just my needs. I don’t know if others would want that. Failing this, I’d be happy with what I mention in the previous post.