PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Custom Capabilities with start date

s2Member Plugin. A Membership plugin for WordPress®.

Custom Capabilities with start date

Postby buzzcube » August 14th, 2011, 3:42 am

Hi.

I came across this post viewtopic.php?f=4&t=1633 and was wondering if there is an easier way to handle this.

I essentially want to sell a course and while s2member is awesome at dripping content based on subscription level I'm not sure on how to drip content based on a custom capability.

I could give a certain membership level access to the course and then setup content dripping but the side affect is that all high levels will also have access to this course instead of through an addon purchase? The course will be divided into weekly lessons over a period of time starting from when they purchased the course and not the date they got the membership subscription.

What is the best method of implementing something like this?

Many thanks.
Richard.
User avatar
buzzcube
Registered User
Registered User
 
Posts: 2
Joined: March 22, 2011

Re: Custom Capabilities with start date

Postby Bruce C » August 14th, 2011, 11:29 am

I essentially want to sell a course and while s2member is awesome at dripping content based on subscription level I'm not sure on how to drip content based on a custom capability.

You could try playing around with the code found under s2Member -> API/Scripting -> s2Member Content Dripping, at the verrry bottom.

Something like this? :
Code: Select all
    <?php if(s2member_paid_registration_time("ccap_course") >= ($_7_days_ago = strtotime("7 days"))){ ?>
        Drip more content to Members that started paying you for ccap_course, at least 7 days ago.
    <?php } ?>


I'm not sure if it'll work, as I don't have my site set-up with people who are buying ccaps right now, so I have nothing to test with. If it doesn't work perhaps someone can come up with a hack to make something like that work. I can't find any other documentation on it.

I could give a certain membership level access to the course and then setup content dripping but the side affect is that all high levels will also have access to this course instead of through an addon purchase?


You could either create an entire new cotent-dripping and copy-and-paste for higher users, or just set the PayPal button with the ccap already set in it.


I hope I helped in some way!
:)
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest

cron