Page 1 of 1

Multiple membership option pages

PostPosted: September 28th, 2010, 5:03 pm
by ohadga
Hi,
We recently implemented and are very happy with s2member plugin!

One issue that we are trying to solve though. We have a membership option page to which non registered user arrive when trying to enter a restricted page.

Now i have another button in my site, and i want to distinguish betweem members to non members.
If non members (and let assume i have only level 1 and i do not allow free registration) click on this page that will be routed to page A, if members click on this page they will be routed to page B.

Is this request avaiable with s2member?

Thanks!
Ohad
http://www.myhobbymaster.com

Re: Multiple membership option pages

PostPosted: September 29th, 2010, 10:59 am
by Elizabeth
Hi,

Yes, this is covered under Advanced Conditionals
DashBoard -> s2Member -> API Scripting -> Using Advanced Conditionals

Following your example:
Code: Select all
<?php if (current_user_can("access_s2member_level1")){ ?>
    Some content from Page B
<?php } else { ?>
    Some content from Page A
<?php } ?>