Here is my problem. The permissions in usergroup are behaving erratic: the radio buttons do not accept updates or update the wrong ones.
ALLOW GROUP TO READ TITLES/ NOT CONTENT is the other hack name
When I remove the vbookie hack from usergroup, they are fine. Maybe it is a matter of switching lines?
// set default yes permissions (bitfields)
$ug_bitfield = array(
'showgroup' => 1, 'canview' => 1, 'canviewmembers' => 1,
'canviewothers' => 1, 'cagetattachment' => 1, 'cansearch' => 1,
'canmodifyprofile' => 1, 'canthreadrate' => 1, 'canpostattachment' => 1,
'canpostpoll' => 1, 'canvote' => 1, 'canwhosonline' => 1,
// +++ vBookie
'canpostvbookieevent' => 1, 'caneditothersvbookieevents' => 1, 'canbet' => 1,
// --- vBookie
'allowhidden' => 1, 'showeditedby' => 1, 'canseeprofilepic' => 1,
'canusesignature' => 1,
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
'gtpcanreadcontent' => 1
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
);
print_yes_no_row($vbphrase['can_rate_threads'], 'usergroup[canthreadrate]', $ug_bitfield['canthreadrate']);
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
print_yes_no_row($vbphrase['gtp_can_read_content'], 'usergroup[gtpcanreadcontent]', $ug_bitfield['gtpcanreadcontent']);
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
print_table_break();
if ($usergroupid != 1) // Guests can not post attachments
{
print_table_header($vbphrase['attachment_permissions']);
print_yes_no_row($vbphrase['can_upload_attachments'], 'usergroup[canpostattachment]', $ug_bitfield['canpostattachment']);
print_input_row($vbphrase['space_in_bytes_attachlimit'], 'usergroup[attachlimit]', $usergroup['attachlimit']);
print_table_break();
}
print_table_header($vbphrase['poll_permissions']);
print_yes_no_row($vbphrase['can_post_polls'], 'usergroup[canpostpoll]', $ug_bitfield['canpostpoll']);
print_yes_no_row($vbphrase['can_vote_on_polls'], 'usergroup[canvote]', $ug_bitfield['canvote']);
print_table_break();
// +++ vBookie
print_table_header($vbphrase['vbookie_permissions']);
print_yes_no_row($vbphrase['can_post_vbookieevents'], 'usergroup[canpostvbookieevent]', $ug_bitfield['canpostvbookieevent']);
print_yes_no_row($vbphrase['can_edit_others_vbookieevents'], 'usergroup[caneditothersvbookieevents]', $ug_bitfield['caneditothersvbookieevents']);
print_yes_no_row($vbphrase['can_bet_on_vbookieevents'], 'usergroup[canbet]', $ug_bitfield['canbet']);
print_table_break();
// --- vBookie
|