automatically batch updading...?!? automatically batch updading...?!?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

automatically batch updading...?!?

Started by [WSC]KevinMitnick, March 21, 2004, 08:47:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[WSC]KevinMitnick

hi guys

had a great idea of coppermine-feature...
what about to associate a server-dir path to an album, which allows to automatically update new photos if they are uploaded into the specified folder?

thx 4 any feedback
[WSC]KevinMitnick

Joachim Müller

and how should this function be triggered? As most people are webhosted, cron-jobs are not an option (Windows' scheduled tasks aren't neither). The trigger would have to be[list=1]
  • any user who visits the gallery would trigger the search wether new pics have been added (making the script run slow)
  • the admin logging in and browsing a special url (doesn't make sense, as he could have used batch-add in the meantime as well)[/list:o]I don't see any benefit in such a function, since only the admin can have ftp access to upload pics in the first place (unless you're on a LAN and your users are accessing an intranet).
    However, if you think such a mod would be helpfull for you, you're welcome to post the code and we'll make it available as a hack.

    GauGau

bulldozer

I've suggested the same thing before.  I'm guessing that it probably isn't a good idea to have database checking everytime for new pics because it would probably slow things up.

A better way would probably be to have a update button in admin area to click after you ftp new pics over.

With lots of tgp sites, galleries are submitted and stored in database, then when ready to update page, you click rebuild or update button to rebuild page with new info.

Another option would be to link all the albums with their folders like you currently have to, but have it so that you can link lots of albums to folders before you have to click to have thumbnails made. So, instead of choosing one album at a time and clicking to have updates made, you select multiple albums and their folders, then click update.