Technology Tools for Ministry

Community

Web-Empowered Church Developer's Community
All Categories > Developers > Installing and Configuring > Change default FERegistration email text?
Total Posts: 9 - Pages (1): [1]
Author: Jay Halderman
Posted: Oct 15 2007 - 12:08 PM
Subject: Change default FERegistration email text?
I'd like to edit the text in the emails that are sent out from the system when I user registers for a frontend account. However, I'm unable to locate the email text anywhere in the system. The consultant who helped us set the system up also does not know where this is located. Anyone know where I can find it?

We currently have it set up as a process that involves an administrator to approve the account before it gets elevated to full Member group status. The email that's sent out has a typo I'd like to get rid of, but beyond that, I'd ultimately like to be able to customize the content of the messages the system sends out.

Thanks,

Jay Halderman
First United Methodist Church of McKinney, TX
Author: Jeff Segars
Posted: Oct 15 2007 - 03:39 PM
Subject: re: Change default FERegistration email text?
Hey Jay,
This is a little tricky to track down, but I'll give some instructions that will hopefully get you there.

In the registration extension, all the text is defined as XML files within the extension itself. This makes it much easier to support many languages but makes it a little harder to get the registration text exactly like you want it.

If you open the file at typo3conf/ext/sr_feuser_register/pi1/locallang.xml, you'll see all the possible registration labels. You'll have to scroll through all of this until you find the string that you're looking for or you can search for your typo.

You can then copy all the label text and make a note of the index value for the label. If i'm guessing, you're probably dealing with v_registration_confirmed_review2, where it says "admintrator" instead of "administrator".

Once you've got your text copied, you can insert it into the setup portion of the Typoscript template on the My Account page. To get here, you can go through Web->Template, My Account, Info/Modify. Once there, you can use the following Typoscript to override the label defined in the XML file...

CODE:

plugin.tx_srfeuserregister_pi1._LOCAL_LANG.default {
  name_of_label_index = This is my new label.
}


Using the v_registration_confirmed_review2 label as an example, this would look like...
CODE:

plugin.tx_srfeuserregister_pi1._LOCAL_LANG.default {
  v_registration_confirmed_review2 = Your application for membership will now be reviewed by the website administrator. You will be informed by email of the administrator's decision.
}


This same technique can be used anywhere in TYPO3 to get the labels just like you want them so its pretty powerful. It's far from user-friendly though, so if those instructions are a little overwhelming, just let us know where the typo is and we'll get you the exact code to insert.

Thanks,
Jeff
Author: Jay Halderman
Posted: Oct 15 2007 - 10:47 PM
Subject: re: re: Change default FERegistration email text?
Thanks for the reply, Jeff. I have located the text to replace and have been experimenting with overriding it in the template. However, I wonder would it not be possible (and easier) to change the XML file itself? Is a label override is necessary because TYPO3 or extension updates would overwrite the changes?
Author: Jeff Segars
Posted: Oct 15 2007 - 11:00 PM
Subject: re: Change default FERegistration email text?
Hey Jay,
You're right on about why its best not to change the XML directly. If you ever update to a newer version of the sr_feuser_register extension, these changes would be overwritten (For what its worth, this is the same reason that when you're changing an extension's HTML template, its best to copy it out to the fileadmin directory).

Thanks,
Jeff
Author: Jay Halderman
Posted: Oct 15 2007 - 11:14 PM
Subject: re: re: re: Change default FERegistration email text?
That makes sense. Too bad there are so many darn typos /grammatical errors in the TYPO3 system. I'm going to be at this for a long while.

Thanks again.
Author: Jeff Segars
Posted: Oct 15 2007 - 11:37 PM
Subject: re: Change default FERegistration email text?
Jay,
If you want to keep track of what you're changing and send it on to us, we'll be happy to pass it along to the extension author and see if we can get it included in future releases.

Thanks,
Jeff
Author: Jay Halderman
Posted: Oct 16 2007 - 12:04 AM
Subject: re: Change default FERegistration email text?
OK, Ill try to do that. I've kept most of my changes inside a particular section of the setup, so that shouldn't be too hard in the end. Some of the slightly awkward language I'm not even going to bother with, at least for now, just the outright improper English or errors.

Thanks. Hope I can make the next user group meeting so we can meet.
Author: John Kallies
Posted: May 08 2008 - 03:48 PM
Subject: re: Change default FERegistration email text?
Author: Jay Halderman
Posted: May 08 2008 - 05:28 PM
Subject: re: re: Change default FERegistration email text?
John, thank you for your reply and suggestion. Since I posted this, I actually came to this same solution independently (and probably should have remembered to come back to update this post, so thanks for getting the information out there).

I can confirm that the TS method does work well to solve this problem. I wish this post could be moved to the .com forum where it might help more users (I was brand new to WEC when I posted this and didn't know better).
Total Posts: 9 - Pages (1): [1]
You must login to post a message to this conference.