logo

Member
Member
Offline Offline
Posts: 46
SVN: Bug with patch, remove register link when register is disabled.

Quick patch... disable 'register' button on login page if new account registration is disabled.

In LayoutsLogin.php

Find
Code:

  <tr>
    <td colspan="2" class="login-links">[ <a id="registerLink" class="text-link login-link login-register-link" href="'.$settings['site_url'].'/index.php?act=register">' . $LOGIN_LANG["register"] . '</a> ] [ <a id="forgotLink" class="text-link login-link login-forgot-link" href="'.$settings['site_url'].'/index.php?act=forgotpassword">' . $LOGIN_LANG["forgot_password"] . '?</a> ] </td>
  </tr>


Replace With
Code:

  <tr>
    <td colspan="2" class="login-links">';
    if($settings['registration'] == 'on')
       $body .= '[ <a id="registerLink" class="text-link login-link login-register-link" href="'.$settings['site_url'].'/index.php?act=register">' . $LOGIN_LANG["register"] . '</a> ] ';
    $body .= '[ <a id="forgotLink" class="text-link login-link login-forgot-link" href="'.$settings['site_url'].'/index.php?act=forgotpassword">' . $LOGIN_LANG["forgot_password"] . '?</a> ] </td>
  </tr>
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: SVN: Bug with patch, remove register link when register is disabled.

Patch applied

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: [Fixed] SVN: Bug with patch, remove register link when register is disabled.

This bug has been deemed [Fixed] by an eoCMS developer. If you dispute the Fix, please PM a developer, giving details of why. This topic can then be unlocked allowing for further discussion.

Please do not PM me requesting support or anything, use the forums, thats what they are here for

Jump to:


0.07 seconds Queries: 13