By Syabab on Monday, 08 November 2021
Posted in General Issues
Replies 7
Likes 0
Views 564
Votes 0
Hi,

How can I hide quick registration from displaying at the front end?
I want it to only display the login form.

See attached file.


Thanks
Hello,

You can turn off quick registrations under Settings > Users > Registration. Disable the option "Display Quick Registration"
·
Monday, 08 November 2021 11:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
You can turn off quick registrations under Settings > Users > Registration. Disable the option "Display Quick Registration"


The attached file is currently how it is displayed when we disabled it.
May I know which line to edit to hide it.


Thanks
·
Monday, 08 November 2021 14:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Are you using a custom template? Do you have template overrides for it? Perhaps there is a template override for the registration screen?
·
Monday, 08 November 2021 14:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I'm using Office template.
·
Monday, 08 November 2021 14:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah okay, that explains it. If that is the case, you need to edit the template override in /templates/office/html/com_easysocial/helpers/html/login.php and remove the codes below from line 148 - 191


<div class="o-grid__cell">
<div class="es-login-box__msg">
<?php if ($this->config->get('registrations.mini.enabled') && !$this->isMobile() && $showRegistrations) { ?>
<div class="si-login-box-msg">
<form method="post" action="<?php echo JRoute::_('index.php');?>" data-registermini-form>
<div class="register-wrap">
<div class="si-login-box-msg__hd-title"><?php echo JText::_('COM_EASYSOCIAL_LOGIN_NO_ACCOUNT');?></div>
<div class="si-login-box-msg__hd-desc"><?php echo JText::_('COM_EASYSOCIAL_LOGIN_REGISTER_NOW');?></div>

<?php foreach ($fields as $field) { ?>
<div class="es-register-mini-field" data-registermini-fields-item><?php echo $field->output;?></div>
<?php } ?>

<div class="t-text--center">
<button class="btn btn-es-primary btn-block" type="button" data-registermini-submit>
<?php echo JText::_('COM_EASYSOCIAL_LOGIN_REGISTER_NOW_BUTTON');?>
</button>
</div>
</div>

<?php echo $this->html('form.action', 'registration', 'miniRegister'); ?>
</form>
</div>

<?php } else { ?>
<div class="si-login-box-msg">
<div class="si-login-box-msg__hd">
<div class="si-login-box-msg__hd-title"><?php echo ucfirst($this->jConfig->getValue('sitename')); ?></div>
<div class="si-login-box-msg__hd-desc"><?php echo JText::_($loginPretext); ?></div>
</div>

<?php if ($showRegistrations) { ?>
<div class="si-login-box-msg__bd">
<div class="si-login-box-msg__bd-title"><?php echo JText::_('COM_EASYSOCIAL_LOGIN_NO_ACCOUNT');?></div>
<div class="si-login-box-msg__bd-desc"><?php echo JText::_('COM_EASYSOCIAL_LOGIN_REGISTER_NOW');?></div>
<div>
<a href="<?php echo ESR::registration();?>" class="btn btn-es-default btn-block"><i class="fa fa-globe"></i>  <?php echo JText::_('OFFICE_REGISTER_NEW_ACCOUNT'); ?></a>
</div>
</div>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
·
Monday, 08 November 2021 15:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

That works well so far...


Thanks again
·
Monday, 08 November 2021 15:20
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Monday, 08 November 2021 15:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post