Change password form shortcode doesn't work
Support › MB User Profile › Change password form shortcode doesn't workResolved
- This topic has 7 replies, 6 voices, and was last updated 3 years ago by
BucketPress.
-
AuthorPosts
-
June 16, 2022 at 5:17 PM #36530
stefanocorradini
ParticipantHi,
I put this shortcode in my "change password" page but it does not output anything:
[mb_user_profile_info id="rwmb-user-info"]
Everything else works (the login form, default user fields form ...), only this shortcode doesn't display anything.
I'm using the latest version of MB User Profile (2.0.2)
I also tried on a different WP site and I have the same issueKind regards
June 16, 2022 at 10:44 PM #36537Long Nguyen
ModeratorHi,
Thanks for your feedback.
There was an issue with the change password form and I've escalated the development team to fix it in the next update.
June 22, 2022 at 2:49 AM #36619Joe Anderson
ParticipantHas there been any update to this? I'm still getting "Error: No meta boxes are available!"
June 24, 2022 at 1:03 PM #36658BucketPress
ParticipantHaving the same issue too. System is using the latest Metabox 5.64, and AIO 1.16.2. Not sure whether the latest bug fix that fixes metabox overriding user profile fields is supposed to solve this issue? But I'm still experiencing the same problem. The shortcode renders nothing. This thread should not be marked as 'resolved' yet.
June 24, 2022 at 7:31 PM #36663Joe Anderson
ParticipantI found a solution to this. I pulled the password fields from within the user profile plugin's code and added it to my own metabox. Use the following shortcode and metabox setup. You should be able to add additional user profile fields as listed in the documentation as well:
[mb_user_profile_info id="your-metabox-id"]
$meta_boxes[] = [ 'title' => '', 'id' => 'your-metabox-id', 'type' => 'user', 'fields' => [ [ 'id' => 'first_name', 'name' => esc_html__( 'First Name', 'yourdomain' ), 'type' => 'text', ], [ 'id' => 'last_name', 'name' => esc_html__( 'Last Name', 'yourdomain' ), 'type' => 'text', ], [ 'id' => 'user_email', 'name' => esc_html__( 'Email', 'yourdomain' ), 'type' => 'text', ], [ 'name' => __( 'New Password', 'yourdomain' ), 'id' => 'user_pass', 'type' => 'password', 'required' => true, 'desc' => '<span id="password-strength" class="rwmb-password-strength"></span>', ], [ 'name' => __( 'Confirm Password', 'yourdomain' ), 'id' => 'user_pass2', 'type' => 'password', 'required' => true, ], ], ];
June 27, 2022 at 10:25 PM #36685Matej Mohar
ParticipantIt's also not working for me so for now, I'm using @Joe solution. I can assure it was working before, so I guess there was an update in the meantime.
Best regards, Matej
July 7, 2022 at 7:15 AM #36846Stephen C.
ParticipantStill not fixed yet? This is kind of an important issue and it has been about 3 weeks since this thread had been started.
July 14, 2022 at 3:15 PM #37006BucketPress
ParticipantLatest updates to Metabox 5.65 and AIO 1.16.3 solves the issue.
-
AuthorPosts
- You must be logged in to reply to this topic.