View Single Post
  #57  
Old 08-14-2007, 09:45 AM
  Jayk's Avatar 
Jayk Jayk is offline
 

eXpert
  
Join Date: Nov 2003
Location: Calgary, Alberta, Canada
Posts: 333
 

Default Re: TelaFirma Dynamic Image Mod + Thickbox 2.2

Quote:
Originally Posted by Jayk
If there's enough interest, maybe we could approach Qualiteam to find out how much it would cost to get this working with variant images in 4.1.x. I know I definitely would like to see this.

Jason

To reply to my own post, I did a bit of a hack to get the variant images working with the mod that dfawdon had Qualiteam produce.

I added an if statement into product_thumbnail.tpl that excluded variant images from the new code. This works great on my setup as the variant images on the product detail pages aren't scaled and thus don't need the sharpening, etc.

Here is my product_thumbnail.tpl in case anyone else is interested.

Code:
{* $Id: product_thumbnail.tpl,v 1.19 2005/11/17 06:55:36 max Exp $ *} {strip} {if $usertype eq 'A' || $usertype eq 'P'} {assign var="tfile" value=$tmbn_url|replace:"`$http_location`/":"../"|replace:"`$https_location`/":"../"}{else}{assign var="tfile" value=$tmbn_url|replace:"`$http_location`/":""|replace:"`$https_location`/":""}{/if}{if !$class}{assign var="class" value="NoBorder"}{/if}{if !$sharpen}{assign var="sharpen" value="true"}{/if}{if !hint}{assign var="hint" value="false"}{/if}{if !overlay_position}{assign var="overlay_position" value="5"}{/if} {if $config.Appearance.show_thumbnails eq "Y"} {if $type ne "W"} {if $tmbn_url} {thumb file="$tfile" width="$image_x" link="false" hint="false" overlay_position="$overlay_position" overlay="$overlay" sharpen="$sharpen" get_image_path="$get_image_path" html="class=\"$class\" alt=\"`$alt`\""} {else}<img {if $id}id="{$id}" {/if}src="{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?type={$type|default:"T"}&amp;id={$productid}{if $file_upload_data.file_path}&tmp=y{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}"{if $align} align="{$align}"{/if}{if $class} class="{$class}"{/if}> {/if} {else}<img{if $id ne ''} id="{$id}"{/if} src="{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?type={$type|default:"T"}&amp;id={$productid}{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" /> {/if} {/if}{/strip}

Jason
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote