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
  #371  
Old 03-08-2008, 10:59 AM
 
lera4285 lera4285 is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 43
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

Hi,

My pop up (http://www.sexcitinglingerie.com/Mini-Dress-8417-p-17024.html) works in the following browsers:

Firefox
2.0.0.8
N Navigator 9.0.0.6
N Navigator 7.2

My pop up (http://www.sexcitinglingerie.com/Mini-Dress-8417-p-17024.html) DOES NOT work in the following browsers:

Internet Explorer 7.0.5730.13
Opera 9.26
--------------------------

Telafirma's
pop up (http://www.telafirma.com/store/home.php?cat=251)
Works in all of the above browsers.
--------------------------

What could possibly cause this?
Its driving me batty!!

I cannot proceed until I find the problem.

Being that
Telafirma's
works in all browsers it must be something on my end that I am doing wrong....BUT WHAT?

Thanks for any suggestions.
__________________
Learning is a beautiful yellow brick road that never ends.
4.1.9 Unix Windows XP
Florida
www.sexcitinglingerie.com
Reply With Quote
  #372  
Old 03-09-2008, 11:40 AM
 
KoppTech KoppTech is offline
 

Member
  
Join Date: Jan 2007
Posts: 20
 

Question Re: TelaFirma - X-Cart Dynamic Image Generator

I already sent a couple of emails to Stephen with these questions, but then it occurred to me that the answers could potentially benefit others if posted here, or maybe somebody else knows the answer to my questions. Stephen, if you see this before you answer my emails, feel free to answer in only one place!


First:
Quote:
I've been playing around with image size settings in the mod and with uploading different images in different places (only for one product so far). It's working fine, but I noticed that the cache directory is filling up with lots of different copies of the images. When I change the product image or change the size, obviously it needs to generate new cache images for that, but does it not automatically clean-out the old images that are no longer used?


Also (longer, but probably more important to me):
Quote:
Per your earlier instructions, I have modified most of my product listings to only have the "master" image uploaded as the "Product Thumbnail" in X-Cart. I also have one product with a separate detailed image, and another with a different product image. Of these 3 different cases, none are doing quite what I wanted or expected. Allow me to provide a bit more detail for each case:

1. Products for which I have only uploaded a "master" image as X-Cart's Product Thumbnail are mostly behaving properly, except that there is no thumbnail image on the product page. I have noted that I can click on the main image on the product page to bring up the detailed pop-up, but I would prefer that there be a thumbnail as well to make it more obvious that a larger pop-up is available (or at least some text that clarifies that). In the Dynamic Images options, I have selected all of the options for displaying image thumbs below the main product image (e.g. "Display Main Product Image as first Detail Image thumb below the main product image on the product page," etc.). I'm assuming that one of these options should be displaying my thumbnail, but it isn't.

2. The product for which I have a "master" image as X-Cart's Product Thumbnail, plus a separate Detailed Image, correctly shows the 2 image thumbs below the main product image. However, when I click on one to bring up the pop-up, there are 3 images available (where it shows "Previous," "Next," and "1," "2," and "3" below the pop-up image) instead of only 2. Two of them appear to be redundant copies of the main master image, and the third is the additional detailed image.

3. The product for which I have a "master" image as X-Cart's Product Thumbnail, plus another as X-Cart's Product Image, correctly shows the thumbnail image on the category listing page and the product image on the product page. However, there are NO image thumbs below the main image on the product page, and clicking the main image to bring up the pop-up only shows the one image available--no detailed version of the Product Thumbnail image.

Is what I described above the intended behavior for each of these situations? It is certainly not what I desired for any one of them. Have I done something wrong?

Thanks a lot for any help!
__________________
--
X-Cart Version 4.1.8
Reply With Quote
  #373  
Old 03-09-2008, 12:08 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

The mod can not really tell when an image is no longer needed. It generates the filename based on all the parameters passed to it along with the original file specs (size, width, height, name...). If you need to you can delete all the images in the cache directory (except the .htaccess file) and it will just generate them again.


1) You should select to display the product thumb as the first thumbnail (instead of the main product image).
2) One of these will be the popup from the actual product image (1). The reset are the popups for the small thumbnails below the product image (2), (3)...
3) same as number 1 - you should select to display the product thumb as the first thumbnail instead of selecting the main product image
Reply With Quote
  #374  
Old 03-09-2008, 12:43 PM
 
KoppTech KoppTech is offline
 

Member
  
Join Date: Jan 2007
Posts: 20
 

Question Re: TelaFirma - X-Cart Dynamic Image Generator

Thanks for your quick response. See my replies below:

Quote:
Originally Posted by TelaFirma
The mod can not really tell when an image is no longer needed. It generates the filename based on all the parameters passed to it along with the original file specs (size, width, height, name...). If you need to you can delete all the images in the cache directory (except the .htaccess file) and it will just generate them again.

Ok, thanks. Might I suggest adding a "Cache Folder Cleanup" button to the mod? If the filenames are generated based on known parameters like that, it seems like it would be pretty easy to make a utility that runs through all of the image files in the cache directory and deletes those that are no longer in use based on the current image settings. Just a thought.


Quote:
Originally Posted by TelaFirma
1) You should select to display the product thumb as the first thumbnail (instead of the main product image).
2) One of these will be the popup from the actual product image (1). The reset are the popups for the small thumbnails below the product image (2), (3)...
3) same as number 1 - you should select to display the product thumb as the first thumbnail instead of selecting the main product image

I have done as you said above, but (for #1 and #3) it did not solve the problem. I did a little more investigating, and there are never any image thumbs below the main image on the product page unless I also add a Detailed Image in X-Cart. I was hoping not to always have to add a separate Detailed Image in order to get the image thumbs....

For #2, I unerstand what you said, but I really wish it wasn't the case. Unless I'm misunderstanding something, that means that there will always be a redundant pop-up image if the image thumbs are displayed. Shouldn't the mod be able to tell that the main product image wants to display the same pop-up as one of the thumbs and link them both to a single pop-up image, getting rid of the redundancy in the pop-ups?

Thanks,

Corey
__________________
--
X-Cart Version 4.1.8
Reply With Quote
  #375  
Old 03-09-2008, 12:56 PM
 
lera4285 lera4285 is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 43
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

Quote:
Originally Posted by KoppTech
Thanks for your quick response. See my replies below:


Ok, thanks. Might I suggest adding a "Cache Folder Cleanup" button to the mod? If the filenames are generated based on known parameters like that, it seems like it would be pretty easy to make a utility that runs through all of the image files in the cache directory and deletes those that are no longer in use based on the current image settings. Just a thought.



I have done as you said above, but (for #1 and #3) it did not solve the problem. I did a little more investigating, and there are never any image thumbs below the main image on the product page unless I also add a Detailed Image in X-Cart. I was hoping not to always have to add a separate Detailed Image in order to get the image thumbs....

For #2, I unerstand what you said, but I really wish it wasn't the case. Unless I'm misunderstanding something, that means that there will always be a redundant pop-up image if the image thumbs are displayed. Shouldn't the mod be able to tell that the main product image wants to display the same pop-up as one of the thumbs and link them both to a single pop-up image, getting rid of the redundancy in the pop-ups?

Thanks,

Corey
I also do not get thumb under product image unless I add a detail image. I am almost sure that I must be missing some code.

By the way , thanks for answering my email Stephen.
__________________
Learning is a beautiful yellow brick road that never ends.
4.1.9 Unix Windows XP
Florida
www.sexcitinglingerie.com
Reply With Quote
  #376  
Old 03-10-2008, 04:32 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

Quote:
Ok, thanks. Might I suggest adding a "Cache Folder Cleanup" button to the mod? If the filenames are generated based on known parameters like that, it seems like it would be pretty easy to make a utility that runs through all of the image files in the cache directory and deletes those that are no longer in use based on the current image settings. Just a thought.

This is something that I have thought about but it is not as easy as outlined above. Since this is done as a Smarty Plugin, most of the parameters that are used are fed to it at the time the template is called. It would be a very complicated routine to go through all the templates, look for all calls to the plugin, log all the parameters that were passed, add those to the config parameters and come up with a list of MD5 hashes and then compare them against the actual files, deleting those that are lot listed.

I would need to write a routine that deleted all .jpg, .gif and .png files. This - of course would force the mod to have to regenerate all the images again, plus this is something that can easily be done via FTP.

Quote:
I have done as you said above, but (for #1 and #3) it did not solve the problem. I did a little more investigating, and there are never any image thumbs below the main image on the product page unless I also add a Detailed Image in X-Cart. I was hoping not to always have to add a separate Detailed Image in order to get the image thumbs....

For #2, I understand what you said, but I really wish it wasn't the case. Unless I'm misunderstanding something, that means that there will always be a redundant pop-up image if the image thumbs are displayed. Shouldn't the mod be able to tell that the main product image wants to display the same pop-up as one of the thumbs and link them both to a single pop-up image, getting rid of the redundancy in the pop-ups?

Lets back up a little on what is going on. If you only have one product image, this should be loaded ad the product thumbnail (not the product image). If you ALSO want the small thumbnail of this displayed below the main product image on the actual product page, you will need to check the option to "Display Main Product Thumbnail as first Detail Image thumb below the main product image on the product page".

There are three settings that are very important:
  • Display Detail Image thumbs below the main product image on the product page
  • Display Main Product Image as first Detail Image thumb below the main product image on the product page
  • Display Main Product Thumbnail as first Detail Image thumb below the main product image on the product page

The first setting tells the mod whether to display thumbnails (below the main product image) of the Detail Images that are uploaded for the product.
The next setting tells the mod whether to display a thumbnail of the Main Product Image (as defined by X-Cart) before it displays the thumbnails of the Detail Images (if they exist).
The other setting tells the mod whether to display a thumbnail of the Product Thumbnail (as defined by X-Cart) before it displays thumbnails of the Detail Images (if they exist).

In addition as we have talked about before, if you only have ONE image, it should be loaded as the Product Thumbnail (as defined by X-Cart). If you want this image to also be displayed as a thumbnail below the main product image on the product page, then check the third option listed above (Display Main Product Thumbnail as first Detail Image thumb below the main product image on the product page).

Keep in mind - this goes right back to the other question about why there are two popup images that are identical. If you choose to display the Product Thumbnail again below the product image on the product page - you are duplicating images and you will have two popups that are the same. There is no way around this since they are the same image.
Reply With Quote
  #377  
Old 03-10-2008, 07:31 PM
 
KoppTech KoppTech is offline
 

Member
  
Join Date: Jan 2007
Posts: 20
 

Question Re: TelaFirma - X-Cart Dynamic Image Generator

Quote:
Originally Posted by TelaFirma
This is something that I have thought about but it is not as easy as outlined above. Since this is done as a Smarty Plugin, most of the parameters that are used are fed to it at the time the template is called. It would be a very complicated routine to go through all the templates, look for all calls to the plugin, log all the parameters that were passed, add those to the config parameters and come up with a list of MD5 hashes and then compare them against the actual files, deleting those that are lot listed.

Hmmm...that's about what I figured you would have to do, I guess I just didn't see it as being all that complicated, especially since there are only certain templates (which you know ahead of time, unless somebody has hacked the mod into other places) that actually make calls to the plugin and only a few different config parameters that impact the generated images. Admittedly, I don't know the guts of the code and may be overlooking something that complicates matters. Not a big deal, though, just a thought.


Quote:
Originally Posted by TelaFirma
I would need to write a routine that deleted all .jpg, .gif and .png files. This - of course would force the mod to have to regenerate all the images again, plus this is something that can easily be done via FTP.
Yeah, I definitely wouldn't want that. A routine that lists which ones are not used would be useful, but not so much a routine that just deletes all images.



Quote:
Originally Posted by TelaFirma
Lets back up a little on what is going on. If you only have one product image, this should be loaded ad the product thumbnail (not the product image). If you ALSO want the small thumbnail of this displayed below the main product image on the actual product page, you will need to check the option to "Display Main Product Thumbnail as first Detail Image thumb below the main product image on the product page".

Right--you told me this before, and that's exactly what I did, but I still do not get image thumbs below the product image unless there is also a Detailed Image specified for that product.



Quote:
Originally Posted by TelaFirma
In addition as we have talked about before, if you only have ONE image, it should be loaded as the Product Thumbnail (as defined by X-Cart). If you want this image to also be displayed as a thumbnail below the main product image on the product page, then check the third option listed above (Display Main Product Thumbnail as first Detail Image thumb below the main product image on the product page).

Again, that's exactly what I did.

Quote:
Originally Posted by TelaFirma
Keep in mind - this goes right back to the other question about why there are two popup images that are identical. If you choose to display the Product Thumbnail again below the product image on the product page - you are duplicating images and you will have two popups that are the same. There is no way around this since they are the same image.

I understand that, but why can't the code easily figure out that these are the same image and only use one of them in the pop-up image list? If, for some reason that I am not grasping, the code can't figure that out to get rid of the redundancy in the pop-up dialog, I would prefer to never have a pop-up from the product image, but only from the thumbnail...and, of course (as discussed previously), I wish the thumbnail would always display, even in the absence of a Detailed Image being defined in X-Cart.

Thanks for your time! I hope that was clear, but let me know if you don't understand what I'm saying here.
__________________
--
X-Cart Version 4.1.8
Reply With Quote
  #378  
Old 03-11-2008, 07:10 AM
 
Amy Amy is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 147
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

I already have this installed but wanted to see if it works with:

1. Zoomify
2. Dynamic Preview Mod

THANKS in advance.
__________________
X-Cart Pro 4.0.19; Unix

Other:
XAOM
XOffers
XGift Reg

Other Mods:
Customers Who Also Bought, Download Link Regenerate, Easy Checkout, Newest Products, SEO/CDSEO, Marketing Manager Pro, View Wishlist for Providers (custom by xcart), Email New Releases (a fav!), Telefirma's Dynamic Image Generator, Download Links on Invoice
Reply With Quote
  #379  
Old 03-12-2008, 08:54 PM
 
KoppTech KoppTech is offline
 

Member
  
Join Date: Jan 2007
Posts: 20
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

Stephen seems to be gone for the moment or something...does anybody that has had the mod for a while know if this is the intended behavior of the mod (the thumbs not showing up unless there is also an X-Cart Detailed Image defined)

Thanks.
__________________
--
X-Cart Version 4.1.8
Reply With Quote
  #380  
Old 03-13-2008, 02:37 AM
 
Amy Amy is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 147
 

Default Re: TelaFirma - X-Cart Dynamic Image Generator

I'm not completely sure; but i do know we have this in our store (Telefirma) and many of our postings in our store don't contain detailed images and thumbnails are generated fine We are also running a diff. version of xcart as well so idk if that has anything to do with it so i'm probably not a help but thought I'd post anyhow
__________________
X-Cart Pro 4.0.19; Unix

Other:
XAOM
XOffers
XGift Reg

Other Mods:
Customers Who Also Bought, Download Link Regenerate, Easy Checkout, Newest Products, SEO/CDSEO, Marketing Manager Pro, View Wishlist for Providers (custom by xcart), Email New Releases (a fav!), Telefirma's Dynamic Image Generator, Download Links on Invoice
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:41 AM.

   

 
X-Cart forums © 2001-2020