WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] User Activation email not sent, User role not switching (8 posts)

  1. ozbassplayer
    Member
    Posted 1 year ago #

    Hi Jeff.
    I'm using v 6.2.3 of Theme My Login.
    I'm also using FormidablePro plugin to collect the user reg.
    (it does this perfectly well, and stores the extra field values as user meta)

    I have set up the default new user status as 'pending' in both FormidablePro and the WP general settings.

    I want to use TML to fire off an 'activate your account' email to the new user, with a link in the email that will switch the user's role to 'Subscriber'.

    I have looked all over and can't find a solution. I'm getting desperate here!!

    http://wordpress.org/extend/plugins/theme-my-login/

  2. ozbassplayer
    Member
    Posted 1 year ago #

    BTW I have turned on all the Modules.
    In the Moderation area I have set the choice to Email Confirmation.
    In the Email area I have created messages for all situations:
    ie:

    New User Activation at MYWEBSITE
    Activation URL : %activateurl%
    User Name : %user_login%
    User Email : %user_email%
    Site URL : %siteurl%
    User IP : %user_ip%

    But somehow the activation email doesn't fire. Even if I try and login with the new credentials and get the 'user isn't activated' message, click the link, check my email and then paste the link, I get a message that the user is activated, but unfortunately the user role is still 'Pending'

  3. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    This is because you set the default role to "Pending". TML sets a user to "Pending" automatically when Moderation is active. Then, once an account is activated, it sets that account to the default role - thus, in your case, keeping them "Pending". Set the default role to what you want it to be after activation.

  4. ozbassplayer
    Member
    Posted 1 year ago #

    Jeff that's almost right.
    I set the roles as you suggested and can see that could solve part of the issue.
    However the first activation email still isn't being sent - the only way I can trigger it is by trying to enter a password, failing, getting the 'you haven't activated your account yet' message, then clicking the link in that message to force the activation email to actually be sent.

    I noticed in another thread that others were having the same issue, but I have yet to see a solution. Please re-open this thread.

    the dev website is:
    http://activitybuddies.jrdesign.com.au
    feel free to sign up etc and see if you get the activation email.
    You won't.

    Where should I plug in the line to fire off an activation email after the user has registered?

  5. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    It looks to me like your using some sort of form creation plugin, such as Gravity forms? If so, that is why. It doesn't fire the hooks TML does to make this happen.

  6. ozbassplayer
    Member
    Posted 1 year ago #

    Yes, Jeff, I am using Formidable forms for registration.
    Is there a way I can trigger the TML hooks, and if so, what?

  7. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    The hook is tml_new_user_registered.

  8. ozbassplayer
    Member
    Posted 11 months ago #

    Sorry Jeff, I didn't get back to this thread till now. Had to use something else.
    But now I have a new client that requires similar stuff.
    Where would I put this hook?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic