adispiac
Forum Replies Created
-
Glad it worked! You can always support our work by leaving a review. 🙂
Thanks for the quick reply.
Are you using the free or pro version, as custom redirects is only part of pro?
Also, did you add the lostpassword_url parameter to the login shortcode like this below?[wppb-login lostpassword_url="www.example.com"]This will redirect on both lost password link below the form as well as the lost password error message link.
I’m asking this so I can replicate the scenario.
Have you tried to click the link and see where it takes you? The redirect is done after.
What version of the plugin are you using?Hi Nick,
You’re right, that’s a bug. Will be fixed in the update that will be released today.If you want to make the string translatable meanwhile, you can replace line 556 in profile-builder/features/functions.php with the one below:
$required_error = apply_filters('wppb_required_error' , __('This field is required','profilebuilder') , $field_title);You should know that we’ve setup a new environment for making it really easy to translate Profile Builder, without using Poedit, as well as downloading the translation files (just click Export at the bottom of the page).
It would be great if you could add your translated strings there, so that others users may benefit from them.
We’ll make sure to include the updated translation files in each new version release of the plugin.Thank you for your help with this!
Glad I could help Nick! You can always support our work by leaving a review.
From the Profile Builder UI no, but you can easily do it via code using the wppb_login_message filter to change the logged in message.
You could add something like this to your theme’s functions.php file:
/* Display avatar when user is logged in on Login page and Widget*/ function wppb_change_login_message( $logged_in_message, $user_ID){ $new_message = get_avatar($user_ID, 40); $new_message .= $logged_in_message; return $new_message; } add_filter('wppb_login_message','wppb_change_login_message', 10, 3);Yes, you can do that. All that’s needed for Teachers to be able to approve users is to have the capabilities below:
– manage_options
– list_users
– delete_users
– create_users
– add_users
– edit usersHi Juan,
I’ve already answered your email. Let’s continue the discussion there.Hi,
What are you using to send emails?
You said it works just fine on your other website using our plugin.It could be a hosting issue. Have you tried contacting them?
Now Profile Builder login shortcode also supports 3 parameters:
[wppb-login redirect="www.example.com" lostpassword_url="www.example.com" register_url="www.example.com"]So you can simply set up the password recovery page here, without using the filter above.
For keeping your users out of the WordPress dashboard, and setting up redirects on default WP page requests (Login, Register, Dashboard) have a look into Custom Redirects module.
Hi,
First and foremost I strongly advice against doing this, email passwords in plain text to your users, for obvious security reasons.You can achieve what you want by hooking into the “wppb_edit_profile_success” hook, which triggers after a successful edit profile form submit.
The code to add to your functions.php goes like this:
/* Send password via email after changing it on edit profile*/ add_action('wppb_edit_profile_success', 'wppb_email_user_changed_password'); function wppb_email_user_changed_password() { if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'edit_profile') { if (isset($_REQUEST['passw1']) && !empty($_REQUEST['passw1']) && !empty($_REQUEST['form_name'])) { $message = 'Your new password is: '.$_REQUEST['passw1']; wp_mail( $_POST['email'], 'New Password', $message); } } }Hi John,
Thanks for reporting this. I’ve replicated it and it’s definitely a bug.
I’ll add it to our development list and we’ll push for a fix in the next release.You could use the interface offered by Custom Redirects module from PRO, which allows you to redirect users after registration, as well as when trying to access the default WordPress register page.
Hi,
You can easily add a “Lost your password?” link below the login form by using a short-code argument like so:[wppb-login lostpassword_url="www.example.com/..."]The same goes for adding a “Register” link:
[wppb-login register_url="www.example.com/..."]You can find more about this in our documentation page.
1. Not possible with the current functionality of Profile Builder.
2. This might be possible, but it will require custom coding on your part.
The scenario goes like this:
– users register via Profile Builder on your website and are given the role: Subscriber
– they can then go to Edit Profile page and edit their profile information. Once they click update you change their user role to Contributors (needs custom coding).
– Using a membership plugin (like Members), you don’t allow Contributors to see the Edit Profile page, so once they clicked update they won’t have enough permissions to see/edit that page anymore.
– You create a front-end User Listing with Profile Builder, where you list only the users (authors)that have the role Contributor.3. Is possible if you change the user role (to contributor) after he edits the profile.
I think this setup will fit the scenario you described above.