Hi,
My site uses a custom theme that opens a popup window for login works fine on forum home but will not function on threads etc.
The theme works correct if i disable SEO. The following code is for oping the popup Can you help?
Thanks
My site uses a custom theme that opens a popup window for login works fine on forum home but will not function on threads etc.
The theme works correct if i disable SEO. The following code is for oping the popup Can you help?
PHP:
<script type="text/javascript">
$(document).ready(function() {
$('a.login-window').click(function() {
var loginBox = $(this).attr('href');
$(loginBox).fadeIn(300);
var popMargTop = ($(loginBox).height() + 24) / 2;
var popMargLeft = ($(loginBox).width() + 24) / 2;
$(loginBox).css({
'margin-top' : -popMargTop,
'margin-left' : -popMargLeft
});
$('body').append('<div id="mask"></div>');
$('#mask').fadeIn(300);
return false;
});
$('a.close, #mask').live('click', function() {
$('#mask , .login-popup').fadeOut(300 , function() {
$('#mask').remove();
});
return false;
});
});
</script>
Thanks