Page 1 of 1

1. rent a website 2. paid access for authors possible?

PostPosted: December 9th, 2010, 7:25 am
by zoliverz
Hello,
I saw some of your video tutorials and read about s2 member but could not get an answer for 2 of my questions.

1. Is it possible to restrict the number of members to only one person and to allow the acces to the wp backend after payment is done. Reason: I want to rent a subdomain to only one person on a monthly basis. Pages, posts, categories shall not be protected to the public. Only the acces to the wordpress backend of that subdomain should be accessable after the payment for only one person.

2. Is it possible with s2 member to allow a paid membership for authors, contributors or another role within wordpress? Same here: access to pages, posts, categories shall not be protected to the public.

Thanks in advance.
Regards
Oliver

Re: 1. rent a website 2. paid access for authors possible?

PostPosted: December 9th, 2010, 8:14 pm
by echoleaf
Not sure about #1 (I am wondering about limiting members myself) but #2 should be possible with Custom Capabilities. I'm inferring from this on the API/Scripting page:

"Custom Capabilities are an extension to a feature that already exists in WordPress®. The current_user_can() function, can be used to test for these additional Capabilities that you allow."

I assume you can add abilities specific to a role using that function.

Re: 1. rent a website 2. paid access for authors possible?

PostPosted: December 11th, 2010, 1:47 am
by zoliverz
thanks for your hint. I just studied the video tutorial "custom capabilities" for that and tried to apply the steps. It seems to work if you want to restrict acces to tags, pages, categories... but did not get it to work with roles. In the general options S2 member sets the default role to "subscriber". I do not understand where I can change it to a different role like author or contributor after the user did his payment.
There is a conditional tag defined in wordpress called "is_author()" . I made a paypal button and changed the functions.php within my theme as described in the video but could not get it to work. Maybe I did wrong coding (I am newbie) but anyway I am not sure if that is the right way.