Skip to Content Skip to Menu

[SOLVED] Adding new fileds to Registration Emails

  • mickelb
  • mickelb
  • OFFLINE
  • Posts: 42
  • Thanks: 3
  • Karma: 1
9 years 6 months ago - 9 years 6 months ago #262895 by mickelb
CB2.0.7 - Joomla 3.4.1

I have added a text field, cb_memno , to our registration and want it to be shown on the Registration Emails. How do I do this, in a way that doesn't get overwritten by updates. Can I have a solution in very clear steps please - I've seen some replies to similar queries that just say "modify the relevant language string" that don't mean a lot to me. So what file in what location, what lines and what to add?

Would it be possible in a future updatesd to actullay be able to set this as a setting in Field Managament, i.e. Check to add to Emails. Much better than changing code.
Last edit: 9 years 6 months ago by nant.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 6 months ago #262898 by nant
Replied by nant on topic Adding new fileds to Registration Emails

mickelb wrote: CB2.0.7 - Joomla 3.4.1

I have added a text field, cb_memno , to our registration and want it to be shown on the Registration Emails. How do I do this, in a way that doesn't get overwritten by updates. Can I have a solution in very clear steps please - I've seen some replies to similar queries that just say "modify the relevant language string" that don't mean a lot to me. So what file in what location, what lines and what to add?

Would it be possible in a future updatesd to actullay be able to set this as a setting in Field Managament, i.e. Check to add to Emails. Much better than changing code.


What exactly do you mean by "Registration Emails"?

Do you mean the email that each new user gets after they complete their registration?
Do you mean the email that is sent to Moderators when a new user registers and needs approval?

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

  • mickelb
  • mickelb
  • OFFLINE
  • Posts: 42
  • Thanks: 3
  • Karma: 1
9 years 6 months ago #262900 by mickelb
Replied by mickelb on topic Adding new fileds to Registration Emails
The email that goes to Admin and Users when a user registers.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 6 months ago #262904 by nant
Replied by nant on topic Adding new fileds to Registration Emails

mickelb wrote: The email that goes to Admin and Users when a user registers.


Thanks for clarification.

This email is referred to as an Action required email that is sent to moderators.

The email subject and content is specified as a language string.

To understand how CB language plugins work please download and read the CB Primer book from this article:

www.joomlapolis.com/news/18492-cb-primer-book-designed-to-help-you-learn

Basically you need to:

1. Download the latest CB 2.0.7 English language plugin from here:
www.joomlapolis.com/cb-solutions/languages

2. Unzip locally and open the language.php file using your text editor

3. Locate the relevant language strings (in my file these are around line 133-134:

'UE_REG_ADMIN_PA_SUB' => 'ACTION REQUIRED! New user sign up request pending approval',
'UE_REG_ADMIN_PA_MSG' => "A new user has signed up at [SITEURL] and requires approval.\nThis email contains their details\n\nName - [NAME]\nE-mail - [EMAILADDRESS]\nUsername - [USERNAME]\n\n\nPlease do not respond to this message as it is automatically generated and is for informational purposes only.\n",

You can edit the second parts (to the right of =>) as you want to add more fields.
Just use [cb_fieldname] to grab the field value you like.

4. Save your changed language.php file

5. Rezip the english language plugin

6. Install it using the CB Plugin Management page.

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

  • mickelb
  • mickelb
  • OFFLINE
  • Posts: 42
  • Thanks: 3
  • Karma: 1
9 years 6 months ago #262911 by mickelb
Replied by mickelb on topic Adding new fileds to Registration Emails
Ok, sorted now. It was actually the section 'UE_REG_ADMIN_MSG' that needed changing.

Thanks.
The following user(s) said Thank You: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum