Hi
Can you help me to get forum ads to play nice with my themes login box?
Forum Ads - Purchase Advertisements - East Coast Surfcasters The Forum none of the forum ads functions work like add to cart and packages tab.
everything works good in the default theme and it must be with the login box for the current theme.
Thank you
James
Can you help me to get forum ads to play nice with my themes login box?
Forum Ads - Purchase Advertisements - East Coast Surfcasters The Forum none of the forum ads functions work like add to cart and packages tab.
everything works good in the default theme and it must be with the login box for the current theme.
Code:
<script type="text/javascript">
$(document).ready(function() {
$('a.login-window').click(function() {
var loginBox = '#login-box';
$(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>
Thank you
James