Remove Registration from Login Page

GK User
Sun Feb 13, 2011 4:34 am
How can we remove registration form from the login page?

Switching off login from the Configuration doesn't achieve this.

Thanks
User avatar
Expert Boarder

GK User
Sun Feb 13, 2011 8:58 am
try disable the "allow user registration from global configuration > system.

i am not sure if it works, but try :)
User avatar
Platinum Boarder

GK User
Sun Feb 13, 2011 9:34 pm
Ummm ... all ready done that ... explodedk

Switching off [strike]login[/strike] (oops) REGISTRATION from the Configuration doesn't achieve this.

That's the first point when you don't want people registering and I figured it would switch that off.

There is an over ride file somewhere which I cannot find.

I've tied commenting out registration code but to no avail

Got any more suggestions? :dry:
User avatar
Expert Boarder

GK User
Sun Feb 13, 2011 10:20 pm
Hi

I think this feature must be improved and i'm sure we will release it in future updates.

For now, if you don't want to use Register feature on this page, please enable override.css file on tempplate parameters and add this line on this file:

Code: Select all
#gkRegister {display: none}


When we solve this, you can remove it and enable/disable only on global configurations.

Cheers
User avatar
Platinum Boarder

GK User
Sun Feb 13, 2011 10:31 pm
Ripper

I keep forgetting about override.css

Thanks
User avatar
Expert Boarder

GK User
Sun Feb 13, 2011 11:25 pm
Hi again

I found the solution and i will recommend it to our programmer.
So forget what i said previously and open this file: ../gk_penguinmail/html/com_user/login/default_login.php and find this line:
Code: Select all
<div id="gkRegister">

replace it with:
Code: Select all
<?php
      $usersConfig = &JComponentHelper::getParams( 'com_users' );
      if ($usersConfig->get('allowUserRegistration')) : ?>

<div id="gkRegister">


Also, find last close div at the end of the document
Code: Select all
</div>

and replace with
Code: Select all
</div>
<?php endif; ?>


If you don't want to perform all this steps, just download the attach file and replace it. :P

Now the display of register form on this page is depended if registration is enable or not.

Cheers ;)

default_login.zip
User avatar
Platinum Boarder


cron