Home Forums Plugin Support WP User Frontend Pro How can I cofirm users email with registration ?

This topic is: resolved

This topic contains 23 replies, has 2 voices, and was last updated by  Manuel 5 years, 1 month ago.

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #14856

    Manuel
    Member
    Post count: 32

    I posted this question in other section but someone marked it resolved…but it isn't 🙁

    I’m using PRO version but for some reason I can not post there !?

    I will like that user after they posted (and registered in same time ) gets email with link for confirmation.

    I tried this plugin:
    “DM Confirm Email”

    But it doesn’t work with “WP User Frontend Pro” plugin.

    Can someone please help ?

    Thanks

    ########
    I read this topic:

    http://wedevs.com/support/topic/register-and-theme-my-login/

    …and I also read post that is linked from there ( “Theme my login password forget issue with WP User Front-end” ).

    That line is already changed in wpuf.php.

    And it still doesn’t work.

    New registered user still doesn’t get confirmation email and instead he gets only username, password and login link.

    Can it be fixed please ?

    #14922

    Tareq Hasan
    Keymaster
    Post count: 2831

    Have you enabled Theme my login's custom email module?

    #14925

    Manuel
    Member
    Post count: 32

    Yes it is enabled and I also checked “E-mail Confirmation” in Moderation section.

    #14933

    Tareq Hasan
    Keymaster
    Post count: 2831

    I just checked it again, it works perfectly.

    In my theme my login, “Enable Custom E-mail” and “Enable User Moderation” module is checked. Also in Moderation, “E-mail Confirmation” is checked.

    After registering via WPUF register form, I got an activation mail. Upon clicked, it activated my account and sent me a new password mail. Everything works perfectly.

    As you're a developer, go to the /class/frontend-form-profile.php line 227.
    [php]
    if ( class_exists( ‘Theme_My_Login_Custom_Email') ) {
    do_action( ‘tml_new_user_registered', $user_id, $password );
    } else {
    wp_new_user_notification( $user_id, $password );
    }[/php]

    Do you see what happens here? If theme my login is present, we don't send the default user notification, we trigger theme my login action. But your are getting that notification, I don't know how.

    #14945

    Manuel
    Member
    Post count: 32

    You didn't read my message good 🙁

    I will like that user after they posted (and registered in same time )

    Not registering form…Posting form.

    It doesn't work with posting form.

    After registering while posting confirmation link isn't sent.

    This is where bu appears

    #14946

    Manuel
    Member
    Post count: 32
    This reply has been marked as private.
    #14949

    Tareq Hasan
    Keymaster
    Post count: 2831

    Oh, right.

    It doesn't work with auto registration while posting. The feature was never there, that's why it doesn't work.

    For this one, some changes needs to be made in /class/frontend-form-post.php, in line 188.
    Replace wp_new_user_notification( $user_id, $user_pass ); with this snippet below.

    [php]
    if ( class_exists( ‘Theme_My_Login_Custom_Email') ) {
    do_action( ‘tml_new_user_registered', $user_id, $user_pass );
    } else {
    wp_new_user_notification( $user_id, $user_pass );
    }
    [/php]

    #14954

    Manuel
    Member
    Post count: 32

    Changes are made…but it still doesn't work.

    User gets registered without confirming email and without Pending status.

    You can try it on link that I posted above and see it.

    #14970

    Tareq Hasan
    Keymaster
    Post count: 2831

    Thats a bummer! Same code is working for registration, not for posting form. I'll investigate more.

    #14997

    Manuel
    Member
    Post count: 32

    Did you find any solution for this bug maybe ?

    #15015

    Tareq Hasan
    Keymaster
    Post count: 2831

    Sorry, I didn't find anything yet.

    BTW, it's not a bug. It was never implemented on guest posting.

    #15028

    Manuel
    Member
    Post count: 32

    Sorry but you listed this in your features:

    Theme My Login compatible“.

    Theme my Login plugin has option to confirm email…and since it doesn't completely work with this plugin it is bug.

    Can you fix it please ?

    #15090

    Manuel
    Member
    Post count: 32

    Did you maybe found any solution ?

    #15096

    Tareq Hasan
    Keymaster
    Post count: 2831

    Okay, today I was able to sort this out.
    in frontend-form-post.php just add this lines:
    [php]$errors = new WP_Error();
    do_action( ‘register_post', $username, $guest_email, $errors );[/php]

    to just before of this line
    [php]$user_id = wp_create_user( $username, $user_pass, $guest_email );[/php]

    #15113

    Manuel
    Member
    Post count: 32

    Thank you Tareq…this works 🙂

    I used one more plugin to change email with details that wordpress is sending.

    “SB Welcome Email Editor”…in case you need it.

Viewing 15 posts - 1 through 15 (of 24 total)

The topic ‘How can I cofirm users email with registration ?’ is closed to new replies.