Forum Replies Created
-
AuthorPosts
-
askiMember
Hi Sourov,
any additional diagnosis with the WP Mail SMTP plugin?
The WP Mail SMTP developer said they tested with the Free version of User Meta and had no issues.
Anything I can tell them in addition?askiMemberHi,
I will set up a temp admin using password:
The rest I’ll send you via email.
Please be aware this is a live site when you do some testing.
Thanks!askiMemberHi Sourov,
I do not user any other reset password or registration plugins.
It has been working flawlessly for a long time but now it does not anymore.
I just tried the override function from the Add-ons anyway: No change, unfortunately.Thanks,
AlexaskiMemberHi,
is there still support around here?
Sorry for being a little impatient. 🙂Regards,
AleaskiMemberthat’s it.
askiMemberhere’s the code …
global $userMeta;
global $em_temp_user_data;
$user_id = $em_temp_user_data['user_id'];
$user = new WP_User($user_id);$registration = $userMeta->getSettings( ‘registration’ );
$user_activation = $registration[ ‘user_activation’ ];if( in_array( $user_activation, array( ’email_verification’, ‘both_email_admin’ ) ) )
{$login = $userMeta->getSettings( ‘login’ );
if( !$login[ ‘login_page’ ] ) return;$hash = get_user_meta( $user->ID, $userMeta->prefixLong . ’email_verification_code’, true );
if( !$hash ){
$hash = wp_hash_password( $user->user_email );
update_user_meta( $user->ID, $userMeta->prefixLong . ’email_verification_code’, $hash );
}$url = get_permalink( $login[ ‘login_page’ ] );
$url = add_query_arg( array(
‘action’ => ’email_verification’,
’email’ => $user->user_email,
‘key’ => urlencode( $hash ),
), $url);echo ‘Bitte verifiziere Deine Email-Adresse über diesen Link: Email-Addresse verifizieren‘;
}
else if( in_array( $user_activation, array( ‘admin_approval’, ‘both_email_admin’ ) ) )
{
echo ‘Ein Administrator muss Dein Konto noch aktivieren.’;
}askiMemberaskiMemberUpdate: I switched the error texts in umSupportProModel.php as a workaround, but there seem to be more things wrong in this corner of coding.
User Auto-Activation: works fine
User Activation by verifying Email: works fine
User Activation by admin approval: seems to work fine. Have not tested it enough.
User Activation by verifying Email and admin approval: User gets automatically activated without approval of admin and without email verification.askiMemberHere’s the solution, found it out by myself:
Modify the file
wp-content/plugins/events-manager/templates/emails/new-user.phpInclude the following code into new-user.php:
—> see next reply to the post <—
Save new-user.php to the following path:
wp-content/themes//plugins/events-manager/emailsIf the path does not exist, create it.
Done.
Then you will be fine registering accounts from within the “events manager” plugin.
Alex
-
AuthorPosts