Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Instant Website: Realty/Listings/Auto:
Reduce thumbnails on list page only

 

 


willydoit
User

May 18, 2009, 8:28 AM

Post #1 of 6 (4494 views)
Shortcut
Reduce thumbnails on list page only Can't Post

Hi Guys,

I have just about designed one of my listing pages but find that the default thumbnail size I have set is a bit too large for my listings page, I dont want to reduce the general size as the images have been sized to display in a column on the details page which is 200px wide.

I have copied the code below used to display the image in a table floating to the right, can anyone advise how I can get this image to display at a reduced size without losing the proportions as some will be landscape and some portrait, ideally I would like to display the image at a percentage of it's normal size. I have tried setting to a % as best I can but that only seemed to cause the image to display to a percentage of the table dimensions which caused other issues.

Thanks in advance.



<table width="210" border="0" align="right">
<tr>
<td><?php foreach ($record['uploads'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" align="right" /><br/>

<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

<?php else: ?>
<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

<?php endif ?><?php break; ?>
<?php endforeach ?></td>
</tr>
</table>


ross
Staff / Moderator


May 18, 2009, 9:09 AM

Post #2 of 6 (4493 views)
Shortcut
Re: [willydoit] Reduce thumbnails on list page only [In reply to] Can't Post

Hi there.

Thanks for posting!

In the admin section of Instant Realty Website, you can actually adjust the thumbnail sizes and even have several different thumbnails created.

Had you seen this? Perhaps you could setup a thumbnail size specifically for that column of images.

Let me know what you think and we'll go from there. Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



willydoit
User

May 18, 2009, 9:30 AM

Post #3 of 6 (4491 views)
Shortcut
Re: [ross] Reduce thumbnails on list page only [In reply to] Can't Post

Hi Ross,

If that allows the system to generate a version of the thumbnail to be used in a specific location while retaining normal size for that image for other locations that would be ideal, how would I go about doing that?



Thanks in advance


ross
Staff / Moderator


May 19, 2009, 9:30 AM

Post #4 of 6 (4486 views)
Shortcut
Re: [willydoit] Reduce thumbnails on list page only [In reply to] Can't Post

Hi.

In the section editor when you modify an upload field, there will be several boxes for the different thumbnail sizes. Just fill those out and you should be good to go.

To access theses values, you would just need to add a 2 or 3 or 4 to the end of your image variables on the display pages like this:

$upload['thumbUrlPath2']

or

$upload['thumbUrlPath3']

Give that shot and let me know how you make out :).

Let me know how you make out. Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



misery217
User

Oct 12, 2009, 2:46 PM

Post #5 of 6 (3853 views)
Shortcut
Re: [ross] Reduce thumbnails on list page only [In reply to] Can't Post

Hey Ross,

I was looking over for a situation just like this. I tried what you had said (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!


ross
Staff / Moderator


Oct 16, 2009, 2:52 PM

Post #6 of 6 (3710 views)
Shortcut
Re: [misery217] Reduce thumbnails on list page only [In reply to] Can't Post

Hi

Could you double check in your field editor for that field that you actually have a 2nd thumbnail being created.

<?php echo $upload['thumbUrlPath2'] ?>

That should be the code for your second thumbnail as long as there actually is a a second thumbnail.

Could you also attach a copy of the whole page for me to see your code in context. If you wouldn't mind just attaching a copy instead of pasting all the code into a reply, that would be great.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/