OG User Roles: Installation
Last modified: March 7, 2009 - 19:16
INSTALLATION
- If you are currently running the "OG Roles" module, please uninstall it. It is incompatible with the "OG User Roles" module.
- Enable the module from administer->site building->modules. This should create new table "og_users_roles".
- Go to administer->organic groups->organic groups user roles. In the Group roles fieldset, place a check next to each of the roles you wish to become group "Assignable roles". That is, place a check next to each role that you wish to be assigned to users within specific groups. A user assigned one of these roles within a group will only have the permissions granted by the role while he is within that group's context.
No roles will be group assignable until you complete this step.
Group user roles are assigned using the "Configure member roles" tab that OGUR will now place in each group's "Member's" page (see: http://drupal.org/node/343347).
- Go to administer->user management->access control and give the "configure member roles" permission to the roles you wish to be able to assign group roles to users. Also, assign "administer og_user_roles" permission to user(s) who will be allowed to access the OG User Roles administration (settings) page.
- If your basic "OG Roles aren't working", please note the following:
It appears that the Drupal caching mechanism is used much more stringently as a result of either 5.7 core or OG 5.x-7.x. Assuming OGR has been installed correctly, this may result in group roles you've assigned to group users not being respected when they should (i.e., when they are in group context). In this case, the solution is to implement the "Clear the Cache" setting in OGR: http://drupal.org/node/263944. Since OG version 5.x-7.0 and it's new access control, you may need to click on the "Clear the Cache" setting and install the user.module patch. See: http://drupal.org/node/177948 - This module supports content_access and acl modules. If you have installed these access control modules, please follow integration instructions here: http://groups.drupal.org/node/5392
- Theme Issue
This module uses multi column checkbox settings for display of user roles. This saves space, particulary when your group has lots of users. To activate, you will need to drop the following code into the style.css file of your active theme(s):
.checkbox-columns .form-item {
font-size:75%;
width: 12em;
margin-right: 1px;
float: left;
display: inline;
}
.checkbox-columns-clear .form-item {
font-size:75%;
width: 12em;
margin-right: 1px;
clear: left;
float: left;
display: inline;
}
