PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Hook and Redirect AWAY from Member Options Page

s2Member Plugin. A Membership plugin for WordPress®.

Hook and Redirect AWAY from Member Options Page

Postby tkittredge » May 2nd, 2011, 4:25 pm

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.
User avatar
tkittredge
Registered User
Registered User
 
Posts: 20
Joined: May 2, 2011

Re: Hook and Redirect AWAY from Member Options Page

Postby Cristián Lávaque » May 3rd, 2011, 1:53 am

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron