Am I the only one having this problem? This is the second install of Zenpage, both sites had issues with sidebar misaligning when viewing the full image. Here's a link:
http://www.mlownie.com/gallery/index.php?album=retrospective&image=dream_of_flight.jpgI have not done anything but install the plug-in. Any help is appreciated.
Comments
Here's a partial copy of the codes where I placed the extra </div> after the <div id="image":
`
<?php if (!checkForPassword()) { ?>
<?php if(function_exists("printPagedThumbsNav")) { printPagedThumbsNav(6, FALSE, gettext('« prev thumbs'), gettext('next thumbs »'), 40, 40, 40, TRUE); } ?>
" class="thickbox" title="<?php echo getBareImageTitle();?>">
<?php printCustomSizedImageMaxSpace(getBareImageTitle(),580,580); ?>
<?php printImageDesc(true); ?>
<?php if (function_exists('printSlideShowLink')) printSlideShowLink(gettext('View Slideshow')); ?>
<?php
if (getImageEXIFData()) {echo "<div id=\"exif_link\">".gettext("Image Info")."
printImageMetadata('', false);
}
?>
<?php printTags('links', gettext('<strong>Tags:').' ', 'taglist', ''); ?>
<?php if (function_exists('printImageMap')) printImageMap(); ?>
<?php if (function_exists('printImageRating')) { printImageRating(); }?>
<?php if (function_exists('printShutterfly')) printShutterfly(); ?>
<?php if (getOption('Allow_comments')) { ?>
`
Here's the previous post where lucian mentioned it: http://www.zenphoto.org/support/topic.php?id=4072
`
<?php setThemeDomain("zenpage-default"); if (!defined('WEBPATH')) die(); $firstPageImages = normalizeColumns('2', '6');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php zenJavascript(); ?>
<?php echo getBareGalleryTitle(); ?> | <?php echo getBareAlbumTitle();?> | <?php echo getBareImageTitle();?>
/style.css" type="text/css" />
/js/thickbox.css" type="text/css" />
/js/thickbox.js" type="text/javascript">
function toggleComments() {
var commentDiv = document.getElementById("comments");
if (commentDiv.style.display == "block") {
commentDiv.style.display = "none";
} else {
commentDiv.style.display = "block";
}
}
<?php printRSSHeaderLink('Gallery',gettext('Gallery RSS')); ?>
" title="<?php gettext('Index'); ?>"><?php echo gettext("Index"); ?> » <?php echo gettext("Gallery"); ?><?php printParentBreadcrumb(" » "," » "," » "); printAlbumBreadcrumb(" ", " » "); ?>
<?php printImageTitle(true); ?> (<?php echo imageNumber()."/".getNumImages(); ?>)
<?php if (hasPrevImage()) { ?>
<?php } if (hasNextImage()) { ?>
<?php } ?>
<?php if (!checkForPassword()) { ?>
<?php if(function_exists("printPagedThumbsNav")) { printPagedThumbsNav(6, FALSE, gettext('« prev thumbs'), gettext('next thumbs »'), 40, 40, 40, TRUE); } ?>
" class="thickbox" title="<?php echo getBareImageTitle();?>">
<?php printCustomSizedImageMaxSpace(getBareImageTitle(),580,580); ?>
<?php printImageDesc(true); ?>
<?php
if (getImageEXIFData()) {echo "<div id=\"exif_link\">".gettext("Image Info")."
printImageMetadata('', false);
}
?>
<?php printTags('links', gettext('<strong>Tags:').' ', 'taglist', ''); ?>
<?php if (function_exists('printImageRating')) { printImageRating(); }?>
<?php if (function_exists('printShutterfly')) printShutterfly(); ?>
<?php if (getOption('Allow_comments')) { ?>
<?php $num = getCommentCount(); echo ($num == 0) ? "" : ("<h3>".gettext("Comments")." ($num)
"); ?>
<?php while (next_comment()){ ?>
<?php printCommentAuthorLink(); ?> <?php gettext("says:"); ?>
<?php echo getCommentBody();?>
<?php echo getCommentDate();?>
,
<?php echo getCommentTime();?>
<?php printEditCommentLink(gettext('Edit'), ' | ', ''); ?>
<?php }; ?>
<?php if (OpenedForComments()) { ?>
<?php echo gettext("Add a comment:"); ?>
<?php
printCommentErrors();
$stored = getCommentStored();
?>
( /> <?php echo gettext("don't publish"); ?>)
$captchaCode=generateCaptcha($img); ?>
" class="pushbutton" />
<?php } else { echo gettext('Comments are closed.'); } ?>
<?php } ?>
<?php } ?>
<?php include("sidebar.php"); ?>
<?php include("footer.php"); ?>
<?php printAdminToolbox(); ?>
`
`
<?php setThemeDomain("zenpage-default"); if (!defined('WEBPATH')) die(); $firstPageImages = normalizeColumns('2', '6');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php zenJavascript(); ?>
<?php echo getBareGalleryTitle(); ?> | <?php echo getBareAlbumTitle();?> | <?php echo getBareImageTitle();?>
/style.css" type="text/css" />
<?php /*?>/js/thickbox.css" type="text/css" />
/js/thickbox.js" type="text/javascript">
function toggleComments() {
var commentDiv = document.getElementById("comments");
if (commentDiv.style.display == "block") {
commentDiv.style.display = "none";
} else {
commentDiv.style.display = "block";
}
}
<?php */?>
<?php printRSSHeaderLink('Gallery',gettext('Gallery RSS')); ?>
" title="<?php gettext('Index'); ?>"><?php echo gettext("Index"); ?> <?php /*?>» <?php echo gettext("Gallery"); ?><?php */?><?php printParentBreadcrumb(" » "," » "," » "); printAlbumBreadcrumb(" ", " » "); ?>
<?php printImageTitle(true); ?> (<?php echo imageNumber()."/".getNumImages(); ?>)
<?php if (hasPrevImage()) { ?>
<?php } if (hasNextImage()) { ?>
<?php } ?>
<?php if (!checkForPassword()) { ?>
<?php if(function_exists("printPagedThumbsNav")) { printPagedThumbsNav(6, FALSE, gettext('« prev thumbs'), gettext('next thumbs »'), 40, 40, 40, TRUE); } ?>
<?php /*?> " class="thickbox" title="<?php echo getBareImageTitle();?>">
<?php printCustomSizedImageMaxSpace(getBareImageTitle(),580,580); ?>
<?php */?>
<?php printCustomSizedImageMaxSpace(getBareImageTitle(),640,640); ?>
<?php printImageDesc(true); ?>
<?php /*?> <?php
if (getImageEXIFData()) {echo "<div id=\"exif_link\">".gettext("Image Info")."
printImageMetadata('', false);
}
?><?php */?>
<?php /*?> <?php printTags('links', gettext('<strong>Tags:').' ', 'taglist', ''); ?><?php */?>
<?php /*?> <?php if (function_exists('printImageRating')) { printImageRating(); }?>
<?php if (function_exists('printShutterfly')) printShutterfly(); ?><?php */?>
<?php /*?><?php if (getOption('Allow_comments')) { ?>
<?php $num = getCommentCount(); echo ($num == 0) ? "" : ("<h3>".gettext("Comments")." ($num)
"); ?>
<?php while (next_comment()){ ?>
<?php printCommentAuthorLink(); ?> <?php gettext("says:"); ?>
<?php echo getCommentBody();?>
<?php echo getCommentDate();?>
,
<?php echo getCommentTime();?>
<?php printEditCommentLink(gettext('Edit'), ' | ', ''); ?>
<?php }; ?>
<?php if (OpenedForComments()) { ?>
<?php echo gettext("Add a comment:"); ?>
<?php
printCommentErrors();
$stored = getCommentStored();
?>
( /> <?php echo gettext("don't publish"); ?>)
$captchaCode=generateCaptcha($img); ?>
" class="pushbutton" />
<?php } else { echo gettext('Comments are closed.'); } ?>
<?php } ?><?php */?>
<?php } ?>
<?php include("sidebar.php"); ?>
<?php include("footer.php"); ?>
<?php printAdminToolbox(); ?>
`
I am on Firefox 3.0.3 on Mac OS Tiger, so I haven't looked at any Windows OS. But last I checked that both platforms had this problem. I'm surprised that no one else reported this. But according to what Olihar just said, others may have had it - it's just that it was an easier fix for them due to the greater knowledge they have of the codes.
Olihar - thanks for the reply and the fix. I will look into it sometime today. By the way, I love what you did with your site (when I click on your name) That's exactly what I was looking for (the black/grey background). Is that done by Zenpage or did you just add the menu on the top yourself?
Thanks again guys!
P.S. - I still would like to know how to disable thickbox.
Second, I have found the error. There is not a closing div missing but wrong nested so that it indeed gets losts if the comments are disabled. The fix is easy (of course I will svn it). Open image.php and look at line 141:
`
<?php } else { echo gettext('Comments are closed.'); } ?>
<?php } ?>
<?php } ?>
`
Change this to:
`
<?php } else { echo gettext('Comments are closed.'); } ?>
<?php } ?>
<?php } ?>
`
Now it should work as expected.
To disable the thickbox, open also image.php and simply remove the `class="thickbox"` from the a href, also remove the thickbox.js and thickbox.css load from the head of the file.
1 thing to note, the possibility to control if you want to have comments on or off in the settings for this theme, as long with some other settings as well like the default theme has.