Hi Team!
I´m using eSport template, so I would like to link the "register" Button to the form not display it in a popup. I´m using AJAX Register and I want show a lot fields.
What I have to do to fix it?
Regards,
Leo
<?php if(GK_REGISTER) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
<?php endif; ?>
<?php if(GK_REGISTER) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
<?php endif; ?>
if(document.id('gkPopupRegister')) {
popup_register = document.id('gkPopupRegister');
popup_register.setStyle('display', 'block');
popup_register_h = popup_register.getElement('.gkPopupWrap').getSize().y;
popup_register_fx = new Fx.Morph(popup_register, {duration:200, transition: Fx.Transitions.Circ.easeInOut}).set({'opacity': 0, 'height': 0 });
document.id('btnRegister').addEvent('click', function(e) {
new Event(e).stop();
popup_overlay.fade(0.45);
popup_register_fx.start({'opacity':1, 'height': popup_register_h});
opened_popup = 'register';
showGKRecaptcha('gk_recaptcha', 'submit_1', 'recaptcha_required_1');
});
}
Konrad M wrote:First you have to go to layouts/default.php and find:
- Code: Select all
<?php if(GK_REGISTER) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
<?php endif; ?>
and change to:
- Code: Select all
<?php if(GK_REGISTER) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
<?php endif; ?>
then please go to js/gk.scripts.js and find:
- Code: Select all
if(document.id('gkPopupRegister')) {
popup_register = document.id('gkPopupRegister');
popup_register.setStyle('display', 'block');
popup_register_h = popup_register.getElement('.gkPopupWrap').getSize().y;
popup_register_fx = new Fx.Morph(popup_register, {duration:200, transition: Fx.Transitions.Circ.easeInOut}).set({'opacity': 0, 'height': 0 });
document.id('btnRegister').addEvent('click', function(e) {
new Event(e).stop();
popup_overlay.fade(0.45);
popup_register_fx.start({'opacity':1, 'height': popup_register_h});
opened_popup = 'register';
showGKRecaptcha('gk_recaptcha', 'submit_1', 'recaptcha_required_1');
});
}
and remove it.
