PDA

View Full Version : Thumbnail Viewer 2 Help



billythetidd
05-16-2008, 03:20 PM
1) Script Title: Thumbnail Viewer 2

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

3) Describe problem:

I have created a page with images on and I have used this script to view enlarged versions. All is ok when I preview the page in my browser, all thumbnails link to enlargements like shown as the example on the url above. The problem is when I upload to my server none of the images show eg, the thumbnails or the enlargements. I have gone over the links and they are all correct. I have used the thumbnails on other pages and they seem to work so it can't be a spelling/root/directory problem.

Here is a link for you to see the problem: Linky
(http://www.jewelleryboxinverkip.co.uk/earrings1.php)
I'm stumped!!!

jscheuer1
05-16-2008, 03:34 PM
It could be, these things become trickier once on the server. Differences in upper and lower case in paths and filenames, ignored on the local machine, will not be on the server. The same is true of mistakenly using the \ symbol in a path instead of the / symbol. And paths that might be valid locally for other reasons (exact placement of the files visa vis the path's actual meaning), but not be the same on the server.

You also may have simply neglected to upload the images. There can, in rare cases be issues with the server itself relating to file permissions, but that's probably not the case here.

If you need more help:

Please post a link to the page on your site that contains the problematic code so we can check it out.

billythetidd
05-16-2008, 03:41 PM
It could be, these things become trickier once on the server. Differences in upper and lower case in paths and filenames, ignored on the local machine, will not be on the server. The same is true of mistakenly using the \ symbol in a path instead of the / symbol. And paths that might be valid locally for other reasons (exact placement of the files visa vis the path's actual meaning), but not be the same on the server.

You also may have simply neglected to upload the images. There can, in rare cases be issues with the server itself relating to file permissions, but that's probably not the case here.

If you need more help:

Please post a link to the page on your site that contains the problematic code so we can check it out.

Thanks for the speedy reply. I know it's not the images as I have thumbnails on other pages and they work fine. Here is a link to the page/pages in question.

Link (http://www.jewelleryboxinverkip.co.uk/earrings1.php)

I think the possible explanation is that sometimes things work differently when uploaded to a server, although I have never experienced that before.

jscheuer1
05-16-2008, 03:54 PM
It is as I said. This image exists, for example:


http://www.jewelleryboxinverkip.co.uk/images/large/Earrings/e1-1_large.jpg

But not this one (as pointed to in your source code):


http://www.jewelleryboxinverkip.co.uk/images/large/earrings/e1-1_large.jpg

by:


href="images/large/earrings/e1-1_large.jpg"

I suspect that this sort of typo has crept in many places in your code.

billythetidd
05-16-2008, 04:10 PM
Yeah, just as you posted that I found the problem. Thanks for the help. I remember that suggestions if anything happens in the future.