View Single Post
  #239  
Old 12-05-2006, 06:29 AM
 
ranger82nd ranger82nd is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 159
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

I've been unsuccessful trying to get the "larger" images to the cached version. Although thickbox does do its own resizing. Here's what I did.

Completely replace the contents of thickbox_productpage.tpl with this:
Code:
{if $images ne ""} <div style="white-space:nowrap;color:#D90000;font-weight:bold;padding:2px;margin:10px 0 4px;">{$lng.lbl_detailed_images} <img src="{$SkinDir}/thickbox/files/zoom.gif" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /></div> {section name=image loop=$images} {if $images[image].avail eq "Y"} {if $images[image].tmbn_url} <a href="{$images[image].tmbn_url}" title="{$images[image].alt|escape}" class="thickbox" rel="[detailed]">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.dthumb_image_width product=$product.product tmbn_url=$images[image].tmbn_url alt=$images[image].alt|escape}</a> {/if} {/if} {/section} {/if}

Next, your product.tpl find:
Code:
{* New Dynamic Image Mod - TelaFirma *} {if $product.tmbn_url} {math equation="(z/(y/x))+65" y=$product.image_x x=$config.Appearance.popup_image_width z=$product.image_y assign="p_y" format="%.d"} <a href="javascript:void(0)" onClick="window.open('{$xcart_web_dir}/thumb_popup.php?productid={$product.productid}','mywindow','width={$config.Appearance.popup_image_width},height={$p_y}')"> {/if} <br><br> {include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.product_image_width product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" class="NoBorder" alt=$product.product|escape}{if $product.tmbn_url}</a>{/if} <br> {if $images[0].imageid ne""} {include file="modules/Detailed_Product_Images/product_images_detail.tpl"} {/if} {* /New Dynamic Image Mod - TelaFirma *}
and replace it with:
Code:
{if $product.tmbn_url} <a href="{$product.tmbn_url}" title="{$product.product|escape}" class="thickbox" rel="[detailed]">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.product_image_width product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" alt=$product.product|escape} {if $product.tmbn_url}<div align="center" class="SmallText">+ Click to Enlarge</div></a>{/if} {/if} <br> {if $images[0].imageid ne""} {include file="thickbox/thickbox_productpage.tpl" } {/if}
That should do it!
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting!
Reply With Quote