Remove pictures from gallery, rather than just delete. Remove pictures from gallery, rather than just delete.
 

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

Remove pictures from gallery, rather than just delete.

Started by JasonB, August 07, 2005, 04:08:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JasonB

It would be nice if there were a "remove from gallery" option that would be like delete, except that it wouldn't touch the file system itself - rather it would just take the entry out of the database.

If I have, say, 50 pictures and I want to rename them all in some manner, what I have to do at present is move or copy them elsewhere (so I don't lose the files themselves) delete the pictures from Coppermine, rename them, move/copy the renamed version back, and then batch add them back in again.

If I could just get them out of the database, but leave the files instact, I wouldn't need to worry about doing the move/copy - I could leave them where they are and just rename them directly.

Nibbler

Just comment out the unlink() line. Why can't you do your renaming through coppermine ?

JasonB

> Why can't you do your renaming through coppermine?

For individual picture renaming, see this thread. <grin>  For bulk renaming, the Admin Tools is far too limited.  Unless I'm just blind and there's some other method I can use, I don't see how to do a rename of a file on disk along with its already existing entry in the database.