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)

NightFire 02-18-2007 04:55 AM

TelaFirma Dynamic Image Mod + Thickbox 2.2
 
First of all these 2 mods are really must haves.

I know a lot of people are using these two mods, but we still have the problem to combine these 2 mods perfectly with each other.
The problem is that the detailed image loads the uploaded full sized image instead of the TelaFirma's cached thumbnail.
It would be perfect if it would load the detailed cached files, instead of resizing the thumbnail with the thickbox files (blurry images).

Thanks to Ranger82nd for making the wonderful start.

Here are part of the files and codes which needs to be edited:

skin1/customer/main/product.tpl

First part: Original x-cart code
Second part: Uncommented TelaFirma's code
Third part: Adjusted Thickbox code

Code:

{*{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"}*}

{* New Dynamic Image Mod - TelaFirma *}
{if $product.tmbn_url}
{math equation="(z/(y/x))+65" y=$product.image_x x=$config.Appearance.popup_image_width z=$product.image_y assign="p_y" format="%.d"}
<a href="javascript:void(0);" onClick="window.open('{$xcart_web_dir}/thumb_popup.php?productid={$product.productid}','mywindow','width={$config.Appearance.popup_image_width},height={$p_y}')">
{/if}
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.product_image_width product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" class="NoBorder" alt=$product.product|escape}{if $product.tmbn_url}</a>{/if}
{if $images[0].imageid ne""}
<br>
{include file="modules/Detailed_Product_Images/product_images_detail.tpl"}
{/if}
{* /New Dynamic Image Mod - TelaFirma *}

{* Begin Thickbox *}
{*{if $product.tmbn_url}
<a href="{$product.tmbn_url}" title="{$product.product|escape}" class="thickbox" rel="[detailed]">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.product_image_width product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" alt=$product.product|escape}
{if $product.tmbn_url}<div align="center" class="SmallText">+ Click to Enlarge</div></a>{/if}
{/if}
<br>
{if $images[0].imageid ne""}
{include file="thickbox/thickbox_productpage.tpl" }
{/if}*}
{* /End Thickbox *}



skin1/thickbox/thickbox_productpage.tpl
(adjusted to TelaFirma's mod)

Code:

{if $images ne ""}
<div style="white-space:nowrap;color:#D90000;font-weight:bold;padding:2px;margin:10px 0 4px;">{$lng.lbl_detailed_images} <img src="{$SkinDir}/thickbox/files/zoom.gif" style="border:0;" alt="{$lng.lbl_enlarge|escape}" /></div>
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
<a href="{$images[image].tmbn_url}" title="{$images[image].alt|escape}" class="thickbox" rel="[detailed]">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.dthumb_image_width product=$product.product tmbn_url=$images[image].tmbn_url alt=$images[image].alt|escape}</a>
{/if}
{/if}
{/section}
{/if}


skin1/modules/Detailed_Product_Images/
(original TelaFirma's detailed image code)

Code:

{strip}

{* Repeat Thumbnail as first detail image Thumb *}
{math equation="(z/(y/x))+65" y=$product.image_x x=$config.Appearance.popup_image_width z=$product.image_y assign="p_y" format="%.d"}
<a href="javascript:void(0);" onClick="window.open('{$xcart_web_dir}/thumb_popup.php?productid={$product.productid}','mywindow','width={$config.Appearance.popup_image_width},height={$p_y}')">
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.dthumb_image_width product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" hint="true" class="Thumbnail" alt=$product.product|escape}</a>&nbsp;&nbsp;
{* Repeat Thumbnail End *}

{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}

{math equation="(z/(y/x))+65" y=$images[image].image_x x=$config.Appearance.popup_image_width z=$images[image].image_y assign="p_y" format="%.d"}

<a href="javascript:void(0)" onclick="window.open('{$xcart_web_dir}/product_images_popup.php?id={$images[image].imageid}','mywindow','width={$config.Appearance.popup_image_width},height={$p_y}')">
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.dthumb_image_width product=$product.product tmbn_url=$images[image].tmbn_url class="Thumbnail" alt=$images[image].alt|escape}
</a>{if !$smarty.section.image.last}&nbsp;&nbsp;{/if}

{/if}
{/if}
{/section}
{/strip}


Official Thickbox Package by 7Dana:
http://www.7dana.com/106.84.0.0.1.0.phtml

The changes needs to be made in the code of the thickbox files. Unfortunately with my limited code knowledge I can't figure it out.
Some help is really appreciated.
Thanks

balinor 02-18-2007 05:04 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
I agree that the two of these together would be fantastic. I wonder what happened to Stephen (TelaFirma)? In any event, perhaps some kind soul who is more familiar with Thickbox can lend a hand to make these two work seamlessly.

NightFire 02-26-2007 11:12 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Till now no reply from anyone :s.
Can't even contact TelaFirma about this. Seems to be getting to an dead end.

The problem is that you cannot set any heights or width attributes, which is needed to load the cached images of TelaFirma's mod. I'm quite far with this. The only thing what has to be done is replace the <a href code of the thickbox with the TelaFirma's code to get it working.

Code for popup of the lightbox:
Code:

<a href="{$product.tmbn_url}" title="{$product.product|escape}" class="thickbox" rel="[detailed]">

Code for TelaFirma's popup:
Code:

<a href="javascript:void(0)" onclick="window.open('{$xcart_web_dir}/product_images_popup.php?id={$images[image].imageid}','mywindow','width={$config.Appearance.popup_image_width},height={$p_y}')">

Hope someone could take a look at this.

NightFire 04-30-2007 08:16 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Hi Guys,

I've contact X-Cart regarding this issue. But unfortunately they cannot really help. They say they need to investigate the whole script, decrypt it, and after they are done encrypt it again.
They will charge 200 support points for this :|
With the follow up, I provided the information in my posts above, and they said if they don't need to decrypt the files they will charge ONLY 80 support points.

Still in my opinion this is way to much for a fix which might be quite simple.
Does anybody already came up with a solution. TeleFirma doesn't seems to respond anymore.

balinor 04-30-2007 10:50 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
I too would love the two of these to work together. Unfortunately, without the decrypted code we can't do much, and yea, we never hear from Stephen anymore :(

dfawdon 04-30-2007 11:13 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
The Telafirma mod is almost identical to the one in http://forum.x-cart.com/showthread.php?t=27911
If someone could get these working together then we will not need the Telafirma code.

balinor 04-30-2007 11:16 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Whatever works! :)

soleag 05-01-2007 05:07 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Where is TF? I've paid for an install and he's AWOL. Is he alright?

sho ryu ken 05-13-2007 01:22 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
don't suppose anyone has done this yet?

I use cerdmann on one site and telefirma on others so either solution would be good

dfawdon 05-18-2007 06:39 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Qualiteam have looked into the integration of the cerdmann plugin and Thickbox, which will open a watermarked cached image in the Thickbox viewer. The cost of the mod will be $145, anyone care to share the cost ?


All times are GMT -8. The time now is 05:44 AM.

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