PDA

View Full Version : How to change/remove this...


Ahharu
01-02-2013, 11:17 PM
How I can change/remove the time of deleting attachments?:

https://vborg.vbsupport.ru/external/2013/01/59.png


I need to remove it...because I want the files always remain :).


Thanks! ;).

ForceHSS
01-02-2013, 11:57 PM
have you taken the time to go over your settings

Ahharu
01-02-2013, 11:58 PM
have you taken the time to go over your settings

Yes, but I don't see any option for change this :S. Can help me? :).


Thanks.

ForceHSS
01-03-2013, 12:22 AM
It is late here, just go over your settings I am sure you will find it. I am sure you don't want me to do all the work for you or all here will think you are lazy and I really have no time for lazy people

Ahharu
01-03-2013, 12:23 AM
I just want to know how to change this, so difficult is it? :S.

Any hel please?.

mokujin
01-03-2013, 08:32 AM
It is late here, just go over your settings I am sure you will find it. I am sure you don't want me to do all the work for you or all here will think you are lazy and I really have no time for lazy people
If you cant help others then dont reply,
I cant find the setting myself, there is no option in Message Attachment Options @.@

ForceHSS
01-03-2013, 09:53 AM
If you cant help others then dont reply,
I cant find the setting myself, there is no option in Message Attachment Options @.@

don't be rude it was 3am when I wrote that I was tried and was going to bed

--------------- Added 1357210518 at 1357210518 ---------------

Looks like some custom thing disable all plugins from the config see if that helps

Ahharu
01-03-2013, 10:55 AM
I don't have any plug-in...is a fresh installation. And for more I look, I don't find the option to turn it off :(.

Anyone know?.

ForceHSS
01-03-2013, 11:19 AM
Can you post a link and a test account to the problem

Ahharu
01-03-2013, 11:26 AM
You have a PM with the Demo account :).

Simon Lloyd
01-03-2013, 11:33 AM
As far as i know thats not a standard vbulletin setting, are you running php in safe mode and utilising temp folders for your attachments?

Ahharu
01-03-2013, 11:37 AM
As far as i know thats not a standard vbulletin setting, are you running php in safe mode and utilising temp folders for your attachments?

This all default ... I have not touched anything, is a clean installation :).

kh99
01-03-2013, 11:40 AM
It is a standard feature, it's in the "File Upload Mananger", the window that pops up when you manage attachments for a post. There is no setting to change or disable it. The code that does the removing is in includes/cron/cleanup2.php, and it looks like this:

// Unused filedata is removed after one hour
$attachdata =& datamanager_init('Filedata', $vbulletin, ERRTYPE_SILENT, 'attachment');
$attachdata->set_condition("fd.refcount = 0 AND fd.dateline < " . (TIMENOW - 3600));
$attachdata->delete();



If you remove it or comment it out, then the unused uploads should never be removed.

Simon Lloyd
01-03-2013, 11:47 AM
Ah so it's only for the uploads window not for attachments that have been uploaded! - good find Kevin :)

Ahharu
01-03-2013, 12:58 PM
It is a standard feature, it's in the "File Upload Mananger", the window that pops up when you manage attachments for a post. There is no setting to change or disable it. The code that does the removing is in includes/cron/cleanup2.php, and it looks like this:

// Unused filedata is removed after one hour
$attachdata =& datamanager_init('Filedata', $vbulletin, ERRTYPE_SILENT, 'attachment');
$attachdata->set_condition("fd.refcount = 0 AND fd.dateline < " . (TIMENOW - 3600));
$attachdata->delete();



If you remove it or comment it out, then the unused uploads should never be removed.


More thanks for the solution ;).

ForceHSS
01-03-2013, 01:14 PM
More thanks for the solution ;).

I already pmed u fix did not know it was already posted

Ahharu
01-03-2013, 01:44 PM
I already pmed u fix did not know it was already posted

Yes, I see your PM. Thanks ForceHSS :).