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™

Restricting access to themes and plugins??

s2Member Plugin. A Membership plugin for WordPress®.

Restricting access to themes and plugins??

Postby bm11100 » October 20th, 2010, 12:00 pm

I am using WPMU v 3.0.1 and just installed the free s2member plugin. For my site, we give paying members access to certain plugins and themes that the free members cannot access. Is there a way to configure s2member for themes and plugin restrictions instead of page and posts??

Any info would help, thanks so much.
User avatar
bm11100
Registered User
Registered User
 
Posts: 1
Joined: October 20, 2010

Re: Restricting access to themes and plugins??

Postby Jason Caldwell » October 22nd, 2010, 10:28 pm

No, sorry. I can tell you that s2Member does not deal with this by default. I'm certain it could be accomplished, but it would require an additional plugin that reads in User capabilities affecting the display and availability of themes/plugins.

Something like this: ( this is just pseudo-code )
Code: Select all
<?php
if(current_user_can("access_s2member_level3")){
    // allow display of certain premium themes, plugins, etc.
}
?>
You'll find more examples of Advanced Conditionals in your Dashboard under: s2Member -> API Scripting. I would also recommend this VIDEO tutorial covering Custom Capabilties ( how to extend s2Member ): http://www.s2member.com/custom-capabilities-video/
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

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

cron