alfredopacino00

autopopup in specific pages

6 posts in this topic

Hi Alfredopacino

Please try this solution

Add this code

<script type="text/javascript">
jQuery(document).ready(function(){
if(window.location.href="http://domain.com/" || window.location.href="http://domain.com/abc"){
showLoginForm();
}
});
</script>

to end of file /mod_bt_login/tmpl/default.php

I hope it will help you.

Share this post


Link to post
Share on other sites

it works!

But there is a problem: when I click on close button in modal login form (without login) the page reloads, don't know why.. I guess It's a bt login module thing.

As result of that I get a "modal window loop": I close the login form, the page reloads and I get again the login form.

Share this post


Link to post
Share on other sites

Maybe there is conflict.

Please give me your URL i will check it.

thank for your support, I solved by myself.

For your knowledge, I found some problems because the jquery version included in BT Login is 1.6 (and if I set load jquery=NO in module options, the modal popup shows up at bottom of the page, not the center as it should be)!

You should really think about a refresh :)

regards

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now