The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mass moving users to another usergroup sql query?
Hello guys, I'd like to ask about sql query to massive move all users from a usergroup (ex Group A) to another usergroup (Group B).
Thank you all. |
#2
|
|||
|
|||
You could change the primary user group with this query:
Code:
UPDATE user SET usergroupid = B WHERE usergroupid = A But changing the group might result in a change in user title or rank (which I think you can do by running "update user titles and ranks" in the "update counters" section of the Maintenance menu). Another option might be to add a promotion from group A to group B and set the conditions so everyone qualifies (such as strategy "Posts" and 0 Posts), then run the "User Promotions" scheduled task (run it manually by pressing "Run Now" - if you wait for it to run itself it will only promote users who have been active recently). |
Благодарность от: | ||
kevin.kool |
#3
|
|||
|
|||
you can use Vbulletin Prune/Move Users to move user.
or SQL QUERY Code:
UPDATE user set usergroupid = GroupB_ID where usergroupid = GroupA_ID; In place of GroupA_ID -> enter groupa usergroupid. oops - i m late.. |
Благодарность от: | ||
kevin.kool |
#4
|
|||
|
|||
But I didn't realize you could do it with "Prune/Move Users" - that sounds like the right way to go.
|
#5
|
|||
|
|||
Thank you guys Both of posts are helpful for me.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|