BlizzardBoy Posted February 1, 2010 Share Posted February 1, 2010 Howdy! I've uploaded a database of over 9000 items onto my site. I only have pictures for about 1000 items. I want these pictures to show, of course, however I do not want the broken image to show for the rest. I have a default "image not available" image to substitute in. Is there a way to redirect a broken image to a default "not available" image? I'm trying to avoid going through the database and singling out the products that do not have images and copying over the image location for the "not available" image. Another question I have is... of those 1000 items I do have pictures for, I have multiple images for these items. How do I go about making it so that I can have four thumbnails to click for a product, instead of the default single? Thank you for your time! Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted February 1, 2010 Share Posted February 1, 2010 Howdy! I've uploaded a database of over 9000 items onto my site. I only have pictures for about 1000 items. I want these pictures to show, of course, however I do not want the broken image to show for the rest. I have a default "image not available" image to substitute in. Is there a way to redirect a broken image to a default "not available" image? I'm trying to avoid going through the database and singling out the products that do not have images and copying over the image location for the "not available" image. Another question I have is... of those 1000 items I do have pictures for, I have multiple images for these items. How do I go about making it so that I can have four thumbnails to click for a product, instead of the default single? Thank you for your time! For the first, you can set a default value in the mysql database for the pic. However, please realize that if you delete an item with that image, then the image will be deleted. Also, it is too late now because it would only be there for when products are added. Now you will have to do a sql statement to add the default image. Or, you can do a 404 redirect with a .jpg|.gif|etc conditional, I think. I would do the sql statement and rewrite the script so that images are not deleted with products. And the second, there is a multiple image add on available in the contributions section. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.