Dynamic Photo gallery

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

Re: [Berkowitz] Dynamic Photo gallery

By Dave - June 11, 2008

Hi Berkowitz,

Assuming your variable is named $upload (you can use any name you like) you should be able to get the dimensions of the thumbnail and fullsize image with these fields:

<?php echo $upload['thumbWidth'] ?>
<?php echo $upload['thumbHeight'] ?>
<?php echo $upload['width'] ?>
<?php echo $upload['height'] ?>

Dynamically changing the size of the iframe would probably take some javascript. But you should be able to use these values to know which size you want to change it to.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com