Community Support Forums — WordPress® ( Users Helping Users ) — 2011-07-13T15:09:34-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14085 2011-07-13T15:09:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14085&p=28307#p28307 <![CDATA[Re: Total paid registration time minus lapsed periods?]]>

Is this unchanging even if the user is demoted (such as when a subscription is canceled), then promoted again (upon resuming subscription)?

Yes, it is preserved, even if the Member is demoted.
However, you can change this behavior if you need to.

Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code:
<?php
add_filter
("ws_plugin__s2member_preserve_paid_registration_times", "__return_false");
?>


If so, is there any way to get the total cumulative time at a paid level minus any lapses. For example, suppose a user is Level 1 for a month, then doesn't pay for 3 months (during which time s2Member demotes the user to Level 0), then resumes subscription (back to Level 1). Their paid registration time would be reported as 4 months.
Sorry, nothing like that yet. Thanks for the great suggestion though, I'll see what we can do. As Cristián mentioned, we are working to improve this aspect of s2Member, and there are plans to create additional options for s2Member Pro Customers.

Statistics: Posted by Jason Caldwell — July 13th, 2011, 3:09 pm


]]>
2011-07-11T20:36:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14085&p=28151#p28151 <![CDATA[Re: Total paid registration time minus lapsed periods?]]>
You could probably create a custom script to monitor account creation/modification and keep your own log of the roles and times somewhere in the database. This thread may help with the hooks you can use for that viewtopic.php?f=4&t=10414

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — July 11th, 2011, 8:36 pm


]]>
2011-07-11T19:58:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14085&p=28146#p28146 <![CDATA[Total paid registration time minus lapsed periods?]]> s2member_paid_registration_time() and associated constants give time since a paid level was first achieved. This is documented as being set once and never changing.

  1. Is this unchanging even if the user is demoted (such as when a subscription is canceled), then promoted again (upon resuming subscription)?
  2. If so, is there any way to get the total cumulative time at a paid level minus any lapses. For example, suppose a user is Level 1 for a month, then doesn't pay for 3 months (during which time s2Member demotes the user to Level 0), then resumes subscription (back to Level 1). Their paid registration time would be reported as 4 months.

This is important for content dripping. If a user comes back to the service after a long gap, they would instantly get all the content they would have had if they had kept paying all along. My service will have a membership time component, so I want to make sure I understand how this behaves in the long term.

One workaround is to configure s2Member to delete an account upon demotion to Level 0, but that's more drastic than I'd like.

Statistics: Posted by PseudoNyhm — July 11th, 2011, 7:58 pm


]]>