Quote:
Originally Posted by hIBEES
I've made all the changed but running instal give a blank page :squareeyed:
|
You probably made the same mistake I did in this section of code...
Code:
Replace with ;
function getRoles($usergroupid) {
/*
## Paul M Version ##
Edit the code below to set roles for different vB usergroups
This assigns access in the following priority based on all primary and secondary group membership.
1. Assign default access (which is set to NO access below).
2. If they are a member of an allowed group, grant USER access.
3. If they are a member of a staff group, grant ADMIN access.
4. If they are a member of a banned group, grant NO access.
*/
// Set default access
$userrole = ROLE_NOBODY ;
$groups = explode(',',$usergroupid);
// Set Allowed groups
if (in_array(2,$groups)) $userrole = ROLE_USER;
if (in_array(7,$groups)) $userrole = ROLE_USER;
//Set Staff groups
if (in_array(5,$groups)) $userrole = ROLE_ADMIN;
if (in_array(6,$groups)) $userrole = ROLE_ADMIN;
//Set Banned groups
if (in_array(8,$groups)) $userrole = ROLE_NOBODY;
if (in_array(9,$groups)) $userrole = ROLE_NOBODY;
return $userrole;
}
I did not cut and paste the top line "function getRoles($usergroupid) { "... I guess becuase its above the comments I did not notice it. It will give you a blank page with no errors. Hope that helps.