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™

Multisite/Blogfarm - free to register, pay to switch theme

s2Member Plugin. A Membership plugin for WordPress®.

Multisite/Blogfarm - free to register, pay to switch theme

Postby rotju » May 21st, 2011, 12:45 pm

Hello,

I need some help to figure this idea out what might be possible with s2Member. Been searching the web for 2 days now and didn't really found an answer for this.

I want to setup a Wordpress Multisite (Blogfarm) where people can register for free and create a site (blog). But they wont have admin rights to their own registered sit (blog), only access to the posts/pages and the theme options (not the default appearance options, but the options of the theme itself (different themes have different options)). Very basic stuff.

Then they have the option to upgrade their site (blof) profile/role (membership level) so they can change their site (blog) theme. Basically: pay to change theme.

What would be totally awesome is if there will also be a way to make 2 levels of paid memberships.
Example: free member is theme 1 (default theme), silver member ($10 a year) is theme 2 and gold member ($20 a year) is theme 3.

Each of the themes will have their own options, that is why I want the blog owners only have certain access (non-admin) rights (only access to posts/pages/theme options) to their registered site (blog).

I hope I made the idea clear enough for anybody who could answer my question.
Really hoping to get this to work. Thank you in advance,

Ronald
User avatar
rotju
Registered User
Registered User
 
Posts: 3
Joined: May 21, 2011

Re: Multisite/Blogfarm - free to register, pay to switch the

Postby rotju » May 23rd, 2011, 8:47 am

Maybe another solution that works?
User avatar
rotju
Registered User
Registered User
 
Posts: 3
Joined: May 21, 2011

Re: Multisite/Blogfarm - free to register, pay to switch the

Postby velpeo » May 23rd, 2011, 11:09 am

There is some code from mu, which comes to mind.

http://xref.yoast.com/wpmu-2.9.2/nav.ht ... ource.html

there are some bits of code, which could be used to develop simple plugins (or hacking the core, but not recommended), functions like this come to mind

if( !is_site_admin() )
unset( $submenu['plugins.php'][10] ); // always remove the plugin installer for regular users
unset( $submenu['plugins.php'][15] ); // always remove the plugin editor
unset( $submenu['themes.php'][10] ); // always remove the themes editor

you could do the same thing, checking for role, using s2 api and hide things they don't have access to

Also look at this function:

function wpmu_get_blog_allowedthemes( $blog_id = 0 ) {
..
}

you could easily modify it to restrict based on user level also.
http://my-wp.com/2009/03/enabling-theme ... dpress-mu/
User avatar
velpeo
Registered User
Registered User
 
Posts: 4
Joined: May 15, 2011
Location: Missoula, Montana

Re: Multisite/Blogfarm - free to register, pay to switch the

Postby rotju » May 24th, 2011, 7:39 am

Thanks velpeo,

I'll have a look into it. See if I can make something out of it.
User avatar
rotju
Registered User
Registered User
 
Posts: 3
Joined: May 21, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 0 guests

cron