Re: Easy dynamic thumbnail generation
Thanks, I have installed GD...
But I can't make {thumb} to work.
Smarty keeps reporting error:
[20-Apr-2007 19:48:49] Error: Smarty error: thumb: image file does not exist in /var/www/html/Smarty-2.6.12/Smarty.class.php on line 1095
It seems that something is wrong with image PATH.... i have tried everything, but it does not work!
{thumb file="images/P/t_16131.jpg" width="850" link="false" hint="false"}
I have tried many instances, full http path, with leading /, but nothing! Still same error
My product.thumbnail
{strip}
{* Strip out http prefix from Full 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=""}
{/if}
{if !$sharpen}
{assign var="sharpen" value="true"}
{/if}
{if !overlay_position}
{assign var="overlay_position" value="9"}
{/if}
{if $config.Appearance.show_thumbnails eq "Y"}
{if $tmbn_url}
{thumb file="images/P/t_16131.jpg" width="850" link="false" hint="false"} {*overlay_position="$overlay_position" overlay="$overlay" sharpen="$sharpen" html="class=\"$class\" alt=\"$product|escape\""} *}
{$tfile|replace:" ":""}
{*$product.tmbn_url*}
{else}
<img {if $id}id="{$id}" {/if}src="
{if $full_url}
{$http_location}
{else}
{$xcart_web_dir}
{/if}
/image.php?productid={$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}" border="0"
{if $align} align="{$align}"{/if}{if $class} class="{$class}"{/if}>
{/if}
{/if}
{/strip}
__________________
X-cart version 4.1.7
Apache/2.0.52 (CentOS)
My SQL 5.0.58
PHP Version 5.1.6
|