making thumnails link to large photos

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 13, 2008   (RSS)

Re: [equinox69] making thumnails link to large photos

By Dave - February 13, 2008

Hi Terry,

Thanks for the kudos, much appreciated! :)

Find the place in your viewer page where the <img ... > tag is. It will look something like this:

<img src="<?php echo $upload['urlPath'] ?>"
width="<?php echo $upload['width'] ?>"
height="<?php echo $upload['height'] ?>" /><br/>


There will be two, once will say thumbUrlPath instead (that one displays for thumbnails). Add a link around each img tag like:

<a href="<?php echo $upload['urlPath'] ?>"><img ... ></a>

That will link the image to the fullsize version.

Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] making thumnails link to large photos

By Codee - February 13, 2008

Thanks Dave!

Terry