Guest Posted August 26, 2012 Share Posted August 26, 2012 Hi Robert, I installed KissIT Image Thumbnailer and it works great, but i have one issue. We also have MailBeez and after installing KissIT ,MailBeez stopped working ? after hrs of bug-fixing Cord from MailBeez found out, that your tep_image() function is causing issues. Our current guess is that by extending the ArrayObject: Image_Helper extends ArrayObject { } the code interfers with the MailBeez system. Do you know a way to solve this problem so that I can run both modules ? Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 26, 2012 Author Share Posted August 26, 2012 There is no reason for any conflict .. unless Mailbeez have been daft enough to use the class name of one of the SPL classes. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2012 Share Posted August 26, 2012 (edited) This code is the reason why Mailbeez doesn't work. $image = mh_image($img_folder . $products_array['products_image'], $products_array['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="10" vspace="0" align="left" border="0"'); I tryed to changed it to $image = mh_image($img_folder . $products_array['products_image'], $products_array['products_name'], KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="10" vspace="0" align="left" border="0"'); But didn't work. Any idea's ? Edited August 26, 2012 by Ps4Life Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 26, 2012 Author Share Posted August 26, 2012 (edited) @@Ps4Life That code uses a function called mh_image, KissIT uses tep_image. Quite simply if tep_image is used and the relative image path exists and height and width are numeric then KissIT will generate an image. You need to look at this mh_image code. Edited August 26, 2012 by FWR Media Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
snights Posted August 27, 2012 Share Posted August 27, 2012 great work as alway FWR! .jpg works great. .png dont work. any fix for that? or is it just me? :) another question. is there any tip on how to hide the thumbnail folder? htaccess rewrite? or maby change it to catalog/thumbnail/ instead? thought for secuirty reason? maby useless idont know. just got a feeling thats no reason showing of subfolders like that. thanks again for a great addon! if everyone would be like you.. what a wonderful world. Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 27, 2012 Author Share Posted August 27, 2012 @@snights PNG works fine my end but i want to do some transparency testing .. could you send me a large image example that "doesn't work" please, Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
snights Posted August 27, 2012 Share Posted August 27, 2012 @@FWR Media I've sent you a PM with image .png. Another "error". saw that my pixel_trans.gif got a thumbnail now and its white not transparency. Maybe same thing or maby its something wrong with the person behind screen. (me :) ) Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 27, 2012 Author Share Posted August 27, 2012 @@snights Well the image you sent worked at my end. I have however done some work on transparencies. Send me your email and I'll send you a new kiss_image_thumbnailer/classes/image.php to try out. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 27, 2012 Author Share Posted August 27, 2012 (edited) If anyone is struggling with transparencies could you please try the attached and post here your findings. If you try this new file be sure to delete all current thumbs in the thumbs directory otherwise you will just see the old versions .. also hard refresh the browser as the old images may be cached. The attached file replaces: - catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php Image.php Edited August 27, 2012 by FWR Media Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
snights Posted August 27, 2012 Share Posted August 27, 2012 That did the trick! Awesome! Quote Link to comment Share on other sites More sharing options...
cramli Posted August 31, 2012 Share Posted August 31, 2012 Nice contribution and working very good. The only question is, where can I change the background color. Thank you and best regards Marc Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 31, 2012 Author Share Posted August 31, 2012 @@cramli The code you put in the includes/functions/html_output.php tep_image() function. Change the RGB colours. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
cramli Posted August 31, 2012 Share Posted August 31, 2012 IYou mean this part of the code: // The HTML image wrapper function function tep_image_legacy($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; Can you show me please a example how to write the backgroun color in this code? Other question: For what is the style.css file in this add on and is is right to put it in: root/include? Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 31, 2012 Author Share Posted August 31, 2012 @@cramli you are uploading the wrong files, the only files that should be uploaded are those in the "uploads" directory. Re: background: When you installed, when you ( hopefully ) followed the instructions you added some code to includes/html_output.php, some of which looked like the following: - $image = new Image_Helper( array( 'src' => $src, 'attributes' => $attributes, 'parameters' => $parameters, 'default_missing_image' => DIR_WS_IMAGES . 'no_image_available_150_150.gif', 'isXhtml' => true, 'thumbs_dir_path' => DIR_WS_MODULES . 'kiss_image_thumbnailer/thumbs/', 'thumb_quality' => 75, 'thumb_background_rgb' => array( 'red' => 255, 'green' => 255, 'blue' => 255 ) ) ); You change the red/green/blue values. After you have done so you need to delete all of the thumbs that have already been generated. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
cramli Posted August 31, 2012 Share Posted August 31, 2012 Ok and where can I delete the generated Thumbs? So that means the style.css file is not needet, right? Quote Link to comment Share on other sites More sharing options...
cramli Posted August 31, 2012 Share Posted August 31, 2012 Rob, I made a mistake and now it works like a charme. The only question is, for what is this style.css file? Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 31, 2012 Author Share Posted August 31, 2012 @@cramli The instructions for the contribution are very clear, please follow them. This thread is here to support the contribution, discuss/solve any problems etc. Your posts are, generally, not related to the support of the contribution but related to the fact that you are new to osCommerce and don't understand the basics, which is of course fine .. but please ask these questions in the general forum and not in this support thread. Why? because people look here to solve any issues they may have with KissIT and they won't be able to find help because it is full of unrelated questions. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 31, 2012 Author Share Posted August 31, 2012 Rob, I made a mistake and now it works like a charme. The only question is, for what is this style.css file? There IS no style.css file in the uploads directory as I've already explained. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
cramli Posted August 31, 2012 Share Posted August 31, 2012 Ok, I will do so. Just one thing: In the whole code file when I click on documentation and then are there the following files: -installation.htm -2_3_1_product_info.htm -includes When I click on includes there is this the style.css and fwrlogo.png files. For what there are? Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 31, 2012 Author Share Posted August 31, 2012 @@cramli Style and images for the documentation you need to read in order to install it correctly. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
cramli Posted August 31, 2012 Share Posted August 31, 2012 the first two are google file to browse. And the style.css file? Quote Link to comment Share on other sites More sharing options...
cramli Posted August 31, 2012 Share Posted August 31, 2012 Why you can not answer to this? In the general forum I could't find a answer. So please answer Thank you and best regards Marc Quote Link to comment Share on other sites More sharing options...
videod Posted October 1, 2012 Share Posted October 1, 2012 (edited) Thanks for a great contribution! Very easy install/setup! I just have one question. The pics on the categories are re-sizing properly, but the pics on my pages are not. I did set the folders to 777 to make sure they could be written. I am running OSC 2.3.3 / PHP 5.3.14. Thanks again, Dave Edited October 1, 2012 by videod Quote Link to comment Share on other sites More sharing options...
videod Posted October 2, 2012 Share Posted October 2, 2012 (edited) Never mind.. I found the second part of the install (duh!). Anyway, do the Manufacturer Info box images pass through the wrapper? Thanks again, Dave Edited October 2, 2012 by videod Quote Link to comment Share on other sites More sharing options...
tgely Posted October 5, 2012 Share Posted October 5, 2012 Hi Roberts! Great work! an attribute value must be a literal unless it contains only name characters…="The Matrix" alt="The Matrix" hspace="5" vspace="5" /></a… I was looking for many times, but this was very simple finaly. when install for bcGallery Find ( about line 118 )... <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), null, null, 'hspace="5" vspace="5"') . '</a>'; ?> would be more valid if change like this to: <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image'], '', 'NONSSL', false) . '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, "hspace='5' vspace='5'") . '</a>'; ?> Just the comas: "hspace='5' vspace='5'". Regards, Gergely Quote osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. 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.