Page 1 of 1

Hook and Redirect AWAY from Member Options Page

PostPosted: May 2nd, 2011, 4:25 pm
by tkittredge
Is there a way to "hook" the redirect to the MOP allowing the presentation of a "custom" login / registration INSTEAD of MOP when a user is not logged in and attempts to access restricted content?

Ideally I would like to present a login as a modal overlay/popup in front of the restricted content to provide a seamless "just in time" login when a user attempts access, and providing there the option to log in or register.

Re: Hook and Redirect AWAY from Member Options Page

PostPosted: May 3rd, 2011, 1:53 am
by Cristián Lávaque
Sure, you can do that. :)

Instead of protecting the whole post/page with an access restriction, you can simply leave the page open, but protect the content using conditionals.

WP Admin -> s2Member -> API / Scripting -> Using Simple Conditionals
http://www.s2member.com/api-scripting-overview-video/

I hope that helps.