XFileSharing Pro - image mod modification request

Message
Author
PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

image mod modification request

#1 Postby PowerChaos » Nov 13, 2010 4:38 pm

hi all
i was wondering if some1 know if it is possible to prevent image deletion from premium/registered accounts instead the allowed XX days

as example

i got a user who got a image , normal rules says that files stays 15 days after last download

but a image get barely downloaded (why would they)

so after 15 days , the image is lost

what i like to ask
is it possible to exclude that rule for registered/premium users and only for the image files ??

if it cant be easy done , can i request a mod for it then ?? or that the admin would add it as a mod to the image mod ??

Thank you
Greetings From PowerChaos

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#2 Postby PowerChaos » Nov 19, 2010 6:08 pm

hmm , still no reaction from any1

is it then so hard to provide a solution to the file storage link (exlude images ?? )

let me say it differend then

i am looking for the place where it is stored so i can manual change it (if i can figure out how)

or it would even be better if i can get the place and the code to where it need to changed to exclude only the images from the time limit

i am not even sure if the image mod got that already included or not (hard to know if no1 provide the answer )

so waiting on a solution at this moment

Thank you
Greetings From PowerChaos

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#3 Postby PilgrimX182 » Nov 23, 2010 2:17 pm

Here goes quick fix:
in cron.pl find line

Code: Select all

AND file_last_download < NOW()-INTERVAL ? DAY
and add above:

Code: Select all

AND file_name NOT LIKE '%.jpg'
AND file_name NOT LIKE '%.png'
This should be done in 3 places in cron.pl

This will keep jpg,png files from deletion.

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#4 Postby PowerChaos » Nov 23, 2010 5:02 pm

Thank you PilgrimX182 for the solution and your help

Greetings From PowerChaos

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#5 Postby adiga » Mar 29, 2011 3:10 pm

PilgrimX182 wrote:Here goes quick fix:
in cron.pl find line

Code: Select all

AND file_last_download < NOW()-INTERVAL ? DAY
and add above:

Code: Select all

AND file_name NOT LIKE '%.jpg'
AND file_name NOT LIKE '%.png'
This should be done in 3 places in cron.pl

This will keep jpg,png files from deletion.

this code does not working with 1.9