X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Easy dynamic thumbnail generation (https://forum.x-cart.com/showthread.php?t=22308)

JWait 07-29-2007 08:00 AM

Re: Easy dynamic thumbnail generation
 
I'm running into a problem using this on version 4.1.x. It seems that the folder the images are stored in is fixed at /images/T, /images/D, etc.

When I try to upgrade my sql database from 4.0.19 to 4.1.x my photos get moved from the file system to the database and will not show up until I use the "regenerate cache" feature and move the photos from the database back to the file system. As an added frustration, it appears the photos in the /images/T folder are not overwritten, but appended by adding "-01", "-02" etc, and the appended photo becomes the one xcart looks for. Needless to say, this seems like a tremendous waste of my limited disk storage space.

Any ideas?

Steve-C 08-01-2007 01:28 AM

Re: Easy dynamic thumbnail generation
 
I would love to get this mod working but I have fuddled about with it for a while and get absolutely nothing at all, not even an error message. The site just carries on as normal!

My host says GD support is enabled
I've added the latest Cerdemann plug-in
I have created /image/cache directories everywhere with 777 read/write & none have any images in.
I've tried most of the modules/Detailed_Product_Images/product_images.tpl files that have been posted
I've made sure the code doesn't say [img]

There is no sign of anything happening on the "view source" for the pages.

I'm obviously doing something fundamentally wrong. Could anyone give me a pointer, please?

Thanks
Steve

JWait 08-01-2007 02:05 AM

Re: Easy dynamic thumbnail generation
 
Steve,

The plugin should create a series of photos in the images/cache that is in the same directory as your xcart installation if it is working properly. It will create these the first time a customer looks at the page the photo is on.

It sounds like you have done everything correctly, and it should be working. The only thing I can think of is did you clear the templates_c directory before trying the various tpl files?

Steve-C 08-01-2007 02:24 AM

Re: Easy dynamic thumbnail generation
 
Hi

Yes, I've cleared the templates cache.

The only thing I can see that i haven't done is "Make sure you disable the detailed product images popup"

I'm not sure how / where to do that.

Thanks

JWait 08-01-2007 02:56 AM

Re: Easy dynamic thumbnail generation
 
In admin, click "modules" then look for "Detailed Product Images" and click "Configure' to the right. "Display detailed images in a popup window:" should be unchecked.

When you go to a product page on your customer side what does it show as the path when you right click on the image and choose "properties"?

Steve-C 08-01-2007 03:04 AM

Re: Easy dynamic thumbnail generation
 
Ahh, I was looking for something more complex, like code modding!

It didn't help, though!

when I right click on the image it shows the normal full path to the image file /shop/images/P/xxxxx.jpg

JWait 08-01-2007 03:14 AM

Re: Easy dynamic thumbnail generation
 
And you have a /shop/images/cache/ directory? Is anything in it?

OpheliaPayne 08-03-2007 11:59 AM

Re: Easy dynamic thumbnail generation
 
Editing to remove my post.

I did not realize that this mod does not affect the actual product image, only detailed images.

JWait 08-04-2007 05:44 AM

Re: Easy dynamic thumbnail generation
 
Quote:

Originally Posted by OpheliaPayne
Editing to remove my post.

I did not realize that this mod does not affect the actual product image, only detailed images.


Actually it does affect the product image, dynamic thumbnail generation is just that, it makes thumbnails automatically from full size photos.

It works fine in all areas using the 4.0.x versions of xcart. The problam I am having in the 4.1.x verisons is that I need to disable the methods that xcart is using to save thumbnailed photos and can't figure out where it is doing this.

Steve-C 08-04-2007 07:26 AM

Re: Easy dynamic thumbnail generation
 
Hi JW

Sorry I went missing.

Yes, I have an /images/cache/ at every level including /skin1/.
Each has 777 permissions and has an .htaccess file "allow from all".
Nothing in any of them !


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

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