| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Easy dynamic thumbnail generation | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#71
|
|||||||
|
|||||||
![]() Hi, got a question about this mod. Do the product exports show the path to the original image i.e. the non cached image path? If so, how would you go about getting a list of cached image paths for various exports?
I'm guessing that whatever code is responsible for displaying the image on the product page can be reproduced to do this. Thanks Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#72
|
|||||||||
|
|||||||||
![]() This mod doesn't make any changes to the exports. The paths of the created thumbnails are not stored in the database, so will not show up in exports. The file name for the thumbs is a md5 hash of the file name and the various parameters you set.
Theoreticaly you could use the code from the plugin that generates the md5 and modify it to store the thumbnail path in the database so it can be exported. Personaly I'm working on loading the path of the first detailed image into the thubmnail table. Though loading the actual path to the generated thumbnail into that table would be a better solution, it's beyond my current abilities.
__________________
Alltribes.com Native American Jewelry Pottery, Baskets, Kachinas & More X-cart Gold Version 4.0.17 Live PHP 5.2.6 MySQL 4.1.25 (mt) |
|||||||||
#73
|
|||||||
|
|||||||
![]() Hey Alltribes.... i was wondering if i could get your help on this one. i am still struggling to get it to work on 4.X
You can see what i have here: [url] http://www.motonekoparts.com/product.php?productid=16165&cat=67&page=1 the images show up... but no swapping happens I have modified the pluggin it in a couple places so the image would load instead of [img] ...was this neccessary? i didn't read any other posts about modifying the plugin, but i couldn't any images to load otherwise. here is my product_images.tpl Code:
-michelle
__________________
XCART version 4.0.19 |
|||||||
#74
|
|||||||||
|
|||||||||
![]() You've got a couple errors.
You have an extra { on line 18: Code:
You may also want to change that to Code:
After line 20 you removed Code:
That's your problem, right there. Also on line 21 you;re not using the |replace function, yet your thumbs do seem to be loading. Not sure what's up with that. Code:
__________________
Alltribes.com Native American Jewelry Pottery, Baskets, Kachinas & More X-cart Gold Version 4.0.17 Live PHP 5.2.6 MySQL 4.1.25 (mt) |
|||||||||
#75
|
|||||||
|
|||||||
![]() yeah, i can see how it wouldn't be working now! i used the final edit from post #7 ....
"Here is the preloading script for 4.0x, now using imageid instead of orderby" anyways... here is my revised product_images.tpl Code:
i think the problem is here: Code:
when i try and name it as name="main_image" it won't show up thanks for your help! -michelle my version of X-Cart is 4.0.18
__________________
XCART version 4.0.19 |
|||||||
#76
|
|||||||||
|
|||||||||
![]() Hmm, I'm not sure what to tell you. You definately need the name="main_image" as that's the "hook" the java uses to swap out the main image.
Try removing the quotes around {$images[0].....}.
__________________
Alltribes.com Native American Jewelry Pottery, Baskets, Kachinas & More X-cart Gold Version 4.0.17 Live PHP 5.2.6 MySQL 4.1.25 (mt) |
|||||||||
#77
|
|||||||
|
|||||||
![]() well... after some more trial and error i finally get her working!! yay! thanks again for sharing this with everyone! here is my product_images.tpl for 4.0.18 if it can help anyone else....
Code:
__________________
XCART version 4.0.19 |
|||||||
#78
|
|||||||
|
|||||||
![]() i just have one last question for you....
i am using transparent gifs for my thumbs... anyway to preserve that transparency? right now the cached thumbs all have a black background. i tried adding background="transparent" in the HTML, but that didn't work for me. any thoughts? thanks again, michelle
__________________
XCART version 4.0.19 |
|||||||
#79
|
|||||||||
|
|||||||||
![]() Sorry, I can't help you there. I have no experience at all with image manipulation via PHP. You'll have to hire someone to look at the plugin, or contact Christoph Erdmann.
__________________
Alltribes.com Native American Jewelry Pottery, Baskets, Kachinas & More X-cart Gold Version 4.0.17 Live PHP 5.2.6 MySQL 4.1.25 (mt) |
|||||||||
#80
|
|||||||
|
|||||||
![]() ok, i'll try him. many thanks for your help
__________________
XCART version 4.0.19 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|