Results 1 to 4 of 4

Thread: PHP Photo Album script issue

  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default PHP Photo Album script issue

    1) Script Title:
    PHP Photo Album script

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...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/data...ry/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/blad...grapes_css.css

    Anybody have any ideas?

    Thanks!
    Brian
    Last edited by TrashTrampoline; 12-05-2008 at 01:42 PM. Reason: added info

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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":

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

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

    Code:
    document.write('<div style="clear: left"></div>')
    Last edited by jscheuer1; 12-05-2008 at 07:54 AM. Reason: figured it out
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    TrashTrampoline (12-05-2008)

  4. #3
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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.

    Thanks!!

    and your even a local guy to me. haha

  5. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •