Don Lee wrote:Hi,
I don't really understand your idea, but if you want to get rid of the popup, just open file /templates/gk_musicity/js/gk.scripts.js and remove login popup section:
- Code: Select all
// login popup
if(document.id('btnLogin') || document.id('btnRegister')) {
var popup_overlay = document.id('gkPopupOverlay');
popup_overlay.setStyles({'display': 'block', 'opacity': '0'});
popup_overlay.fade('out');
var opened_popup = null;
var popup_login = null;
var popup_login_h = null;
var popup_login_fx = null;
var popup_register = null;
var popup_register_h = null;
var popup_register_fx = null;
if(document.id('btnLogin')) {
popup_login = document.id('gkPopupLogin');
popup_login.setStyle('display', 'block');
popup_login_h = popup_login.getElement('.gkPopupWrap').getSize().y + 8;
popup_login_fx = new Fx.Morph(popup_login, {duration:200, transition: Fx.Transitions.Circ.easeInOut}).set({'opacity': 0, 'height': 0, 'margin-top':0});
document.id('btnLogin').addEvent('click', function(e) {
new Event(e).stop();
popup_overlay.fade(0.85);
popup_login_fx.start({'opacity':1, 'margin-top': -popup_login_h / 2, 'height': popup_login_h});
opened_popup = 'login';
});
}
if(document.id('btnRegister')) {
popup_register = document.id('gkPopupRegister');
popup_register.setStyle('display', 'block');
popup_register_h = popup_register.getElement('.gkPopupWrap').getSize().y + 8;
popup_register_fx = new Fx.Morph(popup_register, {duration:200, transition: Fx.Transitions.Circ.easeInOut}).set({'opacity': 0, 'height': 0, 'margin-top':0});
document.id('btnRegister').addEvent('click', function(e) {
new Event(e).stop();
popup_overlay.fade(0.85);
popup_register_fx.start({'opacity':1, 'margin-top': -popup_register_h / 2, 'height': popup_register_h});
opened_popup = 'register';
showGKRecaptcha('gk_recaptcha', 'submit_1', 'recaptcha_required_1');
});
}
popup_overlay.addEvent('click', function() {
if(opened_popup == 'login') {
popup_overlay.fade('out');
popup_login_fx.start({
'opacity' : 0,
'height' : 0,
'margin-top': 0
});
}
if(opened_popup == 'register') {
popup_overlay.fade('out');
popup_register_fx.start({
'opacity' : 0,
'height' : 0,
'margin-top': 0
});
}
});
}
});
I am using CB connect for my login, with the popup how do I make the FB login button show instead of the [sign in] button from the template. see attached image. Click the login at site
http://www.secbattles.com to see the action of the sign in button in the login popup