PDA

View Full Version : images with exact same date get skipped


littleears
08-01-2005, 06:44 AM
I uploaded some old images. 3 have the exact same date and time. When using the previous and next links, 2 of the 3 images are skipped. The images are displayed in the thumbs and archive sections, and if you click on them they display normally.

I believe making the date/times slightly different will solve my problem, which I am about to do, so you won't see this on my site.

http://thedailybone.us

-Kelly

raminia
08-01-2005, 07:45 AM
with exact same seconds?
surely it's skipped. why doing that?

riken
08-01-2005, 08:03 AM
Yeah the code does previous<date and next>date instead of previous<=date and next>=date. If you were to change it you would get a random image for any images that had the same date.

The solution is to not set images to the same date/time.

raminia
08-01-2005, 08:14 AM
you are using copy folder addon?

littleears
08-03-2005, 06:07 AM
with exact same seconds?
surely it's skipped. why doing that?

This is a very small problem - certainly small now that I understand it. But before I understood it it seemed that pictures were loaded onto the system but that the system would skip over them.

hs-l
08-20-2005, 08:12 AM
you are using copy folder addon?

I am, and i have the sort of the same problems.
http://pix.hs-l.nl i can't see my next or previous pictures.
it just shows the current.

Is it something that always happens with the copy folder addon?

Harold

raminia
08-20-2005, 08:52 AM
yes unless you use the version 1.5 that is going to be available soon!
you can modify the current addon to act as you like it for now. just add sleep(1); to the line below the line reads:
if($file != "." && $file != ".." && $file != ".DS_Store") {
inside addons/copy_folder.php

Connie
08-20-2005, 10:32 AM
Is it something that always happens with the copy folder addon?

Harold

Harold, we found out that it can be a problem with CopyFolder, if you have a very fast FTP connection and the images get exactly the same timestamp

if you have a slow server connection, it won't happen:eek:

will behave different in coming version!