Hello everyone, hoping someone can shed some light on this. I've been posting on the official Joomla Forums now and getting no where on a solution.
The email that gets sent out when an Admin adds a new user contains the website address, username and password.
The URL that it inserts into the email is the URL for where the Joomla site is installed. However, I want to change the URL it inserts in the email to something else.
In other words, lets say the site is installed in a subdirectory (ie.
www.domain.com/site
)
The new user email will include that address in the email, along with the username and password that the admin set for that user.
However we want the URL to be something else, lets say (ie.
www.domain.com
) without the /site
How can we change this? Which file needs to be edited and how?
I've tried editing the registration.php that is located in the directory \components\com_users\models . I've tried several changes, including changing 'siteurl' to the desired URL but nothing changes or seems to have any effect on the email the site automatically sends to new users.
Wondering if there is in fact another file that should be edited instead at this point.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
I just figured it out. As I suspected it was not registration.php that needed to be edited.
It was
/plugins/user/joomla/joomla.php
I replaced the siteurl here and I got the desired result. This is the Joomla Core Plugin that acts after a new user is added on the administrator section.
Just sharing to let others know how to address this.
Personally I wouldn't be hacking core joomla because when you update it your changes will be overwritten again (and believe me you will forget) - here is a screenshot or powerful email editor (on a J2.5 site) yes you could change the details as seen.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.