Using other Thumbnails only
5 posts by 3 authors in: Forums > CMS Builder
Last Post: January 11, 2010 (RSS)
I was looking over for a situation just like this. I tried (using
Code
<?php echo $upload['thumbUrlPath2'] ?>
) to no avail. It shows up the size as the original Thumbnail.
However, when I change the 'if' statement to use Thumbnail 2 (using
Code
<?php if ($upload['hasThumbnail2']): ?>
) it works... Sort of... I get the error on the page "Notice: Undefined index: hasThumbnail2 in C:\inetpub\wwwroot\bobkingrealty.com\agents\detail.php on line 128."
Any ideas?
Thanks!
Code
<?php echo $upload['thumbUrlPath2'] ?>
) to no avail. It shows up the size as the original Thumbnail.
However, when I change the 'if' statement to use Thumbnail 2 (using
Code
<?php if ($upload['hasThumbnail2']): ?>
) it works... Sort of... I get the error on the page "Notice: Undefined index: hasThumbnail2 in C:\inetpub\wwwroot\bobkingrealty.com\agents\detail.php on line 128."
Any ideas?
Thanks!
Re: [misery217] Using other Thumbnails only
By Damon - October 14, 2009
Try this:
If that doesn't work for you, can you attach your php page so I can take a look at all of the code.
<?php foreach ($record['images'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath2'] ?>" width="<?php echo $upload['thumbWidth2'] ?>" height="<?php echo $upload['thumbHeight2'] ?>" />
etc....
<?php endif ?>
<?php endforeach ?>
If that doesn't work for you, can you attach your php page so I can take a look at all of the code.
Cheers,
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Damon] Using other Thumbnails only
Okay Damon, thanks!!! Adding the modifier to the end of the height and width was the trick!
Re: [Damon] Using other Thumbnails only
By Codee - January 9, 2010
This is a piece of info I recommend going into the "doc" page under "displaying uploads" as it's a simple, although standard, part of the CMSB coding.
Re: [equinox69] Using other Thumbnails only
By Damon - January 11, 2010
Hi,
Good point, thanks.
I updated the "Displaying Uploads" page in the docs to include this.
http://www.interactivetools.com/docs/cmsbuilder/uploads.html
Good point, thanks.
I updated the "Displaying Uploads" page in the docs to include this.
http://www.interactivetools.com/docs/cmsbuilder/uploads.html
Cheers,
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/