Automatic prune of old attachments
#1 22-08-2012 
  • Registered
  • 0
  • 6
Hello,

I suggest to create a plugin that automatically prune attachments not downloaded for "X" days.
Is it possible to be created?

Thank you a lot in advance!

#2 22-08-2012 
It depends on what you want really; do you want the file removing from the server or just the entry from the db?
The site don't jive? PRESS F5 Flower

#3 22-08-2012 
  • Registered
  • 0
  • 6
If you remove only the entry the file remain on the server?
If so, i would like to delete the file and save disk space.

#4 22-08-2012 
ok, as discussed. I will see if I can make you a report that you can see the attachments from threads that have had no posts in the last Xdays and then you can see and delete.
The site don't jive? PRESS F5 Flower

#5 22-08-2012 
  • Registered
  • 0
  • 6
It seems great leefish! Smile

#6 23-08-2012 
Ok, quick update on this - I have a very rough and ugly set up running on testfish, it is NOT a plugin, it is a php page and some templates you have to put in the global templates yourself. Are you comfortable with that? I can work it up to a plugin but that would take longer and would not be free.
The site don't jive? PRESS F5 Flower

#7 24-08-2012 
  • Registered
  • 0
  • 6
It seems great anyway! Smile
Could be also chosen the forum id that the tool can work and not?

#8 24-08-2012 
Ok, as discussed, code and attachment are on testfish

Attached File(s)
.php  oldstuff.php (Size: 6.14 KB / Downloads: 673)
The site don't jive? PRESS F5 Flower



Sorry, that is a members only option