vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Changing a hard code into a bitfield xml file (https://vborg.vbsupport.ru/showthread.php?t=184765)

tuaguild 07-08-2008 09:03 PM

Changing a hard code into a bitfield xml file
 
Code:


        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
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 03:55 AM

A Closer Look at Bitfields
[How-To] Create Usergroup Permissions (via Bitfields)

Marco van Herwaarden 07-09-2008 06:42 AM

Do you have permission from the original coder to distribute his work?

tuaguild 07-09-2008 06: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 08:11 AM

Removed the attached file from the first post as no permission was given to distribute the file.


All times are GMT. The time now is 01:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03849 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete