View Single Post
  #9  
Old 08-25-2008, 06:29 PM
 
gennarof gennarof is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 46
 

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

Quote:
Originally Posted by intel352
Just a note, while the patch file is specifically for 4.1.10, there's no reason it shouldn't work on 4.1.9, just might require manual patching

While I do believe the {thumb} plugin itself is definitely better, keep in mind that Telafirma's mod has quite a bit of additional functionality added in. Dynamic Images has the potential to be better, but is pretty much bare-bones to start with. Just clarifying so you aren't mislead

Cheers!

Most people I spoke with rave about ths mod.. I am trying to install it for my site desertvalleyelectronics.com but running into a couple of problems you may be able to clear up for me.

1) How exactly should I manually patch Product_thumbnail.tpl. code is presently as follows.

{* existing code *}

{* $Id: product_thumbnail.tpl,v 1.19.2.1 2007/07/09 05:00:35 svowl Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y" or ($type ne "T" and $type ne "")}<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={$produc tid}{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} style="margin:5px;" alt="{$product|escape}" />{/if}

{* end existing code *}

I tried the following but then no product images are rendered at all. Just the descriptions.

{ * after manual patch for product_thumbnail.tpl *}

{* $Id: product_thumbnail.tpl,v 1.19.2.1 2007/07/09 05:00:35 svowl Exp $ *}
{* skin1/product_thumbnail.tpl (revision 15) *}
{* skin1/product_thumbnail.tpl (working copy) *}
{* @@ -1,2 1,44 @@*}
{* $Id: product_thumbnail.tpl,v 1.19.2.1 2007/07/09 05:00:35 svowl Exp $*}

{strip}
{* PHP Site Solutions - Dynamic Images *}
{if $active_modules.PHPSS_Dynamic_Images ne ""}
{if $config.Appearance.show_thumbnails eq "Y" or ($type ne "T" and $type ne "")}
{if $main eq "catalog" || $main eq "search" || $main eq "manufacturer_products" || $main eq "download_home"}
{if !$alt}
{assign var=alt value=$product}
{/if}
{/if}
{if $tmbn_url}
{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="thumb"}
{/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}
{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}
{* Capture the image tag and clean out extra whitespaces *}
{capture assign="img_cln"}
<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={$produc tid}{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} />
{/capture}
{$img_cln|strip}
{/if}
{/if}
{else}
{if $config.Appearance.show_thumbnails eq "Y" or ($type ne "T" and $type ne "")}<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={$produc tid}{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" />{/if}
{/if}
{* / PHP Site Solutions - Dynamic Images *}
{/strip}

{ * end of manual patch *}

2) My second question is with regard to the directory /images/cache/
The instructions state " A new directory will have been created, images/cache/, please CHMOD this directory to 777 (it must be writeable to cache your images)"

As this directory was not created that I could see, I just created the directory under images in the root, not skin1 directory and chmod 777 and left it writeable . I just need to know that that is ok.

As I said, after I activate and configure the module from the back end, no product images display at all, just description.

Any feed back will be appreciated.
Thanks to all for previous assist.
__________________
Ver 4.1.9
Reply With Quote