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: batch delete  (Read 3101 times)

0 Members and 1 Guest are viewing this topic.

Tornado

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
batch delete
« on: December 07, 2004, 05:23:52 pm »

hi, I've got a problem. The thing is that I have to "tidy up" on my webspace because the photos eat to much space.

Is there a possibility to delete all pics that have been viewed less than, for example, 5 times... ??

a tool? anything like this?

thy in advance
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: batch delete
« Reply #1 on: December 07, 2004, 06:32:50 pm »

In Admin mode there is a button right next to each album which is named Edit Files.

Click it.. it displays all pics in that album and also the number of times its been viewed.
Logged

Tornado

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: batch delete
« Reply #2 on: December 07, 2004, 09:58:23 pm »

yeah I know this feature... but it takes too much time to go through all the albums and search the ones out that have been viewed only few times.

what I'm looking for is a tool where I can set "delete all files viewed less then 5 times" or something like that...
does anybody actually know such a tool??

or another way than browsing through all the albums...


thx
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: batch delete
« Reply #3 on: December 08, 2004, 07:07:38 am »

There has never been any code developed with that kind of functionality.  The query would be straightforward though:

delete from {picture table} where hits < 5
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: batch delete
« Reply #4 on: December 08, 2004, 10:38:31 am »

I would like to make this a feature request, to be put on the album edit page.
He's probably not the only wanting this and it could proof usefull to a lot of people.

Just a thought. Adding an option on the page mentioned above with a choice option up to what number of hits should be removed from a album.

Feature request yes or no ?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: batch delete
« Reply #5 on: December 08, 2004, 11:31:53 am »

yes, of course you can request anything. If someone finds it usefull for the majority of users, it might go into the release. Moved to feature requests board ;)

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.