So I added these to the head of my album.php:
<script type="text/javascript" src="/themes/default/js/mootools.js"></script>
<script type="text/javascript" src="/themes/default/js/slimbox.js"></script>
<link rel="stylesheet" href="/themes/default/css/slimbox.css" type="text/css" media="screen" />
And I added:
rel="lightbox"
after
<div class="imagethumb">
"
Whenever I click an image now, I just see the loading screen and no image comes up. I have tried quite a few things to get it to work to no avail. Any help is kindly appreciated.
Comments
http://www.zenphoto.org/support/topic.php?id=3036&replies=14#post-18396
<?php if (!defined('WEBPATH')) die(); $themeResult = getTheme($zenCSS, $themeColor, 'light'); $firstPageImages = normalizeColumns('2', '6');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php zenJavascript(); ?>
<title><?php printGalleryTitle(); ?> | <?php echo getAlbumTitle();?></title>
<link rel="stylesheet" href="<?php echo $zenCSS ?>" type="text/css" />
<?php printRSSHeaderLink('Album',getAlbumTitle()); ?>
<script type="text/javascript" src="/themes/default/js/mootools.js"></script>
<script type="text/javascript" src="/themes/default/js/slimbox.js"></script>
<link rel="stylesheet" href="/themes/default/css/slimbox.css" type="text/css" media="screen" />
</head>
<body>
<div id="main">
<div id="gallerytitle">
<h2><span><?php printHomeLink('', ' | '); ?>" title="<?php echo gettext('Albums Index'); ?>"><?php echo getGalleryTitle();?> | <?php printParentBreadcrumb(); ?></span> <?php printAlbumTitle(true);?></h2>
</div>
<div id="padbox">
<?php printAlbumDesc(true); ?>
<div id="albums">
<?php while (next_album()): ?>
<div class="album">
<div class="thumb">
" title="<?php echo gettext('View album:'); ?> <?php echo getAlbumTitle();?>"><?php printAlbumThumbImage(getAlbumTitle()); ?>
</div>
<div class="albumdesc">
<h3>" title="<?php echo gettext('View album:'); ?> <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></h3>
<small><?php printAlbumDate(""); ?></small>
<?php printAlbumDesc(); ?>
</div>
<p style="clear: both; ">
</div>
<?php endwhile; ?>
</div>
<div id="images">
<?php while (next_image(false, $firstPageImages)): ?>
<div class="image">
<div class="imagethumb">" rel="lightbox" title="<?php echo getImageTitle();?>"> <?php printImageThumb(getImageTitle()); ?></div>
</div>
<?php endwhile; ?>
</div>
<?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>
<?php printTags('links', gettext('Tags:').' ', 'taglist', ''); ?>
</div>
<?php if (function_exists('printSlideShowLink')) printSlideShowLink(gettext('View Slideshow')); ?>
<?php if (function_exists('printAlbumRating')) { printAlbumRating(); }?>
</div>
<div id="credit"><?php printRSSLink('Album', '', gettext('Album RSS'), ''); ?> | ?p=archive"><?php echo gettext("Archive View"); ?> | <?php echo gettext("Powered by"); ?> ">zenphoto</div>
<?php printAdminToolbox(); ?>
</body>
</html>
`" rel="lightbox" title="<?php echo getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?>`
Also make sure you have the correct path to the slimbox images folder in your slimbox.css file.
If you still have a problem, send me the URL for the website.
Again, thanks for your time.
So change this:
`<?php echo htmlspecialchars(getImageLinkURL());?>`
to this:
`<?php echo getFullImageURL();?>`
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
<?php zenJavascript(); ?>
<?php printGalleryTitle(); ?> | <?php echo getAlbumTitle();?>
" type="text/css" />
<?php printRSSHeaderLink('Album',getAlbumTitle()); ?>
<?php printHomeLink('', ' | '); ?>" title="<?php echo gettext('Albums Index'); ?>"><?php echo getGalleryTitle();?> | <?php printParentBreadcrumb(); ?> <?php printAlbumTitle(true);?>
<?php printAlbumDesc(true); ?>
<?php while (next_album()): ?>
" title="<?php echo gettext('View album:'); ?> <?php echo getAlbumTitle();?>"><?php printAlbumThumbImage(getAlbumTitle()); ?>
" title="<?php echo gettext('View album:'); ?> <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?>
<?php printAlbumDate(""); ?><?php printAlbumDesc(); ?>
<?php endwhile; ?>
<?php while (next_image(false, $firstPageImages)): ?>
<?php endwhile; ?>
<?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>
<?php printTags('links', gettext('<strong>Tags:').' ', 'taglist', ''); ?>
<?php if (function_exists('printSlideShowLink')) printSlideShowLink(gettext('View Slideshow')); ?>
<?php if (function_exists('printAlbumRating')) { printAlbumRating(); }?>
<?php printAdminToolbox(); ?>
`
Thats what I have now. Still doesn't grab the image.
Here is my album.php code:
`<?php if (!defined('WEBPATH')) die(); $themeResult = getTheme($zenCSS, $themeColor, 'light'); $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 strip_tags(getGalleryTitle()); ?> | <?php echo strip_tags(getAlbumTitle());?>
" type="text/css" />
<?php printRSSHeaderLink('Album',getAlbumTitle()); ?>
<?php printHomeLink('', ' | '); ?>" title="<?php echo gettext('Albums Index'); ?>"><?php echo getGalleryTitle();?> | <?php printParentBreadcrumb(); ?> <?php printAlbumTitle(true);?>
<?php printAlbumDesc(true); ?>
<?php while (next_album()): ?>
" title="<?php echo gettext('View album:'); ?> <?php echo strip_tags(getAlbumTitle());?>"><?php printAlbumThumbImage(getAlbumTitle()); ?>
" title="<?php echo gettext('View album:'); ?> <?php echo strip_tags(getAlbumTitle());?>"><?php printAlbumTitle(); ?>
<?php printAlbumDate(""); ?><?php printAlbumDesc(); ?>
<?php endwhile; ?>
<?php while (next_image(false, $firstPageImages)): ?>
<?php endwhile; ?>
<?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>
<?php printTags('links', gettext('<strong>Tags:').' ', 'taglist', ''); ?>
<?php if (function_exists('printSlideShowLink')) printSlideShowLink(gettext('View Slideshow')); ?>
<?php if (function_exists('printAlbumRating')) { printAlbumRating(); }?>
<?php printAdminToolbox(); ?>
`
Please help the clueless PHP newbie.
Of course this will only work for the thumbnail page you are currently on, it will not included following thumbnail pages. (it will start again there). Unless you set the thumbs per page to fit all the images you have on one page.