Login modal that's compatible with s2member

Does anyone know of any login modal plugin that’s compatible with s2member? I’m trying to find a solution where users can click on the login link and a login popup box would come up or alternatively a dropdown box where users can login.

I have tried a few but they seem to be incompatible with s2member, they all get stuck when logging in but when the refreshing the page it shows that the users are logged in.

Being a novice with coding I would love it if anyone could share a simply plugin that works with s2member that behaves in the described fashion.

Thanks for your help!

Lily

Try adding this to your (child) theme’s functions.php file and then using a modal of your choice:

add_filter('ws_plugin__s2member_login_redirect', '__return_false');

Neither ZM ajax login & register and genesis login modal plugin works. Do you have any recommendation for a login modal plugin that would work for sure with s2member pro & multisite?

I would be open to a premium plugin. Is there any plugin out there that that would function similar to this forum or s2member.com?

Any advice and tips would be much helpful.

Lily

The code I gave used to work a few years ago, but a lot has changed with the WordPress handles logins, so that would explain why it no longer works.

I think you really have two choices here. One is to pay a developer to write you some custom javascript that will give you what you want. The other is a workaround: just don’t use the WordPress login page at all, and have users login on another page (e.g. www.yoursite.com/login). Then you won’t get a conflict with s2Member.

In case it helps, the popup at s2Member.com is powered by Bootstrap Modal windows. Documentation is available here: http://getbootstrap.com/javascript/#modal

Ok thanks everyone got it to work with the code Tim provided and the ZM Ajax Login & Register plugin. Does anyone have any experience with this plugin, is it stable? Just worried that the plugin will breakdown on me.

Great answer Kristine!
Would you mind telling us how the link was inserted in the menu?
Was a plugin used to allow the “data-toggle” argument or the shortcode?

Thanks.

Claude LaBadie

Hi all, I’m also starting to use ZM Ajax and Tim’s code but the plugin seems to be no longer maintained, any alternative suggestions ?