
08-18-2005, 08:49 AM
|
|
|
Join Date: Oct 2003
Location: Warren, PA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by thephonemall
For those of you still having trouble with usergroups being shown properly in AdminCP here is the way the modification should look in usergroups.php:
PHP Code:
// ###### ELITECODERS DOWNLOAD HACK ######
print_table_header("Download Permissions");
print_yes_no_row($vbphrase['ecdownloads_can_edit_all_files'], 'usergroup[caneditallfiles]', $ug_bitfield['caneditallfiles']);
print_yes_no_row($vbphrase['ecdownloads_can_download_files'], 'usergroup[candownloadfiles]', $ug_bitfield['candownloadfiles']);
print_yes_no_row($vbphrase['ecdownloads_can_rate_files'], 'usergroup[canratefiles]', $ug_bitfield['canratefiles']);
print_yes_no_row($vbphrase['ecdownloads_can_upload_images'], 'usergroup[canuploadimages]', $ug_bitfield['canuploadimages']);
print_yes_no_row($vbphrase['ecdownloads_can_link_to_files'], 'usergroup[canlinktofiles]', $ug_bitfield['canlinktofiles']);
print_yes_no_row($vbphrase['ecdownloads_can_upload_files'], 'usergroup[canuploadfiles]', $ug_bitfield['canuploadfiles']);
print_yes_no_row($vbphrase['ecdownloads_can_avoid_purgatory'], 'usergroup[canavoidpurgatory]', $ug_bitfield['canavoidpurgatory']);
print_yes_no_row($vbphrase['ecdownloads_can_manage_purgatory'], 'usergroup[canmanagepurgatory]', $ug_bitfield['canmanagepurgatory']);
print_yes_no_row($vbphrase['ecdownloads_can_edit_own_files'], 'usergroup[caneditownfiles]', $ug_bitfield['caneditownfiles']);
print_yes_no_row($vbphrase['ecdownloads_can_view_disabled'], 'usergroup[canviewdisabled]', $ug_bitfield['canviewdisabled']);
print_yes_no_row($vbphrase['ecdownloads_can_view_files'], 'usergroup[canviewfiles]', $ug_bitfield['canviewfiles']);
print_table_break();
// ###### ELITECODERS DOWNLOAD HACK ######
|
Actually I think it should be like this just like westpoiter said.
PHP Code:
// ###### ELITECODERS DOWNLOAD HACK ######
print_table_header("Download Permissions");
print_yes_no_row($vbphrase['ecdownloads_can_view_files'], 'usergroup[canviewfiles]',
$ug_bitfield['canviewfiles']);
print_yes_no_row($vbphrase['ecdownloads_can_download_files'], 'usergroup[candownloadfiles]',
$ug_bitfield['candownloadfiles']);
print_yes_no_row($vbphrase['ecdownloads_can_rate_files'], 'usergroup[canratefiles]',
$ug_bitfield['canratefiles']);
print_yes_no_row($vbphrase['ecdownloads_can_upload_images'], 'usergroup[canuploadimages]',
$ug_bitfield['canuploadimages']);
print_yes_no_row($vbphrase['ecdownloads_can_link_to_files'], 'usergroup[canlinktofiles]',
$ug_bitfield['canlinktofiles']);
print_yes_no_row($vbphrase['ecdownloads_can_upload_files'], 'usergroup[canuploadfiles]',
$ug_bitfield['canuploadfiles']);
print_yes_no_row($vbphrase['ecdownloads_can_avoid_purgatory'], 'usergroup[canavoidpurgatory]',
$ug_bitfield['canavoidpurgatory']);
print_yes_no_row($vbphrase['ecdownloads_can_manage_purgatory'], 'usergroup[canmanagepurgatory]',
$ug_bitfield['canmanagepurgatory']);
print_yes_no_row($vbphrase['ecdownloads_can_edit_own_files'], 'usergroup[caneditownfiles]',
$ug_bitfield['caneditownfiles']);
print_yes_no_row($vbphrase['ecdownloads_can_edit_all_files'], 'usergroup[caneditallfiles]',
$ug_bitfield['caneditallfiles']);
print_yes_no_row($vbphrase['ecdownloads_view_disabled'], 'usergroup[canviewdisabled]',
$ug_bitfield['canviewdisabled']);
print_table_break();
// ###### ELITECODERS DOWNLOAD HACK ######
|