Skip to:
Content
Pages
Categories
Search
Top
Bottom

Privilaged Members? Special themes, plugins etc

  • @flynn

    Participant

    Hello all,

    I’ve got a bit of a unique question.

    The GSN (http://thegsn.org /endshamelessplug) is a function of my working with the Game Lab at the University of Wyoming. So there are some people I would like to give some special toys. For example, I would like to give our department head a unique them, and the soon-to-be department head an event scheduling plugin specifically made for her needs.

    I don’t want these plugins / themes to be globally available, and don’t want them to have elevated privileges on the GSN.

    Is there a way to do this?

    Thanks all :D

Viewing 3 replies - 1 through 3 (of 3 total)
  • @johnjamesjacoby

    Keymaster

    For a private setup, or one that you won’t be reusing for another client, what I do is create a hidden group and invite the special users into it. When they accept the invitation, you can then build your plugins around checking for people being in that group.

    Something simple like…

    <?php
    define('SPECIAL_GROUP', $your_groups_id);

    function is_user_special ( $user_id ) {
    if (!$user_id) {
    $user_id = bp_loggedin_user_id();
    }
    if ( groups_is_user_member($user_id, SPECIAL_GROUP) ) {
    return true;
    }
    }
    ?>

    …usually does the trick for me?

    @flynn

    Participant

    Hey John,

    Thanks for the reply, but I’m having a hell of a time with this one. It’s just not clicking.

    I was hoping there was a simple way to enable plugins / themes for specific users, but bleh…

    I did find a good way of working plugings. Instead of plugin_commander for WPMU, plugin_manager (http://wpmudev.org/project/wpmu-plugin-manager) is really tip-top. It supports auto-started plugins etc, but it over rides the default plugin listing, giving users access to only the plugins marked as open to “all users” in the manager. I just installed the custom plugin and made it an optional plugin for members of the GSN.

    Unfortunately, the theme thing needs to be a bit more precise. I don’t want to let fly with the self-installable themes as I would like to maintain a wee bit of branding. Suggestions?

    @mattkern

    Participant

    Thats a good trick John, thanks.

    The other day someone was asking about assigning different members “levels” to have access to certain assets. This seems like a good way to do it. Create 5 groups or so and base permissions on those.

    Any thoughts if that would be easier than assigning members an actual permission level?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Privilaged Members? Special themes, plugins etc’ is closed to new replies.
Skip to toolbar