Lytebox gallery

2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 6, 2009   (RSS)

Hi

I've been struggling to get Lytebox working I wonder if you could see what I'm doing wrong?

The table name is 'gallery' the image field name is 'picture'.

<?php foreach ($galleryRecord['picture'] as $upload): ?>
<?php if ($upload['isImage']): ?>
<td width="230" height="130">
<a href="<?php echo
$upload['urlPath'] ?>" rel="lytebox[gallery]"><img src="<?php echo $upload['thumbUrlPath']
?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo
$upload['thumbHeight'] ?>" border="0" alt="" /></a><br /><br />
</td>
<td width="15">&nbsp;</td>
<?php endif ?>
<?php $maxCols=3; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif; ?>
<?php endforeach ?>