Skip to Content Skip to Menu

[SOLVED] Customizing the Registration Approval email

3 years 11 months ago - 3 years 10 months ago #321864 by researchware
We are running Joomla 3.9.23 and CB 2.4.7. We have a custom fields where we ask questions on the new user Registration form. This is similar to being able to ask one or more questions on a request to Join a Facebook Group and is used as a filter to weed out spammers and trolls.

We also have Admin/Moderator approval of new Registrations. We would like to customize the email that is send to admins/moderators notifying them of a new registration to include the custom question fields. I can not seem to find a way to customize the notification email to admins/moderators of a new registration? Is there a way and can you point me to it?

Thank you.
Last edit: 3 years 10 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 11 months ago #321885 by krileon
Replied by krileon on topic Customizing the Registration Approval email
There's no parameter for the new user registration email. To modify it you'll need to use a language override. See the below on how to use language overrides.

www.joomlapolis.com/blog/kyle/18701-language-overrides-have-arrived

If the user requires approval it will be the language key UE_REG_ADMIN_PA_MSG otherwise it will be UE_REG_ADMIN_MSG.


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.

Please Log in or Create an account to join the conversation.

3 years 10 months ago #322119 by researchware
Replied by researchware on topic Customizing the Registration Approval email

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/joomlapolis824/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 1435

krileon wrote: There's no parameter for the new user registration email. To modify it you'll need to use a language override. See the below on how to use language overrides.

www.joomlapolis.com/blog/kyle/18701-language-overrides-have-arrived

If the user requires approval it will be the language key UE_REG_ADMIN_PA_MSG otherwise it will be UE_REG_ADMIN_MSG.


Thank you, but I think I am still missing something. I apologize for my lack of CB skills. We do require admin approval on registrations, so I follow that I need to go to CB: Plugin Management > Default Language (English) > Overrides tab and use "UE_REG_ADMIN_PA_MSG" as the Key and then enter the content in the Text file that I want in the email. The current email that is sent is of the form:
A new user has signed up at www.fudgerpg.com and requires approval.
This email contains their details

Name - <name>
E-mail - <email>
Username - <username>


Please do not respond to this message as it is automatically generated and is for informational purposes only.


NOTE: This email was automatically generated from FudgeRPG.com ( www.fudgerpg.com ).
So, in the where does the <name>, <email>, and <username> come from? Can I use CB Substitutions i.e. [FIELDNAME] in the Text of the Override?

I want to add the value of a field called "cb_registrationquestion1" to the email. I'm sure the answer probably should be obvious. I think this pandemic just have my brain messed up.

So something like:
A new user has signed up at www.fudgerpg.com and requires approval.
This email contains their details

Name - [NAME]
E-mail -

Is that it?

Thank you.

Please Log in or Create an account to join the conversation.

3 years 10 months ago #322120 by researchware
Replied by researchware on topic Customizing the Registration Approval email
Nevermind. I just tried it and it works perfectly. Sorry, the brain is performing so poorly I didn't even think to just try it. All set SOLVED. Thanks again.
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum