heikobear Posted March 11, 2014 Share Posted March 11, 2014 Sorry for my ingnorance, but my programmer told me that all galleries add-on are only for use in products pages, not as a normal gallery. Is that correct? He said I have to do a Wordpress integration or similar. Thanks, Heiko Quote Link to comment Share on other sites More sharing options...
newburns Posted March 11, 2014 Share Posted March 11, 2014 Somewhat... http://addons.oscommerce.com/info/8965/v,23 There are add-ons that will allow you to have a standard gallery page. KissIT is not an image gallery add-on though. KissIT is an image thumbnailer that dynamically creates thumbnail sizes of your images for faster loading. Quote Link to comment Share on other sites More sharing options...
jbhobro Posted April 8, 2014 Share Posted April 8, 2014 (edited) Hi I have installed this contrib, but i have a problem when i create a new category and upload a category image, the image will not show up in the shop. I only get the 'no image available' on the category: includes/modules/kiss_image_thumbnailer/thumbs/100x80_no_image_available_150_150.gif. It is the same problem if i edit a category then the category image dissapears and show 'no image available'. The category image show fine i admin area and the Picture path looks ok in the database. I hope someone can help me with this problem, as it is driving me crazy. My shop is oscommerce 2.2 under PHP 5.3.3 Best regards John Edited April 8, 2014 by jbhobro Quote Link to comment Share on other sites More sharing options...
jbhobro Posted April 29, 2014 Share Posted April 29, 2014 Anyone please ? Best Regards John Quote Link to comment Share on other sites More sharing options...
Guest Posted April 30, 2014 Share Posted April 30, 2014 Hi Has anyone tried to install this addon in bootstrap2.3.3.4, is there a version of this available for Bootstrap 3 in 2.3.3.4 - Responsive from the Get Go Cheers Grandpa Quote Link to comment Share on other sites More sharing options...
♥Tsimi Posted April 30, 2014 Share Posted April 30, 2014 Hi Grandpa I doubt that there is anyone that has this installed into a 2.3.3.4BS shop. There is a handful of people that downloaded the bootstrap version. But to install add-ons is really not so different then it was with the normal osC 2.3.3.4. The only thing that needs attention is the css part. Quote Link to comment Share on other sites More sharing options...
mrgg Posted May 22, 2014 Share Posted May 22, 2014 hello, When we upload png file, the .png in thumbs folder = 0 B In the log file : PHP Warning: imagepng(): gd-png error: compression level must be 0 through 9 in /includes/modules/kiss_image_thumbnailer/classes/Image.php on line 146 In manuel php : bool imagepng ( resource $image [, string $filename [, int $quality [, int $filters ]]] ) quality : Compression level: from 0 (no compression) to 9. i need did this in /var/www/vhosts/cachette.fr/httpdocs/boutique/includes/functions/html_output.php because the 'thumb_quality' is always at 75 in your function. so for the png work good $filename = $src; $extension = substr($filename, -3, 3); if ($extension == png) {$quality = 9;} else {$quality = 75;}; $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' => $quality, 'thumb_background_rgb' => array( 'red' => 255, 'green' => 255, 'blue' => 255 ) ) ); It is normal you did this ? or there are an reason ? Quote Link to comment Share on other sites More sharing options...
swcharlie Posted July 3, 2014 Share Posted July 3, 2014 (edited) Hi I am getting the following error at times with Oscommerce 2.3.4 (seems to be with png images and sometimes dissapears when refreshing the page): Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in includes/modules/kiss_image_thumbnailer/classes/Image.php on line 269 My html_output.php code is: // New HTML image wrapper function modified for KISS Image Thumbnailer by FWR Media function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { // If width and height are not numeric then we can't do anything with it if ( !is_numeric ( $width ) || !is_numeric ( $height ) ) return tep_image_legacy( $src, $alt, $width, $height, $parameters ); require_once DIR_WS_MODULES . 'kiss_image_thumbnailer/classes/Image_Helper.php'; $attributes = array( 'alt' => $alt, 'width' => $width, 'height' => $height ); $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' => 'images/', 'thumb_quality' => 90, 'thumb_background_rgb' => array( 'red' => 255, 'green' => 255, 'blue' => 255 ) ) ); if ( false === $image_assembled = $image->assemble() ) { return tep_image_legacy( $src, $alt, $width, $height, $parameters ); } return $image_assembled; } // end function I would appreciate if anyone could assist with solving this problem :) Edited July 3, 2014 by swcharlie Quote Link to comment Share on other sites More sharing options...
♥joli1811 Posted July 3, 2014 Share Posted July 3, 2014 Hi There is a png/gif fix for the kiss thumbnailer try the /includes/modules/kiss_image_thumbnailer/classes/image.php try this Image.php Quote To improve is to change; to be perfect is to change often. Link to comment Share on other sites More sharing options...
swcharlie Posted July 5, 2014 Share Posted July 5, 2014 (edited) Thank you for the quick response. Will try it out, and get back here if it does not work :) update: I am now getting: Warning: imagepng() [function.imagepng]: gd-png error: compression level must be 0 through 9 in /includes/modules/kiss_image_thumbnailer/classes/Image.php on line 146 :/ Edited July 5, 2014 by swcharlie Quote Link to comment Share on other sites More sharing options...
♥joli1811 Posted July 5, 2014 Share Posted July 5, 2014 go back a bit in the thread remember to empty your cache and let them rebuild http://www.oscommerce.com/forums/topic/388022-kissit-image-thumnailer/page-3 $quality = !is_numeric ( $quality ) ? 7 : floor ( $quality / 10 ); if ( $quality < 0 ) { $quality = 0; } elseif ( $quality > 9 ) { $quality = 9; } Quote To improve is to change; to be perfect is to change often. Link to comment Share on other sites More sharing options...
swcharlie Posted July 5, 2014 Share Posted July 5, 2014 Just before seeing your reply I seem to have gotten it working with the following: //$quality = is_null ( $quality ) ? 0 : $quality; $quality = is_null ( $quality ) ? 7 : floor ( $quality / 10 ); $filters = is_null ( $filters ) ? null : $filters; return imagepng( $this->_image, $save_in, $quality, $filters ); break; default : But will raher replace it with the above code. Thanks! Quote Link to comment Share on other sites More sharing options...
♥joli1811 Posted July 5, 2014 Share Posted July 5, 2014 Nice that you posted for others to see :thumbsup: Regards Joli Quote To improve is to change; to be perfect is to change often. Link to comment Share on other sites More sharing options...
smiley Posted August 7, 2014 Share Posted August 7, 2014 Seems in the most recent 2.3.4catalog/product_info.php has been modified as per the release notes. Note: "Replace bxGallery and FancyBox with PhotosetGrid and Colorbox." On page 16 of the release notes - e.g. - no $pi_entry :rolleyes: Has anyone made this work please? Quote HTH Neil Common sense is genius dressed in working clothes. Ralph Waldo Emerson Link to comment Share on other sites More sharing options...
Blackhex87 Posted August 10, 2014 Share Posted August 10, 2014 Hello all, First, thanks for this great contribution! I'm also trying to install this on a 2.3.4 store and I've currently only come up with the following fix for the main image: echo tep_image(DIR_WS_IMAGES . $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"'); I changed this code to: echo tep_image(DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'id="piGalImg_' . $pi_counter . '"'); I'm yet to try the other images in the PhotosetGrid... Any ideas to this or how to install it? This first line change did cause me this error: Warning: imagepng() [function.imagepng]: gd-png error: compression level must be 0 through 9 in /home/akvaries/public_html/OsCommerce234/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 146 But I think the fix is in an earlier post =) Best regards / Andy Quote Link to comment Share on other sites More sharing options...
Blackhex87 Posted August 10, 2014 Share Posted August 10, 2014 Hello again =) I fixed my product_info.php with this: Replace: echo tep_image(DIR_WS_IMAGES . $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"'); With this: echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="5" vspace="5" id="piGalImg_' . $pi_counter . '"'); Open: Catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php Replace: case self::IMAGETYPE_PNG : $quality = is_null ( $quality ) ? 0 : $quality; $filters = is_null ( $filters ) ? null : $filters; return imagepng ( $this->_image, $save_in, $quality, $filters ); break; With this: case self::IMAGETYPE_PNG : $quality = is_null ( $quality ) ? 7 : floor ( $quality / 10 ); $filters = is_null ( $filters ) ? null : $filters; return imagepng ( $this->_image, $save_in, $quality, $filters ); break; That did it for me =) Hope this helps! Best regards / Andy Quote Link to comment Share on other sites More sharing options...
Blackhex87 Posted August 10, 2014 Share Posted August 10, 2014 Once again =) Sorry, but there is indeed an error.. The whole product description is wrapped inside an hyperlink reference... not as intended.. Looking for a solution.. Best regards / Andy Quote Link to comment Share on other sites More sharing options...
Blackhex87 Posted August 10, 2014 Share Posted August 10, 2014 Found the solution quickly =) This code: echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="5" vspace="5" id="piGalImg_' . $pi_counter . '"'); Should look like this ( at the end): echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="5" vspace="5" id="piGalImg_' . $pi_counter . '"') . '</a>'; Best regards / Andy Quote Link to comment Share on other sites More sharing options...
FEEL Distribution Posted October 28, 2014 Share Posted October 28, 2014 Anyone know why the modular front page flex slider won't work since adding this contribution? I had it up and working with no problems for over 6 months, and a couple of weeks ago I installed this contribution and since then the slider won't show any banners. I just get a thick white line. Any suggestions will be much appreciated Quote Link to comment Share on other sites More sharing options...
marc53 Posted January 21, 2015 Share Posted January 21, 2015 Hello there Since I upgraded to osc 2.3.4 I have the following problem: double product images showing instead of single Any idea what I am doing wrong? Thank you in advance for help Quote Link to comment Share on other sites More sharing options...
kudos Posted January 31, 2015 Share Posted January 31, 2015 Hi, has one got this to work with 2.3.4 in the product_info.php page? i tryed the above from Blackhex87 but noluck getting thuimbnails i tryed to change, <?php $pi_counter = 0; $pi_html = array(); while ($pi = tep_db_fetch_array($pi_query)) { $pi_counter++; if (tep_not_null($pi['htmlcontent'])) { $pi_html[] = '<div id="piGalDiv_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div>'; } echo tep_image(DIR_WS_IMAGES . $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"'); } ?> changed to <?php $pi_counter = 0; $pi_html = array(); while ($pi = tep_db_fetch_array($pi_query)) { $pi_counter++; if (tep_not_null($pi['htmlcontent'])) { $pi_html[] = '<div id="piGalDiv_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div>'; } echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="5" vspace="5" id="piGalImg_' . $pi_counter . '"') . '</a>'; } ?> this seems to have no effect on the images... does any one have a working product_info.php file with this grade addon? if it helps i can post my full product_info.php file. thanks, rob Quote Link to comment Share on other sites More sharing options...
newburns Posted February 1, 2015 Share Posted February 1, 2015 I have it working for the most part https://github.com/newburns/osCommerce-234-bootstrap-wADDONS I still have to pull the latest Master, but it seems to be fairly stable. Post an issue if you have problems Quote Link to comment Share on other sites More sharing options...
kudos Posted February 1, 2015 Share Posted February 1, 2015 HI there, thanks for the link, i did a show kissit addon files., compared what i have to what is there and all is the same, image_Helper.php Image.php html_output.php part match's also.the addon is working for all imags on the site apart from the product_info.php page. i see you have taken away the javascript section on the product_info.php page when i do this , i end up with a full size image and non click able to view large size. this is my product_info.php file, i compared it to the one on github but could not see any other major changes mentioned for kissit. not sure what im missing here im not grate php coder etc. link to my product_info.php file http://pastebin.com/Z9biBt4U thanks for your time, Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted February 1, 2015 Share Posted February 1, 2015 @@newburns, It seems we did some cross development. I had this already prepared some days ago and needed only to finish documentation: http://www.oscommerce.com/forums/topic/399757-bs-add-on-upload-guidelines/ I uploaded the new version: http://addons.oscommerce.com/info/9206 New features: 1. Optional configuration setting “KissIT Disable image upsize” which will avoid that images wich are smaller than the required thumbnail will be upsampled and show unsharp. White background will be added to reach the thumbnail size and the smaller image will be centered. 2. All main configuration settings are moved to Admin : Configuration : Images. 3. Modified tep_image function in includes/functions/html_output and Image_Helper class has been updated for 2.3.4 Bootstrap. 5. Database install and uninstall file added. 4. Rewritten and improved documentation. For the Colorbox issue in product_info.php, my conclusions are: osCommerce 2.3.4. BS thumbnailing product page images ( Colorbox ) KissIT needs the tep_image function and a defined Image size to act on images and auto create thumbnails. On the main product page (product_info.php) this will not work without additional modifications. Even applying these modifications, the KissIT thumbnailer will create the thumbnail size like configured in Admin : Configuration : Images : KissIT Product Main Image Width and KissIT Product Main Image Height. This thumbnail will be used for all images on the main product page including the Colorbox pop-up. So the max. viewable image size will be limited. The small and medium size thumbs on the main product page will be resized by javascript from this thumbnail size. Conclusion: It’s not as good as older versions, but seems there is no other way with Colorbox. If you are not happy with this because you wish to show always the full original image size in the Colorbox pop-up, do not apply the following modifications. If you are using a hughe amount of big images per product, you should consider then to “downgrade” to “bxgallery” and “fancybox” included until OsC2.3.3.4. 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...
dculley Posted February 1, 2015 Share Posted February 1, 2015 I hate to be a total dummy. But I don't know what bootstrap is or the importants of it. I'm running just osc 2.3.4. Every now and then I see an add on that says for bootstrap only so I just stay away from the add on. I very much would like to try this KissIT but don't know if I would be wasting my time. Could someone help me and tell me what is Bootstrap? Is it needed for me to run under just osc 2.3.4? Thank you Dean Quote 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.