vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   HowTo Create Custom Usergroup Permissions (https://vborg.vbsupport.ru/showthread.php?t=82844)

Cheertobi 12-21-2005 12:21 PM

Hi,

I cannot get this work ;(

I made the following bitfield:

Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<bitfields product="vbulletin">
        <bitfielddefs>
                <group name="ugp">
                        <group name="teampermissions">
                                <bitfield name="caneditteam" group="team_permissions" phrase="can_edit_team" install="">1</bitfield>
                                <bitfield name="candeleteteams" group="team_permissions" phrase="can_delete_teams" install="">2</bitfield>
                        </group>
                </group>
        </bitfielddefs>
</bitfields>

But $permissions['teampermissions'] seems to be empty and $vbulletin->bf_ugp_teampermissions['caneditteam']) or $vbulletin->bf_ugp_teampermissions['candeleteteams']) are always "true", even if they are selected in the admincp or not.

Tobi

Cheertobi 12-22-2005 07:40 PM

Does noone have an idea what is wrong in my coding?!

Andreas 12-23-2005 08:13 PM

Did you rebuild the bitfield cache?

@MrBlunt
Well, as said - just directly use the XMLReader and set your bits accordingly.
Or fake the product being installed and call the bitfield builder.

Cheertobi 12-23-2005 09:44 PM

Quote:

Originally Posted by Andreas
Did you rebuild the bitfield cache?

Yes I did that. Andreas, can we maybe move over to vbhacks-germany? It might be easier for me to explain what I have done and what not work like expected in german?!

Regards,

Tobi

Andreas 12-23-2005 10:30 PM

If you already have a thread there or create on - sure

Delphiprogrammi 01-12-2006 12:22 PM

1 Attachment(s)
hi,

Thanks for your explanation verry usefull.One question through.My permissions show up fine the only thing that annoys me a little is that that little help icon that refuses to shoowup nexto my permissions ? i bet it got something todo with the adminhelp manager you see in debug mode ?

buh i hate XML most of the time i doesn't work for me

HTML Code:

<?xml version="1.0" encoding="iso-8859-1"?>
<bitfields product="myproduct">
<bitfielddefs>
<group name="ugp">
<group name="myproductpermissions">
 <bitfield name="canview" group="myproduct_permissions" phrase="can_view" install="2,5,6,7">1</bitfield>
 <bitfield name="canmanage" group="myproduct_permissions" phrase="can_manage" install="2,5,6,7">2</bitfield>
</group>
</group>
</bitfielddefs>
</bitfields>

can't even choose between yes or no i can change it and vbulletin says options saved successfully but when i goback to check .... (you can guess)the value doesn't change

Code:

"ALTER TABLE " . TABLE_PREFIX . "usergroup ADD myproductpermissions INT(10) UNSIGNED NOT NULL DEFAULT 0";
really hate XML :devious:

CyberRanger 01-17-2006 04:52 PM

posted in wrong thread ...

joefitz 02-07-2006 01:18 AM

Just an FYI, for those interested in having custom forum permissions that correspond with custom usergroup permissions, you may want to check out my hack discussed in the following thread:
Custom Usergroup Forum Permissions

Andreas 02-07-2006 01:29 AM

There is a reason why there is no built-in support for custom forum permissions ;)

vasudeva 04-06-2006 01:43 PM

Quote:

Originally Posted by Andreas
There is a reason why there is no built-in support for custom forum permissions ;)

What is that reason, for those of us new to the game? I'm trying to get my head around expanding vB's permissions system and would appreciate any insights.


All times are GMT. The time now is 04:48 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01495 seconds
  • Memory Usage 1,743KB
  • 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)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete