Quote:
Originally Posted by trevanh
Thanks for your reply, Deepdog009.
Besides this Form Hack, I have the following mods installed:
passiveVid
vBAdvanced CMPS
GTUserCP
I just made them inactive but the problem remains.
Perhaps there's something that I need to run in diagnostics or maintenance to get the changes to take?
|
OK, we found the problem:
We had to modify each Form we'd created in vBulletin with the following change (first the original code, then the new code):
ORIGINAL CODE
////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array.
//To enable this feature, remove the '//' before the 'if'.
////////////////////////////////////////////////////////////////////////////////////////////////////
if (!in_array($vbulletin->userinfo['11'], array(5,6,7,11))) print_no_permission();
NEW CODE
////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array.
//To enable this feature, remove the '//' before the 'if'.
////////////////////////////////////////////////////////////////////////////////////////////////////
// Use the line below to customize the allowed groups access to this form
$allowed_group_ids = array(6,7,11,12,13);
$form_view_permission = false;
$member_group_id_array = explode(',', $vbulletin->userinfo['membergroupids']);
if (in_array($vbulletin->userinfo['usergroupid'], $allowed_group_ids)) {
$form_view_permission = true;
}
foreach ($member_group_id_array as $membergroupid){
if(in_array($membergroupid, $allowed_group_ids)){
$form_view_permission = true;
}
}
if ($form_view_permission == false) print_no_permission();
This change allows users to access the Forms if their primary
or member group ids match the list specified in the $form_view_permission array.