vdbucks |
03-25-2013 11:41 PM |
Quote:
Originally Posted by Anthony
(Post 18764209)
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.
|