Welcome, Guest
Username Password: Remember me

Suppress "register" in login module
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Suppress "register" in login module

Suppress "register" in login module 13 years ago #6310

  • jgribble
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
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

Re: Suppress "register" in login module 13 years ago #6354

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Just disable "Allow User Registration" in Joomla's Global Configuration (if your e-commerce extension allows to register bypass com_users).
  • Page:
  • 1
Time to create page: 0.06 seconds

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.