latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Custom redirects depending on category?

Home Forums Community Forum Custom redirects depending on category?

This topic contains 2 replies, has 3 voices. Last updated by  Cristián Lávaque 4 years, 6 months ago.

Topic Author Topic
Posted: Monday Jun 18th, 2012 at 2:06 pm #16783
Joe Chapuis
Username: joechaps

Hello –

I’m using the Pro version, and have two protected categories:
Level0 can access Cat1
Level1 can access Cat1 and Cat2

If someone tries to access a Cat1 post without being logged in @ Level0 or Level1, I would like them to be redirected to page X.

If someone tries to access a Cat2 post without being logged @ Level1, I would like them to be redirected to page Y.

Can someone please tell me how I can accomplish this?

Thank you in advance…

-joe

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Monday Jun 18th, 2012 at 7:36 pm #16801
Eduan
Username: Eduan
Moderator

Hello Joe,

You can probably achieve this using Advanced PHP conditionals, they would allow you to do all kinds of ifs in order to achieve what you need.

You can find it under Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals.

Hope this helps. :)

Posted: Tuesday Jun 19th, 2012 at 6:49 am #16871

Hi Joe.

Eduán is right, you can use PHP conditionals in your Membership Options Page to check the MOP Vars: [hilite path]Dashboard -› s2Member® -› API / Scripting -› Membership Options Page Variables (MOP Vars)[/hilite]

Based on those, you’d do a JavaScript redirection to the page you want to send them.

Now, you can also show different content on the same Membership Options Page, instead of redirecting the person.

I hope that helps. :)

Viewing 2 replies - 1 through 2 (of 2 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.