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

HTML Catalog thumbnails using Cerdmanns Smarty plugin

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 02-12-2007, 09:06 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default HTML Catalog thumbnails using Cerdmanns Smarty plugin

I'm asking for help to get this working with my current project. It was a replacement for Telafirma's image mod but he is not available anymore. He managed to get this plugin to work with the html catalog on my last site but I can't see how he did this because his files are encrypted.

In function_thumb.php (Smarty-2.6.3/plugins) I have:

if (empty($params['cache'])) $_CONFIG['cache'] = 'files/cache/';

files/cache/ is the directory that the mod generates the cached thumbnails and it's where the product thumbnails are referenced. If I leave this default path I find that the dynamic cart works fine (and in SSL mode) but the HTML catalogue thumbnail references are looking for files/cache in the catalog directory, which of course does not exist.

Telafirma got this to work but I don't know how, I think he may have made some edits to function_thumb.php. I'm wondering what the best way to get the HTML cart to show the correct path (not relative) to the thumbnail so 'files/cache' becomes /xcart/files/cache'.

Anyone have any ideas?

Thanks

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #2  
Old 02-12-2007, 11:50 AM
 
phpmattk phpmattk is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 44
 

Default Re: HTML Catalog thumbnails using Cerdmanns Smarty plugin

How did he 'encrypt' his code? If it wasn't with ioncube or somthing like that, its probably a simple rot13'd chunk evaled, find in his code where he uses an 'eval' call and change that to 'echo'. voila, unencrypted code. Then maybe you can find what you need to find in there.
__________________
-matt
version 4.1.5
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 02:15 PM.

   

 
X-Cart forums © 2001-2020