Suppress "register" in login module

jgribble
14 years, 2 months ago
Hello,
I have my mobile site working pretty well at this point (pse.org), but there's one issue relative to the login module. I need to hide or remove the "register" link without disabling new user registration in the Joomla global system/user settings. User registration/subscription is being handled through a dedicated e-commerce component. I do not want to leave open any side doors or back doors via the mobile site. So I want to make it impossible for anyone to register there. The solution I propose is to delete the registration event in the mj-login module Php. Will that work? Here's the snippet I am thinking of:

<li> <a href="/<?php echo JRoute::_( 'index.php?option=com_user&task=register' ); ?>"> <?php echo JText::_('REGISTER'); ?></a> </li> 

Am I on the right track? 

It also occurred to me that I could change the hyperlink to redirect registration to an article explaining that to become a site member you must use the main site.

Can I just create that article and drop in that internal link instead of "index.php?option=com_user&task=register"?

Any help would be appreciated, as I am a Mobile Joomla first-timer.

-JG
dryabov
14 years, 1 month ago
Just disable "Allow User Registration" in Joomla's Global Configuration (if your e-commerce extension allows to register bypass com_users).

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.