The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Remove Orphan Posts by deleted users
How can i removes all posts that belong to users who no longer exist? Because i'm using some mods, if in threads which have post by n/a user, i will get error.
Thank you, |
#2
|
||||
|
||||
Do these posts still show up as their username? Or is it just "guest"?
|
#3
|
|||
|
|||
still show up with their name. but them dont have title, status, profile info and Posts: n/a
|
#4
|
|||
|
|||
this is how the system behave actually, they never show like "guest" like King ask... Guests have usernames but no identification...
if you want to delete these posts, you will have to do them manually... |
#5
|
||||
|
||||
nex,
The old username is still stored within the database I believe. Which would mean a query would be able to mass remove these threads / posts. |
#6
|
|||
|
|||
Can you tell me how to do it, King?
|
#7
|
||||
|
||||
[sql]DELETE FROM `post` WHERE `username`='username_here';[/sql]
Just add your table prefix to 'post' and change 'username_here' to the username. Also, you may want to run Maintenance -> Update Counters -> Remove Orphan Posts. |
#8
|
|||
|
|||
I'm sadly to say: It's impossible. Not only one user with many post, add my case, many users with many posts. If i know there names so i think delete manually is better. Have any way to do it in my case? thank you.
|
#9
|
||||
|
||||
DELETE FROM post WHERE userid = 0 will do it, but be very sure you want to do this, and make sure you backup the post table first. Sounds to me more like you should fix the mod, not be making mass deletions from your post table.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|