0
Welcome Guest! Login
0 items Join Now

Joomla New User Email - Modification

    • Michael's Avatar
    • Michael
    • Hero Rocketeer
    • Posts: 448
    • Thanks: 2

    Joomla New User Email - Modification

    Posted 9 years 8 months ago
    • 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.

      Here's the discussion on the Joomla forums,
      forum.joomla.org/viewtopic.php?f=708&t=8...4&p=3324330#p3324330

      Hope the RT community may be able to help me figure this out.

      Thank you
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Joomla New User Email - Modification

    Posted 9 years 8 months ago
    • Michael's Avatar
    • Michael
    • Hero Rocketeer
    • Posts: 448
    • Thanks: 2

    Re: Joomla New User Email - Modification

    Posted 9 years 8 months ago
    • Thanks Mark,

      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.
    • Last Edit: 9 years 8 months ago by Michael.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Joomla New User Email - Modification

    Posted 9 years 8 months ago
    • 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.

Time to create page: 0.064 seconds