Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Remove pictures from gallery, rather than just delete.  (Read 2774 times)

0 Members and 1 Guest are viewing this topic.

JasonB

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
    • The Big Squiff
Remove pictures from gallery, rather than just delete.
« on: August 07, 2005, 04:08:44 pm »

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.
Logged

Nibbler

  • Guest
Re: Remove pictures from gallery, rather than just delete.
« Reply #1 on: August 07, 2005, 04:29:03 pm »

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

JasonB

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
    • The Big Squiff
Re: Remove pictures from gallery, rather than just delete.
« Reply #2 on: August 07, 2005, 05:38:58 pm »

> 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.