Total paid registration time minus lapsed periods?
Posted: July 11th, 2011, 7:58 pm
I see that 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.
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.
- Is this unchanging even if the user is demoted (such as when a subscription is canceled), then promoted again (upon resuming subscription)?
- 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.