Remove Register Button

GK User
Mon Jan 19, 2015 9:26 pm
Hi

I would like to remove the register button from the popup login as I have decided to disable user registration.

Where would I go about doing this?

Regards
User avatar
Junior Boarder

GK User
Mon Jan 19, 2015 9:40 pm
Hi,
you mean from this part?
regist.jpg
User avatar
Platinum Boarder

GK User
Mon Jan 19, 2015 9:56 pm
If yes, unfortunately, but you have to manually delete the link from module code.
templates\gk_events\html\com_users\login\default_login.php

delete all code with "<a ...... index.php?option=com_users&view=registration" link inside.
User avatar
Platinum Boarder

GK User
Tue Jan 20, 2015 10:25 pm
I have attemped to do as you suggested but it doesnt have seem to have made a difference.

Are you sure this is the correct file to delete code for the popup login?
User avatar
Junior Boarder

GK User
Tue Jan 20, 2015 11:23 pm
Ok, you're right, try this

Code: Select all
.clear.overflow a.button {
    display: none;
}
User avatar
Platinum Boarder

GK User
Wed Mar 04, 2015 8:56 pm
Hi
You can set CSS display:none for the <body> tag and all the webpage would go away :D
In file /templates/gk_events/layouts/blocks/tools/login.php change this:
Code: Select all
<?php if($userID == 0) : ?>
<a class="button" href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=registration"><?php echo JText::_('TPL_GK_LANG_REGISTER_POPUP'); ?></a>
<?php endif; ?>

To:
Code: Select all
<?php
$usersConfig = JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) : ?>
<?php if($userID == 0) : ?>
<a class="button" href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=registration"><?php echo JText::_('TPL_GK_LANG_REGISTER_POPUP'); ?></a>
<?php endif; ?>
<?php endif; ?>

This is missing in some Gavick templates, to check User > User Manger > Options, if Registration is set to Yes/No
User avatar
Expert Boarder

GK User
Thu Mar 05, 2015 12:04 am
Yep, you're right ... but personally I cannot modify template code.
User avatar
Platinum Boarder


cron