vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Delete all users from a certain usergroup? (https://vborg.vbsupport.ru/showthread.php?t=53165)

DaveG 05-20-2003 04:32 PM

Delete all users from a certain usergroup?
 
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 04:36 PM

Are you running the latest version of vB? If not, the database error itself would help.

DaveG 05-20-2003 04: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/ad...osts&startat=0
Referer: http://www.domain.com/forum/admin/user.php

filburt1 05-20-2003 04: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 05: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 05:21 PM

Easy, yes. Clean, no. I instead recommend that you upgrade.

Mistah Roth 08-04-2003 06:44 PM

I am running 2.3.0 and I get that same error....

Logician 08-06-2003 08: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


All times are GMT. The time now is 01:47 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.01716 seconds
  • Memory Usage 1,718KB
  • 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
  • (8)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