Change Joomla 2.5 default registration page URL

2,371 views
Skip to first unread message

Meher

unread,
Jun 28, 2012, 4:37:58 AM6/28/12
to joomla-de...@googlegroups.com
Hi,

In Joomla 2.5, when a user registers with the website, the registration URL is http://www.websitename.com/user/registration?layout=complete.

I have create a thank page whose URL is http://www.websitename.com/thankyou.html

I want to change this URL
From:
/user/registration?layout=complete
To
:
/thankyou.html

Can anyone let me know which file and which line of code should be edited in the Joomla Registration Module.

Thanks in advance.

Regards,

Meher

MOHAMED AKRAM

unread,
Jun 28, 2012, 4:51:19 AM6/28/12
to joomla-de...@googlegroups.com
open site / component/com_users/controllers/registration.php

edit the page and go to line number 165, inside $this->setRedirect('give ur new url'); if admin active is enabled

else if use activate is enabled go to line number 168 , else 172




--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/zXLKu8p3G5QJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.

Meher

unread,
Jun 28, 2012, 6:05:22 AM6/28/12
to joomla-de...@googlegroups.com
Hi Mohamed Akram,

Thanks for the solution. Appreciate your quick response.

I will try it and let u know soon.

Regards,

Meher

Akhtar ali

unread,
Jun 28, 2012, 10:19:00 AM6/28/12
to joomla-de...@googlegroups.com
use joomla rsform pro with registration plugin 

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/mFulkRLo8VQJ.

To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.



--
Akhtar Ali

Swapnil Shah

unread,
Jun 28, 2012, 10:31:48 AM6/28/12
to joomla-de...@googlegroups.com
Iirc, you can save the redirect URL to the session. The code looks for it in the session. 

Using a plugin you can change the URL and the code will redirect. That way you can turn the redirect off/on. 

Also, I would not recommend hacking the core as someone suggested. As soon as you update joomla if the file you modified is in the update, your changes will be lost. 

I will check when I get a chance this evening as to the session variable you need to override. 

Regards, 


Neil
Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages