Register Button link to form - not popup

GK User
Mon Nov 26, 2012 5:55 pm
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
User avatar
Junior Boarder

Konrad M
Thu Nov 29, 2012 12:43 pm
Hi,
you have to make some modifications in js/gk.scripts.js. Please send me Private Message with ftp access.
User avatar

GK User
Tue Dec 18, 2012 11:49 am
Hello i'm interested in this too can you post the changes?
User avatar
Fresh Boarder

Konrad M
Thu Dec 20, 2012 11:37 am
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&amp;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&amp;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.
User avatar

GK User
Sat Mar 16, 2013 10:23 pm
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&amp;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&amp;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.

Thanks. It worked for me.
User avatar
Gold Boarder