link "back to home" after registration

This forum is for general questions about extensions for Joomla! 2.5.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
junior90vv
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jan 02, 2013 5:43 pm

link "back to home" after registration

Post by junior90vv » Wed Jan 02, 2013 6:06 pm

Hello to everyone

sorry for my english. I finished my site with JomSocial. I have a problem and I have not found an answer anywhere.

After the registration form, there is a link "back to home" is it possible to change this link? Because it does not returns me to the home page of the site.

the correct path is: mywebsite com

and currently is: mywebsite com/JomSocial

I read that you had to edit the file : components/com_community/templates/default/register.success.php

Code: Select all

*/
defined('_JEXEC') or die();
?>
<div>
	<div class="text"><?php echo $message; ?></div>
	<br />
	<div><a href="<?php echo $uri; ?>"><?php echo JText::_('COM_COMMUNITY_BACK_HOME'); ?></a></div>
</div>	
but then I get stuck :-[ . Thank you for your help

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: link "back to home" after registration

Post by brian » Wed Jan 02, 2013 9:57 pm

So from the sound of things you have installed joomla + jomsocial in a subdirectory from your mail web site called mywebsite com/JomSocial and you want the Back Home link to go to you main web site not your joomla + jomsocial installation. If that is correct then the following code should work (quick and dirty)

Code: Select all

*/
defined('_JEXEC') or die();
?>
<div>
   <div class="text"><?php echo $message; ?></div>
   <br />
   <div><a href="http://www.mywebsite.com"><?php echo JText::_('COM_COMMUNITY_BACK_HOME'); ?></a></div>
</div> 
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

junior90vv
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jan 02, 2013 5:43 pm

Re: link "back to home" after registration

Post by junior90vv » Sat Jan 05, 2013 9:58 am

hi sorry for the delay. Thank you very much. It is true that this solution is a bit barbaric but it is a solution that I applied. I use temporarily. thank you brian

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: link "back to home" after registration

Post by brian » Sat Jan 05, 2013 10:00 am

Glad it helped
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

User avatar
cms-4all
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Tue Oct 02, 2012 4:38 pm
Location: Hamburg
Contact:

Re: link "back to home" after registration

Post by cms-4all » Tue Dec 22, 2015 3:38 pm

Hi,
this is not in the actual JomSocial version.

Do you know now the correct file?
My favorite Joomla components (Meine Joomla Favoriten):
- Virtuemart - Kunena - Community Builder (cb)
Joomla! Agentur Hamburg


Locked

Return to “Extensions for Joomla! 2.5”