Page 1 of 1

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

PostPosted: May 21st, 2011, 12:45 pm
by rotju
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

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

PostPosted: May 23rd, 2011, 8:47 am
by rotju
Maybe another solution that works?

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

PostPosted: May 23rd, 2011, 11:09 am
by velpeo
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/

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

PostPosted: May 24th, 2011, 7:39 am
by rotju
Thanks velpeo,

I'll have a look into it. See if I can make something out of it.