We are trying to setup a DE language version of the 'forgot password' e-mail, and have just edited the text, however the section for 'your new password is' just shows the site URL in the e-mail.
In the language.php file it just shows s%.
Any idea how we can ensure it sends a new password to the user instead?
Last edit: 8 years 6 months ago by krileon. Reason: Added [SOLVED] tag to subject
The email uses sprintf on its language string with the following sprintf replacements.
1 = username
2 = site url
3 = new password
If you just specify %s they'll replace in the order as parsed. So for example "Username: %s, Site: %s, Password: %s" would all be correct. If you want to move them around you need to use %#$s usage. So for example if you want the password you'd use %3$s. See sprintf documentation for further usage details.
We'll be replacing all these old strings in a future release when we refactor that code to make them proper substitutions.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.