Support » Plugin: Customize WordPress Emails and Alerts - Better Notifications for WP » Password url shortcode not working

  • Resolved raevels

    (@raevels)


    hi! I am trying out the plugin to set an email for new users.

    I’m using these shortcodes in the email area

    Your username: [user_login]
    Choose your password via: [password_url]

    The user login is showing the right user in the sent email, but the [password_url] just shows as text.

    I am using the setting Transactional > new user registration (using the add standard and it gives these two shortcode). Using WordPress 5.6 with Divi theme

    What can I do to fix this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @raevels,
    Thanks for your message.

    If you deactivate the Divi theme, does the New User Registration – For User notification work as expected?

    Thread Starter raevels

    (@raevels)

    hi! thanks for your reply! Some updates seem to have changed, I do get the right URL now, its just not a clickable link. Maybe you have a tip for that.

    Could I also ask, is it possible to use a custom frontend user pass reset page instead of the standard page that is used? I’m using the plugin to send new users their credentials and they are confused when getting to a bare wordpress page.

    THanks a lot for your response!

    Plugin Author bnfw

    (@voltronik)

    Hi @raevels,
    You can make shortcodes into links using something like this:

    <a href="[password_url]">Set Your Password</a>

    With regards to the front-end page, you will most likely need to create a regex redirect rule to convert the default WordPress URL into your desired one.

    • This reply was modified 10 months ago by bnfw.
    Thread Starter raevels

    (@raevels)

    Thank you so much!

    Plugin Author bnfw

    (@voltronik)

    Hi @raevels,
    Great! Glad you got it working.

    If you like BNFW and the support, please feel free to leave an honest review.

    Thread Starter raevels

    (@raevels)

    Did just that! thanks, its a really nice plugin.

    Still haven’t figured out the reset pass URL redirect, but that might be my short knowledge of real programming work tho. πŸ™‚

    If this interests you:
    The Better notifications plugin generates a reset pass url like this: website.com/wp-login.php?action=rp&key=XDdPzrFh2mN8eFSvVQHk&login=Geertje

    The frontend login plugins I’ve tried all create their own URL structure, this is the example of what I have working now:
    website.com/pass-reset/?somresetpass=true&somfrp_action=rp&key=Y7H3mIQHOQHo2msGevmY&uid=21

    Maybe they both map into the wordpress generic reset pass database, but I’m not sure how a redirect would work. Right now I just direct a new user to the reset password page of the Frontend Login plugin, and manually let them reset again, which isn’t ideal.

    Alright thats it for now, sorry bothering you lol. πŸ™‚

    • This reply was modified 10 months ago by raevels.
    Plugin Author bnfw

    (@voltronik)

    Hi @raevels,
    Thanks for the kind review.

    What you need to do is set-up a regex redirect that will take this URL:
    website.com/wp-login.php?action=rp&key=XDdPzrFh2mN8eFSvVQHk&login=Geertje

    and turn it into this URL:
    website.com/pass-reset/?somresetpass=true&somfrp_action=rp&key=XDdPzrFh2mN8eFSvVQHk&login=Geertje

    Essentially, only retaining the string after key=

    Does this help?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Password url shortcode not working’ is closed to new replies.