dazed and confused - membership

By ross - January 26, 2017

Hi there.

Thanks for posting.

What I think you are going to need is something like this:

<?php require_once "cmsb/lib/viewer_functions.php"; ?>

<?php if (!$CURRENT_USER) { websiteLogin_redirectToLogin(); } ?>

<?php if ($CURRENT_USER['basic_member']) { header("Location: basicpage.php"); } ?>

?php if ($CURRENT_USER['preferred_member']) { header("Location: whiteoak.php"); } ?>

Notice that I've marked in red where your field names go. Make sure to update these if you are using different names.

There may also be some other tweaks required depending on your setup.

Give it a shot and let me know any questions.

Thanks!

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/