Forums

Hiding Joomla's registration link on frontpage

Esben 29 Dec, 2008
Hello again

I have now a working solution with chronoforms, where a form is used as registration instead of Joomla's native registration. In order for this to work, I have to make sure that the "user registration" option is enabled in Joomla's configuration. However, this also means, that the "Register" link is displayed on Joomla's frontpage.

This is not the optimal solution, since I/we have chosen to display a link to the form on Joomla's frontpage with the words "Apply for membership" - which we find is more appropriate than "Register". In order to avoid users being able to use Joomla's native registration I have used this redirect plugin http://www.chronoengine.com/forums.html?cont=posts&f=3&t=12011, which will redirect users to the form, should they try to register "normally".

Essentially this means, that the Joomla frontpage contains two links to the form. One is named "Apply for membership" and the other "Register". To make the frontpage more logical and user friendly, we would like to hide the excess link ("Register") to the form without disabling "user registration".

Does anyone know how to do this?

Best regards
GreyHead 29 Dec, 2008
Hi Esben,

I think this will do it. Let me know if it's not removing the correct link.

Open {root}/modules/mod_login/tmpl/default.php and scroll down to lines 65-68 and add the html comments shown here
		<!-- <li>
			<a href="<?php echo JRoute::_( 'index.php?option=com_user&task=register' ); ?>">
				<?php echo JText::_('REGISTER'); ?></a>
		</li> -->


Bob

Later: moved the comment tags after Esben's correction.
Esben 29 Dec, 2008
Once again thank you!

It worked perfectly. Though I moved the html comments outside of the list tags - otherwise the homepage displayed a listing point with no text/link following. 🙂

/Esben
This topic is locked and no more replies can be posted.