Thursday, September 28, 2023

Joomla Change Email Text To New User

I wanted to redirect the new user sign up to a specific page and not the main site URL. I was frustrated in the process at first; however, really enjoyed the flexibility of Language Overrides in Joomla. I read a couple of articles and just didn’t get it till I read this post and went through the process.

https://forum.joomla.org/viewtopic.php?t=953986

Of course Joomla documentation on this is a good read as well.

https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla

I was using a Gantry template and in order to get the process to look the way I wanted it I needed to revise my .yaml file for the home page, and move the default “Message” and “Content” particles to a new layout.

When the user got to the screen where they needed to change their password, and changed it I wanted to redirect them back the employee portal page. The following article helped me figure this out.

https://forum.joomla.org/viewtopic.php?t=813714

I ended up changing the “<joomla-root>/components/com_users/controllers/profile.php” line 225. I set the URL to the NON-Search Engine friendly link. The line ended up changing from
“$redirect = ‘index.php?option=com_users&view=profile&user_id=’ . $return;”

to

“$redirect = ‘index.php?option=com_content&view=article&id=19&Itemid=149’;”, which was the page for the portal.

I hope this helps someone else out there…

0 Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.