Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-11T20:59:33-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15338 2011-10-11T20:59:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=46646#p46646 <![CDATA[Re: Content dripping for multiple custom capabilities]]>
Since there's only one EOT in the WP admin, are individual ccap subscription lengths modifiable via the paypal interface?

How should I handle a registered user who has purchased one ccap'd subscription, but 3 months later wants to purchase a differen't ccap'd subscription?

Joe buys an individual post (ccap1). It lasts for 1 year.
3 months later, Joe buys a different post (ccap2). It also lasts for a year.

Is that going to prompt him to register a separate account on my site?
Does that automatically bump the EOT for ccap1 to ccap2's EOT?
Can I edit/manage/cancel those subscriptions separately inside of paypal?

Thank you,

Kenny

Statistics: Posted by kennymcnett — October 11th, 2011, 8:59 pm


]]>
2011-10-01T17:13:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=42096#p42096 <![CDATA[Re: Content dripping for multiple custom capabilities]]> Statistics: Posted by crazycoolcam — October 1st, 2011, 5:13 pm


]]>
2011-10-01T15:14:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=42083#p42083 <![CDATA[Re: Content dripping for multiple custom capabilities]]> Statistics: Posted by cassel — October 1st, 2011, 3:14 pm


]]>
2011-10-01T03:20:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=42029#p42029 <![CDATA[Re: Content dripping for multiple custom capabilities]]>
pixls wrote:
If one of the plugin devs see this, do you have anything planned in the future that would bring this functionality? :)


Cassel is right, this is not possible yet, since the times for the ccaps aren't logged yet, and there's a single EOT that affects them all.

Yes, this is something that we plan to have soon. :)

Statistics: Posted by Cristián Lávaque — October 1st, 2011, 3:20 am


]]>
2011-09-28T09:06:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=41840#p41840 <![CDATA[Re: Content dripping for multiple custom capabilities]]>

Statistics: Posted by pixls — September 28th, 2011, 9:06 am


]]>
2011-09-28T08:59:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=41838#p41838 <![CDATA[Re: Content dripping for multiple custom capabilities]]>
Hopefully we'll get a better more definitive response from someone more experienced. :)

~Cam

Statistics: Posted by crazycoolcam — September 28th, 2011, 8:59 am


]]>
2011-09-28T08:21:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=41836#p41836 <![CDATA[Re: Content dripping for multiple custom capabilities]]>
crazycoolcam wrote:
This is taken from the S2Member Content Dripping section in the admin panel. I don't remember if a Ccap can take the place of the level, but it is possible that it could.

Hope this helps.

~Crazycoolcam
----------------------------------------------

* Function: s2member_paid_registration_time ($level, $user_id); // returns a Unix timestamp.

The $level argument is optional. It defaults to the first/initial Paid Registration Time, regardless of Level#.
Or you could do this: s2member_paid_registration_time("level1"); which will give you the Registration Time at Level #1.
If a User/Member has never paid for Level #1 ( i.e. they signed up at Level#2 ), the function will return 0.

The argument $user_id defaults to the current user that is logged in.

Here are some examples:

Code:
<?php
$time = s2member_registration_time (); // ... first registration time ( free or otherwise ).
$time = s2member_paid_registration_time (); // ... first "paid" registration and/or upgrade time.
$time = s2member_paid_registration_time ("level1"); // ... first "paid" registration or upgrade time at Level#1.
$time = s2member_paid_registration_time ("level2"); // ... first "paid" registration or upgrade time at Level#2.
$time = s2member_paid_registration_time ("level3"); // ... first "paid" registration or upgrade time at Level#3.
$time = s2member_paid_registration_time ("level4"); // ... first "paid" registration or upgrade time at Level#4.
?>

Here are some actual examples that should give you some ideas:

------- Example #1 ------------------------------------------------------

<?php if(s2member_paid_registration_time() > 0){ ?>

    This is some content that will be displayed to all Members that have paid you at some point.

    <?php if(s2member_paid_registration_time("level2") > 0){ ?>
        This will be displayed to all Members that have paid for Level#2 at some point.
    <?php } ?>

    <?php if(s2member_paid_registration_time("level3") > 0){ ?>
        This will be displayed to all Members that have paid for Level#3 at some point.
    <?php } ?>

<?php } ?>

------- Example #2 ------------------------------------------------------

<?php if(s2member_paid_registration_time() > 0){ ?>

    This is some content that will be displayed to all Members that have paid you at some point.

    <?php if(s2member_paid_registration_time("level1") >= ($_30_days_ago = strtotime("-30 days"))){ ?>
        Drip content to Members that started paying you at Level#1, at least 30 days ago.
    <?php } ?>

    <?php if(s2member_paid_registration_time("level1") >= ($_60_days_ago = strtotime("-60 days"))){ ?>
        Drip more content to Members that started paying you at Level#1, at least 60 days ago.
    <?php } ?>

<?php } ?>





I have already been fiddling around with all the code in the "Content Dripping" section without any success. I don't think it would do anything to just put in a ccap instead of a level (...(s2member_paid_registration_time("level1")...) as s2Member don't register the time of purchase from ccap. That's what it seems like to me anyway but that's also my question to anyone who knows if there is a way to get to know how long the member have had access to a specific ccap?

oh and yeah my last question for you was meant for this segment "I think what you are wanting to do is possible, however you will need to base your logic off of the purchase times and not the EOT." How would you do that with "purchase times"? :)

Statistics: Posted by pixls — September 28th, 2011, 8:21 am


]]>
2011-09-28T07:56:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=41835#p41835 <![CDATA[Re: Content dripping for multiple custom capabilities]]>
Hope this helps.

~Crazycoolcam
----------------------------------------------

* Function: s2member_paid_registration_time ($level, $user_id); // returns a Unix timestamp.

The $level argument is optional. It defaults to the first/initial Paid Registration Time, regardless of Level#.
Or you could do this: s2member_paid_registration_time("level1"); which will give you the Registration Time at Level #1.
If a User/Member has never paid for Level #1 ( i.e. they signed up at Level#2 ), the function will return 0.

The argument $user_id defaults to the current user that is logged in.

Here are some examples:

Code:
<?php
$time = s2member_registration_time (); // ... first registration time ( free or otherwise ).
$time = s2member_paid_registration_time (); // ... first "paid" registration and/or upgrade time.
$time = s2member_paid_registration_time ("level1"); // ... first "paid" registration or upgrade time at Level#1.
$time = s2member_paid_registration_time ("level2"); // ... first "paid" registration or upgrade time at Level#2.
$time = s2member_paid_registration_time ("level3"); // ... first "paid" registration or upgrade time at Level#3.
$time = s2member_paid_registration_time ("level4"); // ... first "paid" registration or upgrade time at Level#4.
?>

Here are some actual examples that should give you some ideas:

------- Example #1 ------------------------------------------------------

<?php if(s2member_paid_registration_time() > 0){ ?>

    This is some content that will be displayed to all Members that have paid you at some point.

    <?php if(s2member_paid_registration_time("level2") > 0){ ?>
        This will be displayed to all Members that have paid for Level#2 at some point.
    <?php } ?>

    <?php if(s2member_paid_registration_time("level3") > 0){ ?>
        This will be displayed to all Members that have paid for Level#3 at some point.
    <?php } ?>

<?php } ?>

------- Example #2 ------------------------------------------------------

<?php if(s2member_paid_registration_time() > 0){ ?>

    This is some content that will be displayed to all Members that have paid you at some point.

    <?php if(s2member_paid_registration_time("level1") >= ($_30_days_ago = strtotime("-30 days"))){ ?>
        Drip content to Members that started paying you at Level#1, at least 30 days ago.
    <?php } ?>

    <?php if(s2member_paid_registration_time("level1") >= ($_60_days_ago = strtotime("-60 days"))){ ?>
        Drip more content to Members that started paying you at Level#1, at least 60 days ago.
    <?php } ?>

<?php } ?>

Statistics: Posted by crazycoolcam — September 28th, 2011, 7:56 am


]]>
2011-09-28T07:22:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=41831#p41831 <![CDATA[Re: Content dripping for multiple custom capabilities]]>

Statistics: Posted by pixls — September 28th, 2011, 7:22 am


]]>
2011-09-28T07:10:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=41830#p41830 <![CDATA[Re: Content dripping for multiple custom capabilities]]> http://www.primothemes.com/forums/viewtopic.php?f=4&t=15339#p41828

I think what you are wanting to do is possible, however you will need to base your logic off of the purchase times and not the EOT. (I think I remember reading about this somewhere over the last week or so, but I don't remember where.) It would use logic like x number of days after the CCap purchase date.

~Crazycoolcam

Statistics: Posted by crazycoolcam — September 28th, 2011, 7:10 am


]]>
2011-09-28T06:59:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=41829#p41829 <![CDATA[Re: Content dripping for multiple custom capabilities]]>

If one of the plugin devs see this, do you have anything planned in the future that would bring this functionality? :)

Statistics: Posted by pixls — September 28th, 2011, 6:59 am


]]>
2011-09-28T06:45:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=41827#p41827 <![CDATA[Re: Content dripping for multiple custom capabilities]]> Good luck.

Statistics: Posted by cassel — September 28th, 2011, 6:45 am


]]>
2011-09-28T05:27:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15338&p=41825#p41825 <![CDATA[Content dripping for multiple custom capabilities]]>
I'm building this site where i'm going to sell different courses. I'm setting it up using custom capabilities(course1, course2 etc...). I also want it to drop new content automatically every week and it's here i'm getting stuck.

I think i know the answer to my question after searching the forum but I still want to make sure so I know how I should approach this project.

Ok here is the scenario. If a member purchases course1(ccap) today and then course2 in three months, s2member would still drip the content in course2 like he would have bought it the same day as he did course1(three months ago) because s2member don't register when the member bought the custom capability package if I understand how it works correctly? Also the member can't just end the term for course1 and continue with course2, he would just end his membership altogether?

I would really appreciate it if someone who had this problem could help me out because I feel a little stuck right now in how i should approach this project. :)

Statistics: Posted by pixls — September 28th, 2011, 5:27 am


]]>