Registration Link Stays when registration is turned off

Create fresh and professional look of personal or blog websites with AppsPro Tech
GK User
Thu Jan 16, 2014 9:37 pm
I'm need to turn off Registration for a site I'm working on. I've turned it off in the user manager options.

The login popup still shows a link to registration. When you click the link, it asks for a username and password. I can't figure out where else to turn it off.

Bonus question: I also need to turn off the "forgot username' and 'forgot password' links.

Any help would be greatly appreciated :)
User avatar
Fresh Boarder

GK User
Fri Jan 17, 2014 3:00 pm
Hello,

The registration link can be removed from the popup if you remove line:

Code: Select all
<?php if($userID == 0) : ?> <small><?php echo JText::_('TPL_GK_LANG_OR'); ?><a href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=registration"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a></small><?php endif; ?>


from file: layouts/blocks/tools/login.php

The mentioned links can be removed if you edit the following file: html/mod_login/default.php and remove the following fragment:

Code: Select all
<ul>
            <li>
                  <a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
                        <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a>
            </li>
            <li>
                  <a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
                        <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a>
            </li>
      </ul>
User avatar
Administrator

GK User
Fri Jan 17, 2014 5:24 pm
That worked. Thanks a lot for the help.

:)
User avatar
Fresh Boarder


cron