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: [Solved]: Uploads Dont Submit In Right Order  (Read 2967 times)

0 Members and 1 Guest are viewing this topic.

formulx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
[Solved]: Uploads Dont Submit In Right Order
« on: March 10, 2008, 09:14:02 pm »

Hey everyone,

Im a new coppermine user and I love the script so far. Im having one small issue though.

When I try to batch add files everything works right but there is one small problem I cant seem to find a solution to. When I add galleries that need to be in a specific order, therefore I name them 1.jpg, 2.jpg etc the order gets messed up when doing a batch add. I notice that the order of them being added goes in the order of the OK images loading and not the order that is displayed once I submit the request. For example, when adding 50 files at once the script organizes the images 1,2,3,4,5,6..etc. but adds them in random orders and what it comes down to is what loads first.

This means I have to go back and sort files in the right order, sometimes taking hours with large galleries and a small screen to work with. Is there any fix for this? Where they are added in the order they are displayed as and not whichever comes first?
« Last Edit: March 11, 2008, 07:15:17 am by Joachim Müller »
Logged

Nibbler

  • Guest
Re: Uploads Dont Submit In Right Order
« Reply #1 on: March 10, 2008, 09:19:21 pm »

If you already named them in order then just set the default sort order to 'name' in config.
Logged

formulx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Uploads Dont Submit In Right Order
« Reply #2 on: March 10, 2008, 09:24:31 pm »

Sorry forgot to mention that I tried that. The problem with that option is that it works up to 9 and then runs into problems. When I do that this is how it sorts the files:

1
10
11
...
2
20
3
4
5
6
7
8
9
etc.
Logged

Nibbler

  • Guest
Re: Uploads Dont Submit In Right Order
« Reply #3 on: March 10, 2008, 09:25:50 pm »

Use a better naming scheme then; 001.jpg, ...
Logged

formulx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Uploads Dont Submit In Right Order
« Reply #4 on: March 10, 2008, 09:29:15 pm »

Ah okay that would work, another question though. I have about 1500 files already uploaded  :-\ is there anyway to easily change the file names to 001 etc on both FTP and coppermine? I doubt the script will be able to notice if I change it in FTP alone right?
Logged

Nibbler

  • Guest
Re: Uploads Dont Submit In Right Order
« Reply #5 on: March 10, 2008, 09:34:25 pm »

You'd probably need to write a script to do that.
Logged

formulx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Uploads Dont Submit In Right Order
« Reply #6 on: March 10, 2008, 09:35:39 pm »

Alright thanks for all your help  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.06 seconds with 19 queries.