When there are empty galleries, something breaks on the "image" page, e.g., http://forum.lamp-development.com/ldis/?q=image (see attached screenshot). The style breaks on the first empty album, the second gets worse, and the right sidebar moves all the way to the right. There could be an html tag mismatch causing this, but I can't spot it.

CommentFileSizeAuthor
meta_error.jpg379.99 KBGerry Danen

Comments

Gerry Danen’s picture

Assigned: Unassigned » Gerry Danen
Status: Active » Needs review

It seems to be fixed by changing image_gallery.tpl.php, switching lines 21 and 22 to read:

    $content .= "\t"."\t"."\t".'<div class="preview">';	// moved up - Danen
    if ($gallery->count)
dipstick’s picture

All you havve to do is at least put 1 images in each gallery and the problem will be fixed. I have the same problem and this is what fixed it.

A suggestion to the creator, that each time someone makes a gallery that a dummy file automatically gets inserted into that gallery, until they upload the first pic (which will delete the dummy file) this will sovle your ongoing problem

Ken Collins’s picture

Actually, I think it could be that <li> tag with the clearfix class that needs to be put into the loop. Something like this.

// Start setting the mood...
if ($gallery->count)
  $content .= "\t"."\t".'<li class="clearfix">'."\n";
  $content .= "\t"."\t"."\t".'<div class="preview">';
Ken Collins’s picture

Assigned: Gerry Danen » Ken Collins
Status: Needs review » Fixed

committed.

Ken Collins’s picture

Status: Fixed » Closed (fixed)