Help with linking thumbnails to full sized images

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 12, 2008   (RSS)

Re: [gkornbluth] Help with linking thumbnails to full sized images

By Jake - July 12, 2008

Hi Jerry,

Try using this code - it should do the trick:

<?php foreach ($gallery_2003Record['image_1'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<a href="<?php echo $upload['urlPath'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /></a><br/>
<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>
<?php else: ?>
<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>
<?php endif ?>
<br />
<?php echo $upload['info1']; ?><br />
<?php echo $upload['info2']; ?><br />
<br />
</span>


Your assumptions about the image dimension restrictions are correct. [:)]
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.