Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

TelaFirma Dynamic Image Mod + Thickbox 2.2

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 02-18-2007, 04:55 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Exclamation 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
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #2  
Old 02-18-2007, 05:04 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-26-2007, 11:12 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default 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.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #4  
Old 04-30-2007, 08:16 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default 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.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #5  
Old 04-30-2007, 10:50 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 04-30-2007, 11:13 AM
 
dfawdon dfawdon is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: UK
Posts: 82
 

Default 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.
__________________
X-Cart Gold 4.0.17
X-AOM
Safetynet DSEFU
Easy Checkout
_________________
Reply With Quote
  #7  
Old 04-30-2007, 11:16 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: TelaFirma Dynamic Image Mod + Thickbox 2.2

Whatever works!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 05-01-2007, 05:07 PM
 
soleag soleag is offline
 

Member
  
Join Date: Mar 2004
Posts: 16
 

Default Re: TelaFirma Dynamic Image Mod + Thickbox 2.2

Where is TF? I've paid for an install and he's AWOL. Is he alright?
__________________
X-Cart 4.0.9: Development Mode
Reply With Quote
  #9  
Old 05-13-2007, 01:22 AM
 
sho ryu ken sho ryu ken is offline
 

Senior Member
  
Join Date: Nov 2005
Location: England
Posts: 150
 

Default 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
Reply With Quote
  #10  
Old 05-18-2007, 06:39 AM
 
dfawdon dfawdon is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: UK
Posts: 82
 

Default 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 ?
__________________
X-Cart Gold 4.0.17
X-AOM
Safetynet DSEFU
Easy Checkout
_________________
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020