PDA

View Full Version : Uploads not utilized within one hour will be deleted


tinhlt
11-08-2012, 12:36 PM
Dear guys, please help me this problem:
How to disable the Uploads not utilized within one hour will be deleted in Attachment?
Thanks!

tinhlt
11-26-2012, 04:14 PM
up up. Please help me.

kh99
11-26-2012, 04:44 PM
There is no setting to disable deleting unused attachments. If you want to disable it, you would need to edit includes/cron/cleanup2.php and find this:

// Orphaned Attachments are removed after one hour
$attachdata =& datamanager_init('Attachment', $vbulletin, ERRTYPE_SILENT, 'attachment');
$attachdata->set_condition("a.contentid = 0 AND a.dateline < " . (TIMENOW - 3600));
$attachdata->delete(true, false);



either delete it or comment it out (put // at the start of each line). Edit: Of course that won't make the message go away, you'd need to delete that separately.

tinhlt
12-02-2012, 06:30 AM
There is no setting to disable deleting unused attachments. If you want to disable it, you would need to edit includes/cron/cleanup2.php and find this:

// Orphaned Attachments are removed after one hour
$attachdata =& datamanager_init('Attachment', $vbulletin, ERRTYPE_SILENT, 'attachment');
$attachdata->set_condition("a.contentid = 0 AND a.dateline < " . (TIMENOW - 3600));
$attachdata->delete(true, false);



either delete it or comment it out (put // at the start of each line). Edit: Of course that won't make the message go away, you'd need to delete that separately.

Thanks kh99 so much!