Page 1 of 1

Possible for users to have different membrships?

PostPosted: November 5th, 2011, 6:46 am
by valeriek
Hello,

Before I buy the pro version, I need to make sure I can do the following :

My users must be able to buy as many memberships as they want. First they register to the basic level, level 0 (free) to then have access to a choice of other memberships they can buy. Actually they become members of specific pages. So it's not a question of levels, each membership having nothing to do with the previous one. One membership level = access to one specific page. Can this be done?

If it's possible, wwill it be possible for them to see a list of all their subscriptions with expiry dates?

Thank you!

Re: Possible for users to have different membrships?

PostPosted: November 5th, 2011, 7:50 am
by Eduan

Re: Possible for users to have different membrships?

PostPosted: November 5th, 2011, 10:05 pm
by Cristián Lávaque
Custom capabilities would be the way to go, but they don't support independent expirations, although this will be possible very soon. When that becomes possible, you'll be able to show the date for each in a page.

You may want to take a look at the Specific Post/Page restriction: http://www.s2member.com/specific-posts-pages-video/ With these, though, I don't know how to show the time left. I'm emailing Jason about it.

I hope that helps. :)

Re: Possible for users to have different membrships?

PostPosted: November 6th, 2011, 11:50 am
by Jason Caldwell
Thanks for the heads up on this thread.
There's currently nothing built into s2Member that would provide a display of the time remaining. However, if you follow these instructions, I've created a custom function to accomplish this for you.

Create this directory and file:
/wp-content/mu-plugins/s2-sp-access-time-remaining.php
( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )
Unzip the attached file and upload it to this location please.
s2-sp-access-time-remaining.zip
(773 Bytes) Downloaded 4 times

Now you can do something like this in PHP.
Code: Select all
<?php
$id 
= $post_or_page_id = 123;
echo 'ID #'.$id.' &raquo; '.s2_sp_access_time_remaining($id);
?>