X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   TelaFirma Dynamic Image Mod + Thickbox 2.2 (https://forum.x-cart.com/showthread.php?t=28981)

Jayk 08-04-2007 08:37 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
I think the first time you view a product with the mod it's pretty memory intense as it generates all the cached images. After creating a new product, I've had it time out on the first view as the cached images are being generated and then it's fine after that.

Jason

Vacman 08-04-2007 08:52 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Well what I found out is unless I make my thumbnails the exact or smaller size as defined in "Thumbnail width in the products list:" in General Setting::Appearance, this will happen as well as being over 150 bytes wide... I guess?

Also, at this point I still cannot import my 1500+ products db, so for now I have manually created just one product. So it is not a matter of caching the images. What worries me is that under 4.0.16 I didn't have to do anything. I just upload my images and it automatically resized them for the thumbnail. I hope that this does not mean that I am going to have to go and manually resize all of my thumbnail images....

Jayk 08-04-2007 09:11 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Just a question, are you using the Telafirma mod, or did you get the one from dfawdon that Qualiteam did up?

Jason

Vacman 08-04-2007 09:27 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
On my 4.0.16 system I am using the Telefirma Mod. On the 4.1.8 system I am using the one Qualiteam set up.

OpheliaPayne 08-08-2007 03:48 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Is this code for sale? Can people still chip in? I am more than willing to donate to get the code and how to on the installation of it.

balinor 08-10-2007 03:41 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
TelaFirma is back:

http://forum.x-cart.com/showthread.php?t=33191

Jayk 08-14-2007 09:45 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Quote:

Originally Posted by Jayk
If there's enough interest, maybe we could approach Qualiteam to find out how much it would cost to get this working with variant images in 4.1.x. I know I definitely would like to see this.

Jason


To reply to my own post, I did a bit of a hack to get the variant images working with the mod that dfawdon had Qualiteam produce.

I added an if statement into product_thumbnail.tpl that excluded variant images from the new code. This works great on my setup as the variant images on the product detail pages aren't scaled and thus don't need the sharpening, etc.

Here is my product_thumbnail.tpl in case anyone else is interested.

Code:

{* $Id: product_thumbnail.tpl,v 1.19 2005/11/17 06:55:36 max Exp $ *}
{strip}
{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="NoBorder"}{/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}
       
{if $config.Appearance.show_thumbnails eq "Y"}
        {if $type ne "W"}
                {if $tmbn_url}
                        {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}<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={$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}"{if $align} align="{$align}"{/if}{if $class} class="{$class}"{/if}>
                {/if}
        {else}<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={$productid}{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" />
        {/if}
{/if}{/strip}


Jason


All times are GMT -8. The time now is 03:37 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.