View Single Post
Old 03-25-2013, 11:41 PM  
vdbucks
Monger Cash
 
Industry Role:
Join Date: Jul 2010
Posts: 2,773
Quote:
Originally Posted by Anthony View Post
Again thanks everyone, but it seems I'm running into a snafu, as I want to use NATS DB to run the login for members.
I wrote a plugin for wordpress that first authenticates against the nats database, then checks if the user exists in wordpress.. if they exist in wp the plugin logs them in, if they don't yet exist in wp then the plugin first creates their profile then logs them in. And when members expire, their wp accounts remain active, but they cannot log in and are informed their account is expired because the nats auth fails.

I use this together with password sentry (which has a wp plugin as well).

As for the design, depending on what you need as far as separation between the tour and members areas go, it can be as simple as using "if (is_user_logged_in())" to display tour content or members area content.

For our latest site, Asian Sex Diary, we use the same posts for our tour as we do our members areas, and simply call tour or members content via custom fields.
vdbucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote