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 ?

Jayk 05-18-2007 03:42 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Quote:

Originally Posted by dfawdon
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 ?


I'd be willing to chip in, but I'd need 4.1.x code as I'm on 4.1.7.

Jason

sho ryu ken 05-19-2007 12:02 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
yeah, i'd chip in , PM me

balinor 05-19-2007 03:46 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
I'll chip in as well. Let me know what you need and when.

carpeperdiem 05-19-2007 03:54 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
I'd also contribute. Count me in. (4.1.x version)

dfawdon 05-19-2007 04:05 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
OK, I have paid QT for the custom work and will PM everyone once the work is done with a link to see the mod in action, we can then sort it all out between us.

Timescales from QT: We can start working on the modifications in 10-12 working days, the modifications will take about 5-7 working days.

balinor 05-19-2007 04:08 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Excellent. Be sure you get a changelog report from them, as often their custom development services don't give you a report of what was changed unless you ask :)

dfawdon 05-19-2007 04:52 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Quote:

Originally Posted by balinor
Excellent. Be sure you get a changelog report from them, as often their custom development services don't give you a report of what was changed unless you ask :)


Thanks Padraic, I have made the request.

PP 05-21-2007 03:34 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
How does one chip in? I'd also be interested in this for 4.1x

NightFire 05-21-2007 03:43 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Chip me in also. I'd be interested in 4.0.x + 4.1.x.
Let me know the details.

ranger82nd 05-21-2007 04:03 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
I'd like to be in also?

weminuche 05-22-2007 03:37 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
I'm in too. Just tell me how much and where to send it.

dfawdon 05-22-2007 03:40 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
QT have started working on the mod for 4.0.17 today, I will PM everyone interested when they have completed, should be done by the 31st.

soleag 05-23-2007 08:24 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
I want to chip in also for 4.1.7 mod. Let me know where to send funds.

Jayk 05-23-2007 08:35 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Is there a 4.1.7 version being built as well, or does it need to be done in a separate quote? I've seen some interest here for a 4.1.7 version, but dfawdon mentioned that QT has started working on the mod for 4.0.17. That kind of made me wonder if a 4.1.7 mod is being built as well.

Thanks,
Jason

dfawdon 05-23-2007 11:23 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
The mod has been built for 4.0 and is now completed and working very nicely, detailed images are now loading in thickbox with a cached copy which is dynamically watermarked. 4.1 is quite a bit different the way it stores and loads deatiled images and variants, at present it is not working properly, but is being looked at to see if it can be modified for this branch, QT have only been asked to build for 4.0.

balinor 05-24-2007 02:53 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
I think getting this to work for 4.1 is going to be another project all together

Echo 05-24-2007 03:48 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Yes i like to join this also for x-cart: 4.1.6

balinor 05-24-2007 03:50 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
3.1.6? Wow, that is an old one!

Echo 05-24-2007 03:53 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
i just did edit it into 4.1.6 sorry

balinor 05-24-2007 03:54 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Ahhh...if you could add that to your forum signature that would be great. Thanks!

PP 05-24-2007 04:56 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Anybody want to take the lead on this for 4.1x

I'm don't think I'm far enough along yet to. I'm still adding products, categorys and awaiting custom template changes.

dfawdon 05-24-2007 09:33 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Quote:

Originally Posted by PP
Anybody want to take the lead on this for 4.1x

I'm don't think I'm far enough along yet to. I'm still adding products, categorys and awaiting custom template changes.


I will progress this through for version 4.1.7 with QT to rework the mod they have done for 4.0

dfawdon 05-30-2007 05:10 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
This is all complete now and tested for 4.1.7, those that have asked for this please check your PM's. Thanks.

TA 06-05-2007 07:53 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
I am interested in pitching in for the 4.0 version. I am running Thickbox 2.1. Will this work with that version?

balinor 06-05-2007 08:14 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Send a PM to dfawdon.

hoosierglass 06-05-2007 08:55 AM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Does anyone have a link so I can see what this looks like. If it is something I could use, I would have no problem pitching in.

Jayk 06-05-2007 12:54 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Quote:

Originally Posted by hoosierglass
Does anyone have a link so I can see what this looks like. If it is something I could use, I would have no problem pitching in.


I'm running it on my site. http://www.jbox.ca

Cheers,
Jason

Warwick 06-08-2007 01:21 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Quote:

Originally Posted by dfawdon
This is all complete now and tested for 4.1.7, those that have asked for this please check your PM's. Thanks.


Will this work for 4.1.3 and is there any chance of still pitching in?

balinor 06-08-2007 03:26 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Warwick, you were on a blistering pace to eclipse my post count, and then you disappeared...where have you been? :)

Warwick 06-08-2007 11:59 PM

Re: TelaFirma Dynamic Image Mod + Thickbox 2.2
 
Quote:

Originally Posted by balinor
Warwick, you were on a blistering pace to eclipse my post count, and then you disappeared...where have you been? :)


I realized it is impossible to get near your post count balinor and had to rethink my strategy :lol:

Seriously: I've been busy with several things but was still around (in the background though).

But I must say it's really sweet to find out you missed me :)


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

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