As mentioned in an earlier post, after TelaFirma disappeared, we needed to update their module to work with any domain. This involves downloading the free smarty image function and changing some of Dynamic Images code.
Download thumb_imp:
https://sourceforge.net/project/showfiles.php?group_id=205464
This archive has two files: function.thumb.php and function.thumb_imp.php.
They go in: /include/templater/plugins/
There is an existing function.thumb.php file in this folder. Rename or replace that file. If you open function.thumb_imp.php, you can see the code.
There are a number of new parameters that you may want to take advantage of. We need to update the Dynamic_Images code to work with this module. The main problem is the file parameter.
/include/func/func.product.php
replace line 637:
Code:
$result[$key]["tmbn_url"] = func_get_image_url($value['productid'], 'T', $value['image_path']);
with:
Code:
$result[$key]["tmbn_url"] = $value['image_path'];
/skin1/modules/Dynamic_Images/product_image.tpl
replace line 41:
Code:
<a rel="{$rel}" href="{thumb file=$product.tmbn_url width=$config.Dynamic_Images.di_detail_popup_width linkonly="Y"}" title="{$product.product}" class="NoBorder">
{thumb file=$product.tmbn_url width=$config.Dynamic_Images.di_product_image_width alt=$product.product|escape class=NoBorder id="mainphoto"}
</a>
with:
Code:
<a rel="{$rel}" href="{$product.tmbn_url_T}" title="{$product.product}" target="_blank">
{thumb file=$product.image_path_T width=$config.Dynamic_Images.di_product_image_width alt=$product.product|escape class=NoBorder id="mainphoto"}
</a>
replace line 86:
Code:
<a href="{thumb file=$v.image_url width=$config.Dynamic_Images.di_detail_popup_width linkonly="Y"}" title="{$product.product}" rel="{$rel}" class="NoBorder">
{thumb file=$v.image_url width=$config.Dynamic_Images.di_detail_thumb_width alt=$product.product|escape class=Thumbnail}
with:
Code:
<a href="{$v.image_url}" title="{$v.productcode}" rel="{$rel}" class="NoBorder" target="_blank">
{thumb file=$v.image_path_W width=$config.Dynamic_Images.di_detail_thumb_width alt=$v.productcode|escape class=Thumbnail}
replace line 113:
Code:
<a href="{thumb file=$images[image].image_path width=$config.Dynamic_Images.di_detail_popup_width linkonly="Y"}" title="{$images[image].alt}" rel="{$rel}" class="NoBorder">
with:
Code:
<a rel="{$rel}" href="{$images[image].image_path}" target="_blank">
/skin1/modules/Dynamic_Images/product_thumbnail.tpl
This isn't necessary, but we wanted to use the longside parameter in the new function. You can pass any parameters in that are defined in thumb_imp.
replace line 20:
Code:
{thumb file=$tmbn_url width=$image_x special=$special load=$load email=$email class=$class alt=$alt id=$id name=$name}
with:
Code:
{thumb file=$tmbn_url longside=$image_x width=$image_x special=$special load=$load email=$email class=$class alt=$alt id=$id name=$name}
/skin1/customer/main/cart.tpl
replace line 27:
Code:
{include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]}
with:
Code:
{include file="product_thumbnail.tpl" productid=$imageid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].image_path type=$products[product].is_pimage}
There may be information missing here; let us know and we'll update this post.