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?
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?
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?