• Resolved holdusback

    (@holdusback)


    Hey there, thanks for this awesome plugin.

    Small issue that I have :

    I’ve put a login form into the popup and do a small function if login failed, re-open the popup like this :

    
    function Popup_reopen_login() 
    {
    		?>
    		<script type="text/javascript">
    		window.onload = function () 
    		{
    			PUM.open(904);
    		}
    		</script>
    		<?php
    }
    
    add_action( 'wp_login_failed', 'my_front_end_login_fail' );  // hook failed login
    
    function my_front_end_login_fail() {
    	Popup_reopen_login();
    }
    

    This work great, the popup re-open after a refresh. But if I close the popup, the scrollbar disappear and I cant scroll my page. I have to refresh or clique on a link in the menu.

    Do you know how I can fixe this ?

    Thanks in advance & have a good week end !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @holdusback:

    Can you provide a url (including permalink, if necessary) at which the popup can be viewed? Since you’re having difficulty with this popup, can you move a copy of your site to a remote hosted staging site where we inspect the behavior of your popup and other assets on your site?

    Thread Starter holdusback

    (@holdusback)

    Hey @yogaman5020 .

    The website is only in local for security reason.

    Can we proceed another way ? Like sending you some file or something ?

    Thanks for you’re quick answer as allways ??

    Thread Starter holdusback

    (@holdusback)

    Sorry I cant find where I can edit post so …

    Trying to hook when the popup is closed to resize the windows with jQuery.

    Something like that (dont work actually) :

    if(PUM.close(904) == true)
    			{
    				window.resizeTo(jQuery(document).width(),jQuery(document).height());
    			}

    Hello @holdusback:

    For simplicity in getting you an answer, would you kindly repost your question at https://wppopupmaker.com? It’s easier for me to pull in the plugin developer that way.

    We have a prebuilt solution for you in our AJAX Login Modals plugin extension.

    https://wppopupmaker.com/extensions/ajax-login-modals/

    In the end, this may be the route you have to go. But if you post over at the url I gave above, we can both get a definitive answer from the plugin developer.

    • This reply was modified 7 years, 3 months ago by Robert Gadon.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin make scrollbar disappear after popup re-open’ is closed to new replies.