View Full Version : Delete all users from a certain usergroup?
DaveG
05-20-2003, 05:32 PM
When I try to prune a certain set of users (example: all users awaiting email confirmation who haven't visited the system since May 1, 2003) I get a VB error :(
What SQL query could I run that will delete the users?
To make it easier, I can move the set of users to the POST BAN category and then run a SQL query that deletes all users who are in the POST BAN group.
Can anybody offer some insight? Thanks!
filburt1
05-20-2003, 05:36 PM
Are you running the latest version of vB? If not, the database error itself would help.
DaveG
05-20-2003, 05:51 PM
My apologies. VB version 2.2.7 - waiting to upgrade until v3 is released.
The DB error displayed below, pops up AFTER the following information is displayed:
Deleting forum subscriptions .... okay.
Deleting thread subscriptions .... okay.
Deleting calendar events .... okay.
Deleting custom avatars .... okay.
Deleting forum access .... okay.
Deleting moderators .... okay.
Deleting private messages .... okay.
Deleting user sessions .... okay.
Now proceding to update threads & posts ....
DB Error:
Database error in vBulletin Control Panel 2.2.7:
Invalid SQL: SELECT userid,username FROM user WHERE userid IN() LIMIT 0,50
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') LIMIT 0,50' at line 1
mysql error number: 1064
Date: Tuesday 20th of May 2003 02:49:23 PM
Script: http://www.domain.com/forum/forum/admin/user.php?action=prune_updateposts&startat=0
Referer: http://www.domain.com/forum/admin/user.php
filburt1
05-20-2003, 05:59 PM
I think this was a bug. Always stay up to date on your vB version for important security reasons. :)
DaveG
05-20-2003, 06:13 PM
So is there no easy way to run a SQL query to remove all users from the POST BAN usergroup?
filburt1
05-20-2003, 06:21 PM
Easy, yes. Clean, no. I instead recommend that you upgrade.
Mistah Roth
08-04-2003, 07:44 PM
I am running 2.3.0 and I get that same error....
Logician
08-06-2003, 09:26 AM
if your board is not hacked (particularly file user.php), this might be a bug, report to vb.com. If you hacked user.php, it is the problem of the hack so remove that hack from your file and retry
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.