Page 1 of 1

Change or edit email notification

Posted: Sun Sep 13, 2009 3:26 pm
by causingfungus
When a new user sign up on a joomla website it sends out a email validation. What I was wondering is there a way to edit the email validation template, I did a search couldn't find it, I decided to google it, couldn't find it, so now I came to joomla forums, to see maybe i could find, no such results. Like for an example:

Hello "user",

Thank you for registering at . Your account is created and must be activated before you can use it.
To activate the account click on the following link or copy-paste it in your browser:
" exampe link to activate"
After activation you may login to http://www.[spam].com using the following
username and password:

Username: username
Password: password

Is there a way to edit this, can someone help me, or point me to the right direction, thank you.

Re: Change or edit email notification

Posted: Sun Sep 13, 2009 4:47 pm
by wlrdq
That is defined in the language file here:
.../language/en-GB/en-GB.com_user.ini

Code: Select all

SEND_MSG_ACTIVATE=Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can use it.\nTo activate the account click on the following link or copy-paste it in your browser:\n%s\n\nAfter activation you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s

Re: Change or edit email notification

Posted: Sun Sep 13, 2009 4:56 pm
by causingfungus
Thank you, Thank you very much

Re: Change or edit email notification

Posted: Sun Oct 18, 2009 1:05 pm
by earthgate
But if I change the %s as in take it out say the
-After activation you may login to %s-
Line
the user now becomes the url and password becomes user?

where does the %s ref from??

Re: Change or edit email notification

Posted: Sun Oct 18, 2009 2:30 pm
by wlrdq
This file:
.../components/com_user/controller.php

Code: Select all

$message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password);
Here is the api for sprintf if you need it:
http://us3.php.net/manual/en/function.sprintf.php

Let me know if you have any more questions.

Re: Change or edit email notification

Posted: Sun Oct 18, 2009 4:43 pm
by earthgate
OK so what I did was change the en-GB.com_user.ini only by taking out %s for the site url and giving username and password the right postions, which is 5 and 6

Old
After activation you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s
New
After activation you may login to http://www.mysite.com using the following username and password:\n\nUsername: %5$s\nPassword: %6$s

easiest way I think..

Re: Change or edit email notification

Posted: Thu Dec 17, 2009 11:55 am
by basidee
I followed these instructions and modified email notifications for AlphaUserPoints extension, but my changes did not affect the notification in any way. I confirmed that the changes I made are still in the en-GB.com_alphauserpoints.ini file.

Any ideas why this may be happening?

Thanks in anticipation

Re: Change or edit email notification

Posted: Fri Dec 18, 2009 6:02 am
by wlrdq
I don't know if caching gets used, but you might check if you have caching turned on.

Also, there is a front and backend language file for components, so make sure you are editing the right one (or both):
.../language/en-GB /en-GB.com_alphauserpoints.ini
.../administrator/language/en-GB /en-GB.com_alphauserpoints.ini

If you can't figure it out, let me know and I can try to help.