PDA

View Full Version : No pictures can be seen on Photo



flipmoore
06-26-2008, 08:38 PM
1) Script Title: PHP Photo Album

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



3) Describe problem: I am having a problem getting the pictures in the folder to be shown on the web page. I even put it in a blank html page to se if it would work. Here is the page:

http://www.longsconstruction.net/kitchen_album.html

Any help would be greatly appreciated.

jscheuer1
06-27-2008, 01:20 AM
Where you have:


<script type="text/javascript">

/***********************************************
* PHP Photo Album script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

var dimension="4X8" //Specify dimension of gallery (number of images shown), such as 4x2, 3x1 etc
var imagepath="http://www.longsconstruction.net/images/Pictures/Kitchens/Thumbnails/" //Absolute path to image directory. Include trailing slash (/)
var href_target="new" //Enter tar . . .

The script is expecting:

"4x8"

with a lower case x. This is breaking the script. Use a lower case x and see what happens, there could also be other problems. However, everything else looks basically OK.

flipmoore
06-27-2008, 01:32 PM
Thank you so much John. That fixed it! I incorporated it into the site, but now I am having problems showing the thumbnails.

http://www.longsconstruction.net/kitchens.html

jscheuer1
06-27-2008, 02:13 PM
now I am having problems showing the thumbnails.

That's because, the getpics.php is scanning the larger images folder, where you have, for example:

DSCF0215.JPG

However, its counterpart in the thumbnail folder is named:

DSCF0215.jpg

with the lower case .jpg file extension, they are both valid image files, but to work with this script, the filenames and extensions must be exactly the same.

Rename one or the other of the files so that they match exactly.

flipmoore
06-27-2008, 03:45 PM
Great catch John. I did not realize it was that sensitive. Thanks again.