PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

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

s2Member Plugin. A Membership plugin for WordPress®.

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

Postby zoliverz » December 9th, 2010, 7:25 am

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
User avatar
zoliverz
Registered User
Registered User
 
Posts: 2
Joined: December 9, 2010

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

Postby echoleaf » December 9th, 2010, 8:14 pm

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.
User avatar
echoleaf
Registered User
Registered User
 
Posts: 29
Joined: October 4, 2010

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

Postby zoliverz » December 11th, 2010, 1:47 am

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.
User avatar
zoliverz
Registered User
Registered User
 
Posts: 2
Joined: December 9, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 3 guests

cron