LINK THUMBNAILS TO FULL-SIZED VERSION OF IMAGES - Aug 3rd, 2010


By default, this is the code used to generate the image tags for thumbnails is:



<?PHP if ($upload['hasThumbnail']): ?>
<img src="<?PHP echo $upload['thumbUrlPath'] ?>" width="<?PHP echo $upload['thumbWidth'] ?>" height="<?PHP
echo $upload['thumbHeight'] ?>" alt="" /><br />



If you want your thumbnails to link to the full-sized version of the image, you can substitute that code with this:



<?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 />





The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service