View Single Post
  #19  
Old 09-02-2008, 07:24 AM
  polkadotninja's Avatar 
polkadotninja polkadotninja is offline
 

Newbie
  
Join Date: Aug 2007
Posts: 5
 

Default Re: Dynamic Images - a FREE mod for image resizing!

Just wanted to chime in and note that this is a great mod. I purchased the Telefirma mod, but it took a long while to get and is tied to a single domain. Not sure if it'll work on test localhost domains, but haven't gotten answer to this or any other basic Q's from the provider, so I'm too nervous about requiring any possible support down the road to use it. Found this mod while waiting for delivery of the Telefirma mod, though, and I love it.

I installed the Lytebox changes as suggested, and like that a lot, too. I made a few minor changes that I'd like to share in case anybody is interested. I wanted to have the image on the product editing page be resized, too, so ended changing the following files ...

skin1/main/edit_image.tpl, changed image line to the following:
PHP Code:
{if $active_modules.PHPSS_Dynamic_Images ne ""}
  <
a href="{$product.tmbn_url}title="{$product.product|escape}rel="lytebox[detailed]"><img src="/{thumb file=$product.tmbn_url width=$phpss_dyn_img_width|default:$product.image_x link=false hint=false get_image_path=true}" id="product_thumbnail" class="thumb" alt="{include file="main/image_property.tpl"}" /></a>
{else}
  <
img id="{$idtag}src="{$xcart_web_dir}/image.php?type={$type}&amp;id={$id}&amp;ts={$smarty.now}{if $already_loaded}&amp;tmp=Y{/if}"{if $image_x ne 0width="{$image_x}"{/if}{if $image_y ne 0height="{$image_y}"{/if} alt="{include file="main/image_property.tpl"}"/>
{/if} 

skin1/admin/home.tpl and skin1/provider/home.tpl, added the following to the head tag:
HTML Code:
{* Lytebox *} <script type="text/javascript" language="javascript" src="{$SkinDir}/js/lytebox.js"></script> <link rel="stylesheet" href="{$SkinDir}/css/lytebox.css" type="text/css" media="screen" /> {* /Lytebox *}

Now going to try to eliminate the product listing thumbnails and just replace them with a resized version of the main image ... if anybody has advice on this, please share
__________________
Version 4.1.10
Reply With Quote