vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   mass usergroup move (https://vborg.vbsupport.ru/showthread.php?t=72036)

Benj 11-22-2004 12:25 PM

mass usergroup move
 
is there a way to move all your users from 1 groups to another. ive imported my database using impex and now i have a custom group called registered users need to copy them all over to the standard registered users group.

Benj 11-23-2004 12:37 PM

*bump*

Andreas 11-23-2004 01:17 PM

Copy or Move?

Move (eg. change primary group)
[sql]update user set usergroupdid=newgroupid where usergroupid=oldgroupid[/sql]

Copy (eg. make them secondary members of the group)
[sql]update user set membergroupids=concat_ws(',', 'newgroupid', membergroupids) where usergroupid=oldgroupid[/sql]

Benj 11-23-2004 02:09 PM

yeah now there additional users now is that ok or

blubber12 11-24-2004 12:39 AM

In admincp users/move/prune. Select the group you need to move, click find and then choose the destination group

Benj 11-24-2004 06:17 AM

man that query really messed up me forum i got white pages now when ever i try and access any thing

forum dir > http://www.welshsound.com/client/

Benj 11-24-2004 07:15 AM

my membergroupids have ",2" (without quotes) is this normal ??? if not how can i get rid of it

Benj 11-24-2004 07:58 AM

and every page in the vb directory shows up as a white page now???? ahhhhhh

Benj 11-25-2004 09:47 AM

ok i fixed the white page error.

but users get an error when they try and login

this is my users database

i removed the , before the 2 in membersgroup id and that let users login whats a query i can use to remove all the ,'s

Andreas 11-25-2004 11:13 AM

First of all, it's not a good idea to show password hashes ...

Secondly, it does not make sense to have a secondary usergroup which is the same as the usergrouid.
If all your Registered(usergroupid 2) users look like that

[sql]update user set membergroupids='' where usergroupid=2[/sql]


All times are GMT. The time now is 04:08 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.00974 seconds
  • Memory Usage 1,720KB
  • 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
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete