Change or edit email notification

Locked
causingfungus
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Sep 13, 2009 3:01 pm

Change or edit email notification

Post by causingfungus » Sun Sep 13, 2009 3:26 pm

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.

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Change or edit email notification

Post by wlrdq » Sun Sep 13, 2009 4:47 pm

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
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

causingfungus
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Sep 13, 2009 3:01 pm

Re: Change or edit email notification

Post by causingfungus » Sun Sep 13, 2009 4:56 pm

Thank you, Thank you very much

earthgate
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Oct 18, 2009 12:59 pm

Re: Change or edit email notification

Post by earthgate » Sun Oct 18, 2009 1:05 pm

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??

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Change or edit email notification

Post by wlrdq » Sun Oct 18, 2009 2:30 pm

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.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

earthgate
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Oct 18, 2009 12:59 pm

Re: Change or edit email notification

Post by earthgate » Sun Oct 18, 2009 4:43 pm

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..

basidee
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Dec 17, 2009 10:32 am

Re: Change or edit email notification

Post by basidee » Thu Dec 17, 2009 11:55 am

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

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Change or edit email notification

Post by wlrdq » Fri Dec 18, 2009 6:02 am

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.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Locked

Return to “Feature Requests - White Papers - Archived”