View Full Version : where do attachments go
otacon
07-10-2003, 05:09 AM
IS there some sort of DIR that attachments go ? If not where do they go??
Gavin B.
07-10-2003, 06:06 AM
They're stored as binary within the forum database :)
Roody
07-10-2003, 02:15 PM
How do we get to them exactly in order to clean some up or remove them?
Gavin B.
07-10-2003, 03:24 PM
do you have phpmyadmin? :)
Open up the database then run the following queries
Back up your database, just incase you lose all of your attachments, or my queries have a mistake in them (they're simple, so they shouldn't :D). Disclaimer: I take no responsibilty for any bad things that might happen ;)
DELETE FROM attachments WHERE dateline < somedate
and..
UPDATE post SET attachmentid=0 WHERE dateline < somedate
if your forum is large, it might take a bit to update the posts. :)
Roody
07-10-2003, 07:05 PM
How would you break down the date in that code? For example let's say you wanted to remove everyone attachment before may 15, 2003.
How would you code that exactly?
cirisme
07-10-2003, 09:56 PM
Attachments should be removed with their posts during pruning.
Roody
07-10-2003, 11:15 PM
Today at 06:56 PM cirisme said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=416800#post416800)
Attachments should be removed with their posts during pruning.
Personally Im more interested in removing certain attachments as opposed to the attachment and posts. Any ideas on how to correctly enter the date?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.