Could you just help me with this one now? I might be getting too brave, but now i have this scenario:
If you try to access PageA and have access to more, then you are sent to PageB (that is the code you gave me and works)
If you try to access PageB (reserved for higher access) and do NOT have that access, i want you to go to PageA
I know that s2Member will
redirect the person without proper access to a membership option page, but if i can
redirect them to the sales page for that particular "course" it would be easier and more logical. So i used your code and inverted the conditions like this:
- Code: Select all
[s2If !current_user_can(access_s2member_ccaps_basic) ]<script type="text/javascript">window.location = 'http://scrapbookcampus.com/register-basic-scrap-course-with-psp/';</script>[/s2If]
[s2If current_user_can(access_s2member_ccap_basic) && !current_user_can(administrator) ][/s2If]
But i am getting a Parse error something. Did i make a mistake in the editing of the code? Maybe a syntax error?