vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Remove Default usergroups. (https://vborg.vbsupport.ru/showthread.php?t=67999)

TosaInu 08-04-2004 07:16 PM

Remove Default usergroups.
 
Hello,

We have a list of usergroups and they imported well. The ID's are ordered: 9 being the lowest 20 the highest. The higher the number, the more permissions. This sytem makes administration easier and it allows easier conditions in case of hacks: if (userID > 12) instead of something like if (userID = 9 or User ID =15 or .. or .. or).

vBul already has default groups. In Ikonboard you could easily delete the built in groups and configure which ID's were going to be the default group. I can't find it in vBul.

I want to use my own system of usergroups and delete the/all Default ones.
Will be easier to administrate users, forum permissions and be of help with hacks.

Where can I set which ID is admin, which is moderator, which is awaiting authorisation and which is a registered member? The other levels can remain custom.

Colin F 08-05-2004 05:47 PM

that's not a great idea, as the usergroupids are hardcoded....

so it'll say if ($bbuserinfo[usergroupid] == 6) { } if it's an admin function.
And it'll put your newly registered users automatically into group 3 (or whatever...)

AN-net 08-05-2004 07:37 PM

i highly protest such an act since most of the admin configurations and usergroup code depends on the default usergroups. i see no point in changing the id's>_>

TosaInu 08-05-2004 11:52 PM

Quote:

Originally Posted by AN-net
i highly protest such an act since most of the admin configurations and usergroup code depends on the default usergroups. i see no point in changing the id's>_>

Thanks,

I feared such a thing. There's something to say for hardcoding it, but flexibility is nice too. I'll use the default groups then.

I didn't see the point either and the ID's were as unsorted as they are in vb. Until I wanted some small edits and found myself writing huge if() switches. I could have added a whole new tinyint database field, but sorting the ID's was almost always a solution as conditions were < or >. Why add fields to the tables when you can use what you already have?


All times are GMT. The time now is 10:08 AM.

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.00910 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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