The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
sql query to remove all posts and replies of a member?
Its not possible via web interface because it is timing out. Number of posts to be removed are 100k+ |
|
#2
|
||||
|
||||
|
Code:
DELETE FROM " . TABLE_PREFIX ."posts WHERE userid = YOUR_USER If running from phpMyAdmin or such, change " . TABLE_PREFIX ." to the actual table prefix |
| Благодарность от: | ||
| MarkFL | ||
|
#3
|
|||
|
|||
|
Which should I rebuild after executing this?
The threads are still showing in forumdisplay and says invalid thread specified when clicked |
|
#4
|
||||
|
||||
|
Post counts and search index
|
|
#5
|
|||
|
|||
|
I rebuilt both Post Counts and Search Index after running that query but the deleted posts still showing in forumhome and forumdisplay..
|
|
#6
|
|||
|
|||
|
Have you tried "Rebuild Thread Information" and "Rebuild Forum Information"?
|
|
#7
|
|||
|
|||
|
Quote:
You have other suggestion Dave? |
|
#8
|
|||
|
|||
|
Wait so you executed the following query right?
HTML Code:
DELETE FROM posts WHERE userid = YOUR_USER You also have to execute a query such as: HTML Code:
DELETE FROM thread WHERE postuserid = USERID_OF_USER |
| Благодарность от: | ||
| Dragonsys | ||
|
#9
|
|||
|
|||
|
Quote:
Thanks for your great help Dave! As well as Dragonsys for always helping the vb community :up: |
|
#10
|
||||
|
||||
|
Quote:
|
| Благодарность от: | ||
| chikuru | ||
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|