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.

Target Content Seperatery o Users on Same Lvl

Home Forums Community Forum Target Content Seperatery o Users on Same Lvl

This topic contains 4 replies, has 2 voices. Last updated by  Eduan 4 years ago.

Topic Author Topic
Posted: Thursday Dec 20th, 2012 at 7:43 am #35135

Hi,

We currently use WPMU Dev’s Membership plugin but are in the process of moving to S2M. (great work btw)

What is the best way to go about targeting users with different content who are on the same access level? An example of why we want to do this would be.

One person buys access level 1 for £50

We have a sale and another person buys access level one for £30

We then want to run an offer that is “upgrade to access level 2 for the difference in the price you paid between access level 1 and 2.”

They may be lots of other reasons why we would want to separate content between people on the same access level.

Is there something we can use in the advanced conditionals either the sort codes or php?

Cheers

Paul

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Friday Dec 21st, 2012 at 9:37 am #35245

Any help with this guys ?

Cheers

Posted: Friday Dec 21st, 2012 at 4:58 pm #35278
Eduan
Username: Eduan
Moderator

Hello Paul,

This is possible with a combination of custom capabilities (ccaps for short) and s2Member conditionals.

You would offer different ccaps in each of these different offers. So normal price button would have a ccap named “normal” and the sale would have a ccap of “sale-christmas”. Of course the ccap names would be better so that you can differentiate better, but you get the idea.

For more info on ccaps check this video: Video » s2Member (Custom Capabilities)

Then s2Member conditionals would separate the content based on the fact that the user is level 1 and has a certain ccap. So the logic in pseudo-code would be:

if user is level 1 AND can access ccap "normal"
    show content for normal users
elseif user is level 1 AND can access ccap "sale-christmas"
    show content for sale users
else
    show content for users that aren't level 1

That’s a simple pseudo-code that should work for your needs. For more info on s2Member conditionals check this article: Knowledge Base » s2Member® Conditionals

Hope this helps. :)
– Eduan

Posted: Friday Dec 21st, 2012 at 5:14 pm #35281

Cheers Eduan that’s great :) thanks for your help!

Posted: Saturday Dec 22nd, 2012 at 3:03 pm #35345
Eduan
Username: Eduan
Moderator

No problem! Glad I was able to help. :)

Viewing 4 replies - 1 through 4 (of 4 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.