Membership Plugin: How do I create rules that apply to blog owners?
WPMU DEV Community
Membership Plugin: How do I create rules that apply to blog owners?
Inactive
31 pointsStarting to get into this DEV thingI'm new here
Leo
Member
—
15th July 2010 (1 year ago)
I need to be able to create global rules that include all users, including network blog owners. Currently this does not seem to be possible as the owner of blog id 2 does not show up in the list of subscribers under blog id 1. I tried enabling the global tables option, but that did not seem to do the trick.
Please LMK if this is possible, and if so how to go about configuring it.
I need to be able to create global rules that include all users, including network blog owners. Currently this does not seem to be possible as the owner of blog id 2 does not show up in the list of subscribers under blog id 1. I tried enabling the global tables option, but that did not seem to do the trick.
Please LMK if this is possible, and if so how to go about configuring it.
Hey, Leo.
I am doing the same thing on my site right now.
Is far as I see it has to be coded into the theme of the blog 1.
Check this out http://premium.wpmudev.org/forums/topic/membership-plugin-3
and I would be happy to help. Just ask if you need it.
We are customizing the dashboard for blog owners. We want to be able to use the membership module to control what blog owners see when logged in to /wp-admin/
I have created some rules that control what dashboard menu items that blog owners should be allowed to see. The problem is that the subscribers list for the "root" blog (blog id=1) does not list the users that own blogs. For instance the owner of blog id=2 does not show up in list of possible subscribers for the root blog.
To replicate this, simply create a user and give him a blog. You will see that there is no way to assign him a membership level that was created for the root blog.
I hope this was clear enough. Its a bit hard to explain.
The main issue for this is that the "protection" the membership plugin introduces is only loaded on the front end of the site - this is primarily because it's aimed at protecting content rather than functionality and because some of the rules could lock a user out of their own posts if set up incorrectly.
Now, saying that, the permissions can be accessed via the classes and helper functions for the plugin, so theoretically we can chuck together some plugins that check if a user is a member or on a certain level and modify the menu's and dashboard accordingly.
On the subject of members not showing up on the main blog in the members list, i've yet to be able to reproduce that, as all the tests I've done registering users and blogs has had the user showing on both the new blog and the main one - so I'm still looking into that issue at the moment.
Enable or disable WP3 Multisite Backend Menus. Adds options to toggle administration menus at Super Admin->Optons page under "Menu Settings". WP3 already toggles the Plugins menu, I've added a bunch more in the same/similar way.
I use the plugin to simplify the menus available to the entire network of sites. I use this plugin in a school(k-12) WP3 Multisite installation to disable the Deltete Blog, Permalinks, Import, Media Upload, Add Users and Themes menus.
@Barry do you think we would be able to talk tomorrow about this on the live chat? Please let me know.
Thanks
@Nit3watch yes that plugin will hide some menus and other functionality, but what we are trying to do is create levels that we give access to the front-end and we can also restrict on the back-end
Responses (14)
Member — 16th July 2010 (1 year ago) #
Hey, Leo.
I am doing the same thing on my site right now.
Is far as I see it has to be coded into the theme of the blog 1.
Check this out
http://premium.wpmudev.org/forums/topic/membership-plugin-3
and I would be happy to help. Just ask if you need it.
Developer — 16th July 2010 (1 year ago) #
Hi, can you clarify a bit more what you are trying / wanting to do and I'll see if I can work something out for you.
Member — 16th July 2010 (1 year ago) #
Hi Barry,
We are customizing the dashboard for blog owners. We want to be able to use the membership module to control what blog owners see when logged in to /wp-admin/
I have created some rules that control what dashboard menu items that blog owners should be allowed to see. The problem is that the subscribers list for the "root" blog (blog id=1) does not list the users that own blogs. For instance the owner of blog id=2 does not show up in list of possible subscribers for the root blog.
To replicate this, simply create a user and give him a blog. You will see that there is no way to assign him a membership level that was created for the root blog.
I hope this was clear enough. Its a bit hard to explain.
Member — 17th July 2010 (1 year ago) #
Barry,
Anything on this?
Thanks
Developer — 18th July 2010 (1 year ago) #
Let me have a look and a think and see what I can come up with.
Member — 18th July 2010 (1 year ago) #
Thanks Barry,
I really appreciate it!
Member — 20th July 2010 (1 year ago) #
@Barry,
Wanted to know if you were able to find any solution to this problem.
Thanks,
Member — 21st July 2010 (1 year ago) #
Me too...
Developer — 21st July 2010 (1 year ago) #
The main issue for this is that the "protection" the membership plugin introduces is only loaded on the front end of the site - this is primarily because it's aimed at protecting content rather than functionality and because some of the rules could lock a user out of their own posts if set up incorrectly.
Now, saying that, the permissions can be accessed via the classes and helper functions for the plugin, so theoretically we can chuck together some plugins that check if a user is a member or on a certain level and modify the menu's and dashboard accordingly.
On the subject of members not showing up on the main blog in the members list, i've yet to be able to reproduce that, as all the tests I've done registering users and blogs has had the user showing on both the new blog and the main one - so I'm still looking into that issue at the moment.
Member — 21st July 2010 (1 year ago) #
you might want to look into wpmu menu's plugin: http://wordpress.org/extend/plugins/menus/
With a few custom bits it might work for you
Enable or disable WP3 Multisite Backend Menus. Adds options to toggle administration menus at Super Admin->Optons page under "Menu Settings". WP3 already toggles the Plugins menu, I've added a bunch more in the same/similar way.
I use the plugin to simplify the menus available to the entire network of sites. I use this plugin in a school(k-12) WP3 Multisite installation to disable the Deltete Blog, Permalinks, Import, Media Upload, Add Users and Themes menus.
Member — 21st July 2010 (1 year ago) #
@Barry do you think we would be able to talk tomorrow about this on the live chat? Please let me know.
Thanks
@Nit3watch yes that plugin will hide some menus and other functionality, but what we are trying to do is create levels that we give access to the front-end and we can also restrict on the back-end
Developer — 21st July 2010 (1 year ago) #
@Leo - no problem, I'll be there and I'm sure we can work out some strategy between us :)
Member — 26th July 2010 (1 year ago) #
@Barry
Sorry I was not able to be on the last chat. I would like to know if you will be this Thursday for sure.
Thanks
Developer — 27th July 2010 (1 year ago) #
@Leo - certainly should be yep.
Become a member