Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @cole Geissinger
    Thanks for your investigation. When I looked in my browser’s network pane, I noticed that although I wasn’t getting the ajax response back, I Was getting a redirect in the background. I suspected it was S2member’s redirect hooks that was short-circuiting the return for the ajax call. My solution was to implement an S2-hack to disable redirects, which did the trick. Everything is working smooth now. The hack is below:

    /* Need this since the S2Member redirect messes with the redirect from WP Modal Login */
    add_filter("ws_plugin__s2member_login_redirect", "my_custom_login_redirect", 10, 2);
    function my_custom_login_redirect($redirect, $vars = array())
    	{
    		// If you want s2Member to perform the redirect, return true.
    		// return true;
    
    		// Or, if you do NOT want s2Member to perform the redirect, return false.
    		 return false;
    
    		// Or, if you want s2Member to redirect, but to a custom URL, return that URL.
    		// return 'http://www.example.com/reset-password-please/';
    
    		// Or, just return what s2Member already says about the matter.
    		//return $redirect;
    	}

    @therandomguy12345 Thanks for your help too!

    @therandomguy12345

    Can you share how you were able to fix this? I’m trying to get it working on my site now as well. Please help!

    I’m having the same problem too… and I narrowed it down to S2Member as the culprit.

    I’m trying to log in with a non-admin user and with S2Member on, it just gets stuck at the Checking Credentials screen… If I deactivate S2Member, it succeeds.

    This is the best looking modal plugin out there for wordpress, so I Reallllly hope someone can figure out a solution for this. =(

Viewing 3 replies - 1 through 3 (of 3 total)