PDA

View Full Version : Resolved PHP Photo Album script issue



TrashTrampoline
12-04-2008, 05:30 PM
1) Script Title:
PHP Photo Album script

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

3) Describe problem:
Image gallery does not display all images in the directory plus leaves "Holes" in the display page where some of them SHOULD be.
Showing 6 out of 10 images. Images vary in size with no apparent pattern of display based on dimensions or overall size. :(

Getpics.php is set to 644 and image folder is set to 755. . .
http://trashtrampoline.org/ZAP1/datastore/gallery/getpics.php

Gallery can be viewed at . . .
http://trashtrampoline.org/ZAP1/index.php?slab=gallery
Gallery tested on IE6, IE7, Firefox & Chrome, all with same results.

.CSS was rolled into site .CSS at bottom of style sheet. . .
http://trashtrampoline.org/ZAP1/blade_packs/public_theme_grapes/grapes_css.css

Anybody have any ideas?

Thanks!
Brian

jscheuer1
12-05-2008, 07:15 AM
Well all of the images are there in FF and in Opera. Also, in IE 7, they all appear in the document tree according to the developer extension. Make the dimension "3x4":


var dimension="3x4" //Specify dimension of gallery (number of images shown), such as 4x2, 3x1 etc

and change:


document.write('<br style="clear: left" />')

to:


document.write('<div style="clear: left"></div>')

TrashTrampoline
12-05-2008, 01:42 PM
That worked . . . I don't understand why it worked, but it worked! I will print the code out and review it to understand it. I guess I needed to close the DIV and I had the columns/rows backwards.:confused:

Thanks!!:)

and your even a local guy to me. haha

jscheuer1
12-05-2008, 04:00 PM
Well, whether to use 3x4, or 2x5, or whatever, depends upon the layout space available and the width (and in some cases, the height) of each .slideshow classed division generated by the code. Changing from the <br /> element to the <div></div> element to perform the 'clear' in the script there was just a hunch on my part. Apparently the <br /> element isn't sufficient in IE to create a true clear for the floats of the .slideshow classed divisions.