Forums

[Plugin: Capability Manager] Custom Role for use Site Wide in MU (14 posts)

  1. dwcouch
    Member
    Posted 2 years ago #

    I'm attempting to create some customized roles that will be available across all instances of an MU install. I've created a role I want to use at the 'Root' level. Admin/Owner Account of the MU install.

    It looks like I need to duplicate this for each blog I've created under that.

    Am I missing something?

  2. Txanny
    Member
    Posted 2 years ago #

    I'm sorry. The plugin is not tested on MU, so you are not missing anything, just MU was not contemplated by now.

    Any way, I take your comment and will work on it to provide full support to MU installs and to provide the feature you're asking for.

    First I will analyze how this works on MU and how it can be implemented, as I only have an MU install for testing purposes. I will be back with new comments as soon as I've seen how it works.

  3. dwcouch
    Member
    Posted 2 years ago #

    Thanks for the prompt response! Looking forward to a solution :D

  4. Txanny
    Member
    Posted 2 years ago #

    I'm still looking at this. As I've seen so far, MU saves independent roles for each blog, and look like there is no provided way to set a role for all blogs at one.

    I will investigate a bit more and ask in the lists to see if other developers can give me some light on this.

  5. dwcouch
    Member
    Posted 2 years ago #

    Thanks Again Txanny,
    If it is not possible to set this in MU to 'cascade' the capabiliries through the site. Do you know how the customized roles might be copied from one and pasted to another blog?

    It would seem your research will turn that up - I will be looking too!

  6. dwcouch
    Member
    Posted 2 years ago #

    Txanny, been a while, I've not had much luck turning up a means to do this. Can you shed light a means to copy roles from one blog to another manually?

  7. Txanny
    Member
    Posted 2 years ago #

    I'm sorry. I completely forgot about this issue. I promise I will check it again and will try to find out some way to do it.

    Hope you can excuse me about forgetting this topic.

  8. dwcouch
    Member
    Posted 2 years ago #

    No worries!
    I'm sure your busy out crating awesome plug-ins for WordPress and having a life ;)

    It's just that I've currently got CapsMan on 5 Blogs already and more will be coming - I fear loosing track of which blog has which settings.

    Establishing a means by which to cascade be it manual or automatic would be awesome!

    i do appreciate your getting back to me, as I'm certain you have more pressing concerns.

    I like the new Avatar BTW. New Hat?

  9. Txanny
    Member
    Posted 2 years ago #

    I'm setting up a sandbox for MU to test that and to find out the best way to manage it. I will come up with some comments (probably after some days as I will go on holidays soon).

    And yes, now it's time for a Panama summer hat ;)

  10. dwcouch
    Member
    Posted 2 years ago #

    Thanks for pursuing this one! I'm out for the next week as well ;)

  11. inksoad
    Member
    Posted 2 years ago #

    Hello and thank you very much for this very good plugin!

    I use this plugin in WPMU context, but roles defined on the main blog are not present in other, and we must define each role in each blog.
    I'm reading that you work to do this. What's up about this?

    Thank you very much

    Best regards

  12. Txanny
    Member
    Posted 2 years ago #

    WordPress itself manages the roles at blog level, not at site level.
    Anyway, this has been discussed on the developers list and will be added to Capability Manager 2.0. (No ETA for that version).

    Can follow it at the tracker at http://tracker.alkivia.org/view.php?id=134

  13. inksoad
    Member
    Posted 2 years ago #

    Thank you for your answer and congratulation for your plugin!

    I'hve found a way to solve this problem :with a hook on the blog creation, and copy the wp_1_user_roles in the new blog :

    $var_roles = get_blog_option( 1,'wp_1_user_roles');
    update_blog_option($blog_id, 'wp_'.$blog_id.'_user_roles', $var_roles);

    This work fine.

    Best regards

  14. Txanny
    Member
    Posted 2 years ago #

    It's a solution when creating a new blog. But if you change the roles and capabilities on the first blog, they don't be updated on all others.

Topic Closed

This topic has been closed to new replies.

About this Topic