PDA

View Full Version : sequential number of the images


guiz
08-04-2007, 07:04 PM
In one occasion I have seen this problem with the upload of the images.

1. I upload an image to the server (showimage=191)
2. I upload a second image to the server (showimage=192)
3. I go in the admin panel and select "image" and click on edit of the image #192 to change the image (why it was a wrong image)
4. I go to my website: www.idom.org (home)
In the thumbnails under the image (I have the <IMAGE_THUMBNAIL_ROW> in the image_template) I see the #: 192, 190, 189, 188, 187 (I miss the #191)

now I click on the thumbnail #190 an I see the thumbnails #: 192, 191, 190, 189, 188

now I click on the thumbnail #191 an I see the thumbnail #: 191, 190, 189, 188, 187 (I miss the #192)

Dennis
08-04-2007, 07:21 PM
Logout from your admin panel prior going to your site. See if this solves it.

guiz
08-04-2007, 07:31 PM
I've logged out. but the problem still remains.
I have just uploaded another image (#193)

when I have the #193 on the screen and I click "previous" I go to #192,
now "previous" has #190 and "next" #193

when I have the #190 on the screen I have "previous" #189,
and "next" #191

when I have the #191 on the screen I have "previous" #190,
and "next" #193

guiz
08-04-2007, 09:09 PM
I have solved the problem

I have opened phpMyAdmin and opened the Table: pixelpost_pixelpost

the datetime (2007-08-04 11:20:59) and image field (20070804203455_dsc_9101.jpg) where the same for both images

I have changed the datetime of one image (just 1 second before: 2007-08-04 11:19:59) and the image name
20070804203455_dsc_9101.jpg -> 20070804203553_dsc_9112.jpg

then I opened with ftp my site and renamed both the filenames of the image and of the thumbnail.

PS: when I change an image in the image list of the admin panel, the new image becomes the same name and the same time of the previous image in the db, so pixelpost has two images with the same data and can not know what for image is the new or the older.

the solution can be to change also the time and filename direct when an image is changed

this was the problem