Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Dynamic Photo gallery

 

 


Berkowitz
User

Jun 11, 2008, 6:31 AM

Post #1 of 2 (257 views)
Shortcut
Dynamic Photo gallery Can't Post

Hi,

I'm creating a photo galelry. I wanted to know if there's a possibility to know the width and height of a picture (entire picture not the thumb) in the upload field when you click a thumb (in my case a little number). The reason I need this is to make the iframe, where the pic loads, Dynamic.

Example url: http://www.ciedesmaisonsdecharme.be/pages/projectDetails.php?Een-Dorpswoning-in-Damme-10

When you click the link you'll see three numbers, when you click them a picture will load. When you click number one you'll see a picture and the rest of the iframe is white. But my client's site is in Black so that's a rather ugly view. so i want the iframe to dynamicly change to the widht and height of every picture so you don't see the white.
Do you understand what I mean? Would be cool if this was possible Smile

Kind regards,
Berkowitz.


Dave
Staff / Moderator


Jun 11, 2008, 9:56 AM

Post #2 of 2 (242 views)
Shortcut
Re: [Berkowitz] Dynamic Photo gallery [In reply to] Can't Post

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

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4