Log in

View Full Version : Changing a hard code into a bitfield xml file


tuaguild
07-08-2008, 10:03 PM
print_table_header($vbphrase['vbma_permissions']);
print_yes_no_row($vbphrase['stickets_can_admin_stickets'], 'usergroup[canadminstickets]', $ug_bitfield

['canadminstickets']);
print_yes_no_row($vbphrase['stickets_can_add_stickets'], 'usergroup[canaddstickets]', $ug_bitfield

['canaddstickets']);
print_yes_no_row($vbphrase['stickets_can_view_stickets'], 'usergroup[canviewstickets]', $ug_bitfield

['canviewstickets']);
print_table_break();


I would like to change this into a bitfield xml file if possible but i dont know where to start

Also i would like to know where i would put this code
$_BITFIELD['usergroup']['sticketpermissions'] = array(
'canadminstickets' => 1,
'canaddstickets' => 2,
'canviewstickets' => 4
);
it is from the old vb 3.0 and there have been alot of changes in the files and no need to do main file edits i need some files edited to work with the new sql i cant seem to get all the syntax in them right see attached file so any help would be appreciated

Dismounted
07-09-2008, 04:55 AM
A Closer Look at Bitfields (https://vborg.vbsupport.ru/showthread.php?t=166940)
[How-To] Create Usergroup Permissions (via Bitfields) (https://vborg.vbsupport.ru/showthread.php?t=82844)

Marco van Herwaarden
07-09-2008, 07:42 AM
Do you have permission from the original coder to distribute his work?

tuaguild
07-09-2008, 07:09 PM
i am not distributing just trying to get it updated and working to use on my site It is just the install file there is more files than that but i am not going to post them. if people want it they can google it like i did lol

Marco van Herwaarden
07-10-2008, 09:11 AM
Removed the attached file from the first post as no permission was given to distribute the file.