CMSUsers email templates

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

CMSUsers email templates

Post by psy »

I'm giving CMSUsers a try for a particular job. I've been asked to convert to CMSMS one of those horrid WordPress sales sites that ask you to enter your name and email address to give you access to a free download.

The FEU/SR/CC combo does not allow for a required feature, ie email verification without entering a password. The only real verification needed is that the email address entered as the username belongs to a real person.

So far I'm impressed with CMSUsers although the doco is minimal.

Can anyone tell me how to customise the email template? I have 2 profile fields, 'First name' and 'Last Name' and the email address is the username, eg:

Username: joe@bloggs.com
First name: Joe
Last name: Bloggs

Instead of the email body saying 'Dear joe@bloggs.com', I would like it say 'Dear Joe'.

Config
CMSMS: 1.11.5
CMSUsers: 1.0.10
CMSForms: 1.0.8

Any pointers to additional documentation for this module would be welcome too.

Thanks
psy
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

[solved] Re: CMSUsers email templates

Post by psy »

Here's what worked for me in the email verification template:

Code: Select all

{assign var='profile' value=$user->retrieveByUsername($user->username)}
{assign var='fields' value=$profile->getAsArray()}
<p>Dear {$fields.Firstname}<p>
My custom field name was 'First name'. The module has removed the space between the words. The rest I figured out by working through the module code.

hth
psy
Post Reply

Return to “Modules/Add-Ons”