The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Delete all attachments for user
Is there anyway to delete all the attachments for a user in vB4? I banned a user with over 800 attachments which serve no value to my forum. Is there an easy way to delete them without going through 80 pages of attachments in the admincp?
|
#2
|
|||
|
|||
Login to his account or from admin panel is the only way
|
#3
|
||||
|
||||
How are your attachments stored?
|
#4
|
||||
|
||||
In the file system ... currently we have about 40GB of attachments.
|
#5
|
||||
|
||||
You could do it with a sql query if you wanted, sorry I don't have the query for you though.
|
#6
|
||||
|
||||
How would a SQL query delete the attachments in the file system?
|
#7
|
||||
|
||||
If you know the user, and the userid
go to /path/to/attachments/u/s/e/r/I/d/ This folder has their attachment files. |
Благодарность от: | ||
Brandon Sheley |
#8
|
||||
|
||||
Ok... so I can delete the user's folder with their attachments in it. Cool, but what about the database?
delete from attachment where userid = (userid)? |
#9
|
||||
|
||||
No, don't delete the users folder, the subfolder in there are for others. Just delete the attachment files.
Deleting them from the database gets more complicated. It'd probably be easier to manually reset the user's passwird and just go into his usercp and delete all of his attachments. |
#10
|
||||
|
||||
There has to be a better way... at 20 attachments per page (and this guy has 800 attachments), this is going to take forever. Plus not to mention this is just one user. There are probably hundreds that have to be done.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|