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

TelaFirma - X-Cart Dynamic Image Generator

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #551  
Old 08-22-2008, 10:40 PM
 
membot membot is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 55
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

Quote:
Originally Posted by rtraction
As mentioned in an earlier post, after TelaFirma disappeared, we needed to update their module to work with any domain. This involves downloading the free smarty image function and changing some of Dynamic Images code.

Download thumb_imp:
https://sourceforge.net/project/showfiles.php?group_id=205464

This archive has two files: function.thumb.php and function.thumb_imp.php.
They go in: /include/templater/plugins/
There is an existing function.thumb.php file in this folder. Rename or replace that file. If you open function.thumb_imp.php, you can see the code.

There are a number of new parameters that you may want to take advantage of. We need to update the Dynamic_Images code to work with this module. The main problem is the file parameter.

/include/func/func.product.php

replace line 637:
Code:
$result[$key]["tmbn_url"] = func_get_image_url($value['productid'], 'T', $value['image_path']);

with:
Code:
$result[$key]["tmbn_url"] = $value['image_path'];


/skin1/modules/Dynamic_Images/product_image.tpl

replace line 41:
Code:
<a rel="{$rel}" href="{thumb file=$product.tmbn_url width=$config.Dynamic_Images.di_detail_popup_width linkonly="Y"}" title="{$product.product}" class="NoBorder"> {thumb file=$product.tmbn_url width=$config.Dynamic_Images.di_product_image_width alt=$product.product|escape class=NoBorder id="mainphoto"} </a>

with:
Code:
<a rel="{$rel}" href="{$product.tmbn_url_T}" title="{$product.product}" target="_blank"> {thumb file=$product.image_path_T width=$config.Dynamic_Images.di_product_image_width alt=$product.product|escape class=NoBorder id="mainphoto"} </a>

replace line 86:
Code:
<a href="{thumb file=$v.image_url width=$config.Dynamic_Images.di_detail_popup_width linkonly="Y"}" title="{$product.product}" rel="{$rel}" class="NoBorder"> {thumb file=$v.image_url width=$config.Dynamic_Images.di_detail_thumb_width alt=$product.product|escape class=Thumbnail}

with:
Code:
<a href="{$v.image_url}" title="{$v.productcode}" rel="{$rel}" class="NoBorder" target="_blank"> {thumb file=$v.image_path_W width=$config.Dynamic_Images.di_detail_thumb_width alt=$v.productcode|escape class=Thumbnail}

replace line 113:
Code:
<a href="{thumb file=$images[image].image_path width=$config.Dynamic_Images.di_detail_popup_width linkonly="Y"}" title="{$images[image].alt}" rel="{$rel}" class="NoBorder">

with:
Code:
<a rel="{$rel}" href="{$images[image].image_path}" target="_blank">

/skin1/modules/Dynamic_Images/product_thumbnail.tpl
This isn't necessary, but we wanted to use the longside parameter in the new function. You can pass any parameters in that are defined in thumb_imp.

replace line 20:
Code:
{thumb file=$tmbn_url width=$image_x special=$special load=$load email=$email class=$class alt=$alt id=$id name=$name}

with:
Code:
{thumb file=$tmbn_url longside=$image_x width=$image_x special=$special load=$load email=$email class=$class alt=$alt id=$id name=$name}

/skin1/customer/main/cart.tpl

replace line 27:
Code:
{include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]}

with:
Code:
{include file="product_thumbnail.tpl" productid=$imageid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].image_path type=$products[product].is_pimage}



There may be information missing here; let us know and we'll update this post.

rtraction.

I love that you gave this a go and informed all of us but I cannot seem to get it working. I receive the following error:

Code:
Error: Smarty error: thumb: image file does not exist in /home/bscnz/public_html/Smarty-2.6.12/Smarty.class.php on line 1095

Would really appreciate a response as I'm sure everybody else would Thanks heaps for your help.
__________________
X-Cart Version 4.1.10
www.memedia.com.au
Reply With Quote
  #552  
Old 08-22-2008, 10:56 PM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

Just a note, the free, open-source Dynamic Images module that I recently released (available at PHP Site Solutions, is essentially thumb_imp revamped, as the thumb_imp plugin for Smarty that is available, has several flaws.

Granted, the revamped code may have flaws as well, but regardless, I've moved the code forward, made improvements, and will keep on making improvements.

The Dynamic Images module itself is not a direct replacement of Telafirma's module, but Dynamic Images could easily be extended to support all of Telafirma's functionality.

If anything, I suggest trying out my modified function.thumb.php and function.thumb_imp.php files, as I've improved some issues such as caching (previously, a cached image could be recreated several different times, depending on your usage of the {thumb} plugin functionality), I've added support for http URLs to images, and more.
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #553  
Old 08-24-2008, 03:29 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Lightbulb Re: TelaFirma - X-Cart Dynamic Image Generator

Hello Guys,

In the past Stephen recommended me in a private message to buy his mods. After many emails sent these days and no replies, I am affraid to buy from Telefirma. Too bad, he did a great job.

For sure the owner will not appear in the next months. Some people ordered and paid without getting anything. This is outrageous. Also the technical support is missing.

Those who ordered and get it, but they are not satisfied by the support should offer FOR FREE all the mods they bought. In this way people like me who want to buy and cannot do that, will have the chance to use them and continue developing a better support for them. I know it sounds strange, but life goes on!

Cheers
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #554  
Old 08-24-2008, 03:40 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

One more thing:

We are talking about ethic, business and money. If Stephen was a professional he could let a message or a banner in this forum and inside his website to inform us about his missing.

Here is a template:

"Hey, stupids do not send me emails or call me. I have problems, I will let you know as soon as I can. Don't worry I will be back. For those who are trying placing orders I disabled for a while this facility. You will get a 10% discount for this inconvenience."
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #555  
Old 08-24-2008, 06:53 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

While I can understand your reasoning for everyone to share out what they purchased from Stephen, that would quite actually probably end up in a bunch of lawsuits. Additionally, his mods are code-obfuscated and locked to the purchasers domain. Please don't suggest anything like that again.

Cheers
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #556  
Old 08-24-2008, 07:53 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

@intel352 - You are right. Like many others I would like to know what happened with Stephen. I also want buying asap his mods. I am feel frustrated by this situation.

Does anyone know if there are alternatives to his mods? If there are where shall I found for buying or downloading?

X-Cart Dynamic Image Generator 4.1
X-Cart Manufacturer Pack 4.1
X-Cart Static Pages Content Categories 4.1
X-Cart Upsell In Cart 4.1
X-Cart Advanced Reviews 4.X

Cheers
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #557  
Old 08-24-2008, 09:23 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

I used the tele-firma image mod in the past, but when 4.1.x came out, and I found the mod was incompatible (besides totally "kluging" the templates pretty much everywhere) I decided to steer clear of this type of mod in the future. From now on it is either x-cart add-ons, open source mods, or ones that don't have any encrypted components.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #558  
Old 08-24-2008, 01:26 PM
  tarty00's Avatar 
tarty00 tarty00 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 46
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

Quote:
Originally Posted by intel352
While I can understand your reasoning for everyone to share out what they purchased from Stephen, that would quite actually probably end up in a bunch of lawsuits. Additionally, his mods are code-obfuscated and locked to the purchasers domain. Please don't suggest anything like that again.

Cheers

I agree totally with Jon and this is why I can't get mine to work since I changed my domain too. He has it so locked up and encrypted to the one domain so if you were to try and give them out for free, they just wouldn't work
__________________
..::t a r a::..
____________________

La-Di-Da Studios

Version 4.1.11 Gold
Reply With Quote
  #559  
Old 08-24-2008, 10:46 PM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

Staying on the creator's part, encrypting the code is the best way to protect his business. The creator thinks a guy will spread the code to many others, maybe he is right, but in my case I can pay 100 USD to a person who did a great job. And like me there are many other who appreciate that someone solve our issues and we can go further.

Staying on the buyer's part it is the worst thing. What if the creator left without providing any support? There are a lot scenarios. Not the money is the problem, solving the problem in time it is!

If I will buy mods or anything else, I will ask if I have access to the code. If not I will not buy it.
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #560  
Old 08-28-2008, 09:55 PM
 
pcparts pcparts is offline
 

Advanced Member
  
Join Date: Jul 2006
Location: Aussie
Posts: 85
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

Just received our file from Stephen today with some nice additions for our other site.

So he is still around.

Edit*You should also know it took 2 weeks to get it and his support might still be the same.*

Thanks Stephen
__________________
Greg
X-CART Gold 4.1.10
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 05:05 PM.

   

 
X-Cart forums © 2001-2020