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)
-   -   HTML Catalog thumbnails using Cerdmanns Smarty plugin (https://forum.x-cart.com/showthread.php?t=28791)

DanUK 02-12-2007 09:06 AM

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

phpmattk 02-12-2007 11:50 AM

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.


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

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