vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Query for moving one usergroup to another (https://vborg.vbsupport.ru/showthread.php?t=53897)

WEForums 06-05-2003 06:00 PM

Query for moving one usergroup to another
 
What's the query for moving unregistered users into registered users? Don't ask how they got there. :o

filburt1 06-05-2003 06:05 PM

[sql]
UPDATE user SET usergroupid = registered usergroupid WHERE usergroupid = unregistered ugid;
[/sql]

WEForums 06-05-2003 06:07 PM

100% sure that is correct, right?

[sql]UPDATE user SET usergroupid = 2 WHERE usergroupid = 1;[/sql]

That is the precise thing? No ' needed or anything?

filburt1 06-05-2003 06:12 PM

Right. If you are doubtful, back up your database first (always a good idea with UPDATE and DELETE queries, anyway).

WEForums 06-05-2003 06:14 PM

Thanks! Worked perfectly.

Sucks to back up the database when it takes a good 20+ minutes. But it's better to be safe than sorry.

Again, thanks.

WEForums 06-05-2003 07:33 PM

This is a bit strange. After running the query all members become 'registered.' However, they still cannot access the pages...even though guests CAN access all pages. If I modify their profile they are in the unregistered group....so...what the heck?

Is there some sort of query that changes their user options?

And I am still pondering why they would be unable to access ANY pages if they are in the 'unregistered' group when guests can view the board...

Crud. :hurt:
EDIT: Hmm, a moderator (he modded a forum, but his group was unchanged) told me they couldn't access the site...however, a regular member told me they could....weird...I dunno...


All times are GMT. The time now is 11:31 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.01417 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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