Icebird Posted March 20, 2018 Share Posted March 20, 2018 8 hours ago, raiwa said: try this: <?php echo tep_image('images/' . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0)? preg_replace('%<img width="[0-9 ]+" height="[0-9 ]+" src="(.*)title=.+%', 'data-highres="$1', tep_image('images/' . $product_info['products_image'], null, $width, $height, $product_info['products_id'])) : 'data-highres="'. 'images/' . $product_info['products_image'] . '"' . $product_info['products_id'])); ?> Many thanks, Rainer. forgot that i also must pass the $product_info['products_quantity'] aswell. i tried this but its not passing the value: echo tep_image('images/' . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0)? preg_replace('%<img width="[0-9 ]+" height="[0-9 ]+" src="(.*)title=.+%', 'data-highres="$1', tep_image('images/' . $product_info['products_image'], null, $width, $height, $product_info['products_id'], $product_info['products_quantity'])) : 'data-highres="'. 'images/' . $product_info['products_image'] . '"' . $product_info['products_id'] . $product_info['products_quantity'])); It doesnt seem to pass the product image height or width correctly either. You can check it here when you go to the products page: https://www.naturhigia.pt/lojaEDGE/index.php the "sold out" triangle is pure CSS and should adapt to the product image just as it does in the front page. Mind to give me an hand, please? This might be an interesting extra to your module. :) Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted March 20, 2018 Share Posted March 20, 2018 Hello Luis @Icebird, I'm sorry, this kind of customization doesn't seem to be required by other users. You can always leave the KissIt thumbs out for the product page, you have only one product image there as far as I could see. I would need to install your addition on a test store to see how to fix it and this is far beyond what I can offer here in the forum for free. Hope you understand Best regards Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Icebird Posted March 20, 2018 Share Posted March 20, 2018 3 hours ago, raiwa said: @Icebird I would need to install your addition on a test store to see how to fix it and this is far beyond what I can offer here in the forum for free. Yes, i understand. Many thanks for the previous answer. It gave an highlight about the fix. Once again, many thanks Rainer. Quote Link to comment Share on other sites More sharing options...
ArtcoInc Posted March 20, 2018 Share Posted March 20, 2018 @Icebird Your problem has nothing to do with Kissit Image Thumbnailer, but have you looked at either of these: HTH Malcolm Quote Link to comment Share on other sites More sharing options...
Icebird Posted March 20, 2018 Share Posted March 20, 2018 57 minutes ago, ArtcoInc said: @Icebird Your problem has nothing to do with Kissit Image Thumbnailer, but have you looked at either of these: HTH Malcolm Greetings, Thanks for your answer. Yes, i have taken a look at to those 2 add ons. My issue is indeed with KissIT since i added code to the tep_image() modified for KissIT to overlay an css triangle to the detected out of stock products. KissIT is a tremendous great add on and it should be core implemented since it highly decreases the stores loadout wich is crucial nowadays. Adding the out of stock overlay code in the tep_image is a way to accomplish it. burt 1 Quote Link to comment Share on other sites More sharing options...
Owl Sauron Posted March 23, 2018 Share Posted March 23, 2018 On 20/03/2018 at 7:43 AM, raiwa said: try this: <?php echo tep_image('images/' . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0)? preg_replace('%<img width="[0-9 ]+" height="[0-9 ]+" src="(.*)title=.+%', 'data-highres="$1', tep_image('images/' . $product_info['products_image'], null, $width, $height, $product_info['products_id'])) : 'data-highres="'. 'images/' . $product_info['products_image'] . '"' . $product_info['products_id'])); ?> Sorry to be at this again, Rainer, but that "fix" doesnt work. This does pass the data echo tep_image('images/' . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, $product_info['products_id'], $product_info['products_quantity'], ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0)? preg_replace('%<img width="[0-9 ]+" height="[0-9 ]+" src="(.*)title=.+%', 'data-highres="$1', tep_image('images/' . $product_info['products_image'], null, $width, $height)) : 'data-highres="'. 'images/' . $product_info['products_image'] . '"')); ...but then i get the following error bellow the product image at products_info.php: " data-highres="images/thumbs/500_400/thai_cream.jpg" /> " any thoughts? Best regards, Luis Xavier Quote Link to comment Share on other sites More sharing options...
RAC Posted March 26, 2018 Share Posted March 26, 2018 Hello I have a problem with renaming images an I have Kissit installed. I have just installed googlesitemap,xml and was trying to make my images names more google friendly. Stupidly it seems, I changed the image name in my computers file manager and re-uploaded the newly named product image, now I am getting an internal server error when I attempt to save the changed product image. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@retro-antiques-curios.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. I have checked the my shop and admin error logs, but nothing shows up there, is there another error log? How do I rectify this please? Regards Shaun Quote Link to comment Share on other sites More sharing options...
RAC Posted March 26, 2018 Share Posted March 26, 2018 Sorry I am using bs Edge. Quote Link to comment Share on other sites More sharing options...
♥Dan Cole Posted March 26, 2018 Share Posted March 26, 2018 Did you change the image names in your products_image database? Dan Quote Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
RAC Posted March 26, 2018 Share Posted March 26, 2018 Hello @Dan Cole No I didn’t. Do I just change the name in the product_images database using phpmyadmin to the same as the name of the changed file? Is this the best way to change the image filenames? Or am I going to regret changing them? I think I will need to change maybe 100 image names. Kind regards Shaun Quote Link to comment Share on other sites More sharing options...
♥Dan Cole Posted March 26, 2018 Share Posted March 26, 2018 I would have a look at how one of the images is currently set up in the database table...make note of that and then update it in the normal manner using your usual product page within the admin and see how it is handled, what changes are made to your database table and whether that solves your problem when you view it in the store...ie the error you are seeing goes away. If that works you can then edit the names using phpMyAdmin or by doing it one at a time in the usual manner using the product page. What you did sounds like something I might have done. Dan Quote Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
RAC Posted March 27, 2018 Share Posted March 27, 2018 This has turned into a real pickle! I started a new product and used the offending image, again I had an internal server error. From this I take it that the Image has been corrupted. Therefore how can I change the name of the images so that they do not become corrupted? There must be a superbrain out there that can teach us fools. Shaun Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted March 27, 2018 Share Posted March 27, 2018 Hello Shaun @RAC, The superbrain nowadays is called Google. Just search for example for: "allowed web image names" and you'll find for example this page: http://www.mtu.edu/umc/services/digital/writing/characters-avoid/ Another possibility would be to post us the name(s) of your problematic image(s) and maybe a normal brain here could tell you what is wrong with them. Best regards Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
♥Dan Cole Posted March 27, 2018 Share Posted March 27, 2018 Did you happen to back up the images before you changed them? If you did, you should be able to just upload them again. Dan Quote Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
RAC Posted March 30, 2018 Share Posted March 30, 2018 Hello @raiwa As usual, common sense where common sense is needed! I put (') in to the file name, what a plonker. Thank you Rainer. Thanks @Dan Cole for your input, it was much appreciated. Regards Shaun Quote Link to comment Share on other sites More sharing options...
vampirehunter Posted April 24, 2018 Share Posted April 24, 2018 hi i have this kissit thumbnailer added to the default colorbox gallery is there a way to easily add it so it works with the slick gallery? or any other different gallery for that matter? thanks Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted April 24, 2018 Share Posted April 24, 2018 Support for core colorbox and photoset-grid is included. Others you have to research. Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
davinci8 Posted April 28, 2018 Share Posted April 28, 2018 Is there an influence of the /thumbs directory in the creating SEO pages by Google xml sitemaps in Osc Edge? Is it necessary to disallow this folder it in robots.txt? (Or exclude it somehow) Quote Link to comment Share on other sites More sharing options...
davinci8 Posted April 28, 2018 Share Posted April 28, 2018 Of course I meant sitemapimages.xml instead of pages. Quote Link to comment Share on other sites More sharing options...
vampirehunter Posted May 24, 2018 Share Posted May 24, 2018 can anyone advise whenever i upload an image, the product info page is failing to load fully i checked error log and it says this PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12000 bytes) not sure why. i have 3 other sites running exact same code and same php 5.4 on server what could it be? the page loads fine when there are no images uploaded Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted May 24, 2018 Share Posted May 24, 2018 (edited) @vampirehunter, another option is to use smaller images Edited May 24, 2018 by raiwa oscMarket 1 Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Owl Sauron Posted May 24, 2018 Share Posted May 24, 2018 Does the KISSIT needs an update for the CE version? Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted May 24, 2018 Share Posted May 24, 2018 @Owl Sauron, Maybe for the product page (product_info.php). And there is something reported with $HTTP_POST_VARS or $HTTP_GET_VARS still in some modification for the admin side. Not a big problem therefore, it will still work. I'm already working on the updates of all my add-ons. Please be patient. Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Owl Sauron Posted May 24, 2018 Share Posted May 24, 2018 Just now, raiwa said: @Owl Sauron, Maybe for the product page (product_info.php). And there is something reported with $HTTP_POST_VARS or $HTTP_GET_VARS still in some modification for the admin side. Not a big problem therefore, it will still work. I'm already working on the updates of all my add-ons. Please be patient. Excelent! maybe you could include a function for "out of stock" with an overlaying image or css over the products image Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted May 24, 2018 Share Posted May 24, 2018 11 minutes ago, Owl Sauron said: maybe you could include a function for "out of stock" with an overlaying image or css over the products image Sorry, but this is not subject of kiss it image thumbnailer. This should be a separate module. Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.