No Support => Feature requests => Topic started by: phill104 on February 05, 2007, 07:17:06 pm

Title: Archive tool
Post by: phill104 on February 05, 2007, 07:17:06 pm
Would it be possible to add a little feature to coppermine. On my gallery I often move old pics to and archive folder just to keep the page tidy. For instance, I have a set of  open galleries covering summer, autumn, winter, spring etc for each year. After about 6 months or so, most of the pics in the older galleries never get viewed so it would be nice to run a script to automatically move these to the archive folder.

I see it working thus. You open the tool from the admin panel and select the gallery you wish to examine. This would bring up thumbs of all the pics in the gallery with all that have not been viewed within the admins set time period highlighted and all with a tick in a box. You could then untick any you wish to keep and press a button that automatically moves the rest to your selected folder.

It would probably require an extra db entry giving each a last viewed code but that shouldn'y be too hard.
Title: Re: Archive tool
Post by: Joachim Müller on February 05, 2007, 07:33:41 pm
Good idea. Maybe someone wants to write a plugin for that purpose.
Title: Re: Archive tool
Post by: phill104 on February 06, 2007, 11:17:51 am
Unfortunately my PHP skills aren't up to it. I've had some thoughts about how it could be done though.

Firstly, the display image code would need a line to add a last viewed date to the sql table.

You could then use a modified version of the batch add so instead of looking for new files, it would first allow you to select the source folder then in the next stage, have a drop down menu where you could select the time period you wish to archive and a destination folder. On continue it will tick all the boxes from files not viewed after your selected time period (1week, one month, 6 months etc) then you could go through them and adjust where required.

I'm trying to learn PHP but it is going to take some time. I do home someone out there will take on the challenge as it would be a very usefull feature.
Title: Re: Archive tool
Post by: MarkP on February 08, 2007, 01:38:09 am
Personally I would not use it...but some may.
Title: Re: Archive tool
Post by: MattD on February 08, 2007, 12:09:25 pm
This is a feature I could really do with.

We use out gallery for customers to send us pictures for support services. Every three months I have to go through all the shots and archive the solve issues. A simple tool such as this would make that job so much easier. I currently spend nearly a day doing this but with this method it could be done in minutes.