Jump to content
Latest News: (loading..)
FWR Media

KissIT Image Thumnailer

Recommended Posts

 

hi, thanks for this addon.

I have installed it on 234.1Edge and it is work. However I think the admin site has something wrong with it, somehow the thumbnail directory not saved, and instead created a folder under admin, so it is like catalog/admin/DIR_WS_IMAGESthumbs/ there has no images generated inside. Something wrong I pasted with admin/includes/function/hutml_output.php ?

Thanks! Lyn

 

Share this post


Link to post
Share on other sites
On 7/27/2018 at 4:05 PM, raiwa said:

@ce7, please use the latest version 2.8.1. and update the admin tep_image function to the one included there.

@raiwa

Thank you for the solution!

with KissIT images thumbnail, it is now working perfect in the admin site, I am not sure if i do it right but will it also show at the frontpage categories? It will be great to have thumbnail next to the name, for example /thumbnail   Gadagets/.

 

Thanks!  Lyn

Share this post


Link to post
Share on other sites

Hello lyn @ce7

I'm glad to hear that all is fine.

There is no support to show the categories images in the admin listing. I didn't consider it necessary to identify the categeories.

Nethertheless it is possible to add it and I'll think about for the next update.

Best regards

Rainer

 

 

 

Share this post


Link to post
Share on other sites
On 8/31/2018 at 11:01 PM, raiwa said:

Hello lyn @ce7

I'm glad to hear that all is fine.

There is no support to show the categories images in the admin listing. I didn't consider it necessary to identify the categeories.

Nethertheless it is possible to add it and I'll think about for the next update.

Best regards

Rainer

 

 

 

@raiwa

Thank you again for quick reply.

I am not good at programming at all, yet try hard to self-learning oscommerce from scratch, start from 2.2-2.3.1, and now trying 234.1 Edge (BS). My product_info.php about the image is not the same as the installation instruction.

#1

echo tep_image('images/' . $product_info['products_image'], NULL, NULL, NULL, 'itemprop="image" style="display:none;"');

#2

echo tep_image('images/'. $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"');

#3

echo tep_image('images/'. $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"');

However I found in the modules with this file:  cm_pi_gallery.php
and this is what i change, but it doesn't work, can you please help this out to have it show the thumbnail correctly in the front-end?

#1

$pi_output .= '<div class="piGal" data-imgcount="' . $photoset_layout . KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT . '">';

#2

            list($width, $height) = file_exists('images/'. $pi['image'])? getimagesize('images/'. $pi['image']) : array(150,150);
            $pi_output .= tep_image('images/'. $pi['image'], addslashes($product_info['products_name']) . ' ' . $pi_counter, (($pi_counter > 1 )? round(KISSIT_MAIN_PRODUCT_IMAGE_WIDTH/(($pi_total <= 5)? $pi_total-1 : 5)) : KISSIT_MAIN_PRODUCT_IMAGE_WIDTH), (($pi_counter > 1 )? round(KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT/(($pi_total <= 5)? $pi_total-1 : 5)) : KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT), 'id="piGalImg_' . $pi_counter . '" '. ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0)? preg_replace('%<img width="[0-9 ]+" height="[0-9 ]+" src="(.*)title=.+%', 'data-highres="$1', tep_image('images/'. $pi['image'], null, $width, $height)) : 'data-highres="'. 'images/'. $pi['image'] . '"'));

#3

        else {
         list($width, $height) = file_exists(DIR_WS_IMAGES . $product_info['products_image'])? getimagesize(DIR_WS_IMAGES . $product_info['products_image']) : array(150,150);

Thanks! Lyn

 

Edited by ce7

Share this post


Link to post
Share on other sites
5 minutes ago, raiwa said:

@ce7, please use the latest version 2.8.1. . It includes an already modified gallery module.

@raiwa

Thanks you, that is very quick! I was going to ask extra question....not fast as you respond! 🙂

It's nothing to do with this addon, but i just can not figure out where to change the set up, right now with Edge version, in the index.php, it is always showing 2 rows with 4 columns. And It is ok, however the 2nd row always only show up 2 columns, and the rest of left hand side remain blank. How can I make it show up 4 columns at the 2nd row. And I also have the special module (box) install, however, it only show up 1 product, is it possible to make it as 3rd row with 4 columns (4 products in one row).

And I will try the 2.8.1 now, thanks again! Lyn

Edited by ce7

Share this post


Link to post
Share on other sites
5 minutes ago, ce7 said:

It's nothing to do with this addon, but i just can not figure out where to change the set up, right now with Edge version, in the index.php, it is always showing 2 rows with 4 columns. And It is ok, however the 2nd row always only show up 2 columns, and the rest of left hand side remain blank. How can I make it show up 4 columns at the 2nd row. And I also have the special module (box) install, however, it only show up 1 product, is it possible to make it as 3rd row with 4 columns (4 products in one row).

Please post this question in the apropriate thread, it's off topic here, sorry.

Share this post


Link to post
Share on other sites
43 minutes ago, raiwa said:

Please post this question in the apropriate thread, it's off topic here, sorry.

 

43 minutes ago, raiwa said:

Please post this question in the apropriate thread, it's off topic here, sorry.

@raiwa

Thank you again! Sorry i will make a new thread later on about these image questions. I had installed the new 2.8.1 version, but not sure if it works, as I could not see anything change.

In admin side, with new categoreis, it will show the image thumbnail for the folder, which is really helpful. And I maybe explained it wrong earlier, that I wondering if in the front page, categories infobox, will it possible to have the thumbnail inside that infobox  (image | product categories) . The new one I installed suppose to do this way and somehow i made it wrong so doesn't show up?

 

Thanks! Lyn

Share this post


Link to post
Share on other sites
15 hours ago, ce7 said:

And I maybe explained it wrong earlier, that I wondering if in the front page, categories infobox, will it possible to have the thumbnail inside that infobox  (image | product categories) . The new one I installed suppose to do this way and somehow i made it wrong so doesn't show up?

Sorry, categories thumbs in the categories box on the public store side are not included.

If I well remember @Tsimi included this in his horizontal categories menu.

Share this post


Link to post
Share on other sites

@ce7

Open your ..includes/classes/category_tree.php file

FIND:

          if ( ($this->follow_cpath === true) && in_array($category_id, $this->cpath_array) ) {
            $link_title = $this->cpath_start_string . $category['name'] . $this->cpath_end_string;
          } else {
            $link_title = $category['name'];
          }


REPLACE WITH:        

          if ( ($this->follow_cpath === true) && in_array($category_id, $this->cpath_array) ) {
            $link_title = $this->cpath_start_string . tep_image('images/' . $category['image'], $category['name'], SMALL_IMAGE_WIDTH*0.5, SMALL_IMAGE_HEIGHT*0.5, 'style="display:inline-block;"') . '&nbsp;' . $category['name'] . $this->cpath_end_string;
          } else {
            $link_title = tep_image('images/' . $category['image'], $category['name'], SMALL_IMAGE_WIDTH*0.5, SMALL_IMAGE_HEIGHT*0.5, 'style="display:inline-block;"') . '&nbsp;' . $category['name'];
          }

 

Share this post


Link to post
Share on other sites
18 hours ago, raiwa said:

Sorry, categories thumbs in the categories box on the public store side are not included.

If I well remember @Tsimi included this in his horizontal categories menu.

@raiwa

Thank you.I will install the horizontal categories menu later.... this is really helpful information. Back to the kiss thumbnail for image, i had installed it, however it is now showing two images at the same time, and it change the position from left top cornor to right bottom cornor. do i need to delete the original cm_pi_gallery.php and keep only cm_pi_gallery_kissit.php? which part is the code to change the image location?

Thanks! Lyn

KissIT-Example-02.PNG.6bd80e63839fae17248daf69b6ba403e.PNG

 

 

 

Share this post


Link to post
Share on other sites
15 hours ago, Tsimi said:

@ce7

Open your ..includes/classes/category_tree.php file

FIND:


          if ( ($this->follow_cpath === true) && in_array($category_id, $this->cpath_array) ) {
            $link_title = $this->cpath_start_string . $category['name'] . $this->cpath_end_string;
          } else {
            $link_title = $category['name'];
          }


REPLACE WITH:        


          if ( ($this->follow_cpath === true) && in_array($category_id, $this->cpath_array) ) {
            $link_title = $this->cpath_start_string . tep_image('images/' . $category['image'], $category['name'], SMALL_IMAGE_WIDTH*0.5, SMALL_IMAGE_HEIGHT*0.5, 'style="display:inline-block;"') . '&nbsp;' . $category['name'] . $this->cpath_end_string;
          } else {
            $link_title = tep_image('images/' . $category['image'], $category['name'], SMALL_IMAGE_WIDTH*0.5, SMALL_IMAGE_HEIGHT*0.5, 'style="display:inline-block;"') . '&nbsp;' . $category['name'];
          }

 

@Tsimi

Thank you! 

It works perfectly!

KissIT-Example-03.thumb.PNG.7a3704d637be3877ec8d1ba56a4e332f.PNG

I just wonder if later on i installed what your add horizontal categories menu that Raiwa (Rainer) mentioned, do i need to change this code or just leave it as it is?

Once again, thank you!

Share this post


Link to post
Share on other sites
2 hours ago, ce7 said:

Back to the kiss thumbnail for image, i had installed it, however it is now showing two images at the same time, and it change the position from left top cornor to right bottom cornor. do i need to delete the original cm_pi_gallery.php and keep only cm_pi_gallery_kissit.php? which part is the code to change the image location?

No need to delete, just uninstall.

Instructions:

OsC 2.3.4.1 CE Frozen:

In: admin => Modules => Content Modules:

Uninstall: Gallery [product_info]

 

Install : Gallery KissIt [product_info]

 

Edited by raiwa

Share this post


Link to post
Share on other sites
7 hours ago, raiwa said:

No need to delete, just uninstall.

Instructions:

OsC 2.3.4.1 CE Frozen:

In: admin => Modules => Content Modules:

Uninstall: Gallery [product_info]

 

Install : Gallery KissIt [product_info]

 

@raiwa

Thanks for reply. And continue question, sorry lots of questions 😂
After install KissIT, I found the button of add to cart is changed to grey, and the button of review became just text with link. How can I change it back to original one?

KissIT-Example-04-ButtonB4KissIT.PNG.edacf10e33e2c2e075a9703a36c6cd9e.PNG
image on the top: before KissIT has green add to cart button and reviews button
KissIT-Example-05-ButtonAfterKissIT.PNG.27b198929ced7b32759bbb90f29a43dd.PNG
Image on the top: after KissIT, somehow the Add to Cart and Reviews is different... not sure if i did something wrong....

Thanks!  Lyn

Share this post


Link to post
Share on other sites
On 9/4/2018 at 1:32 AM, raiwa said:

This should not be related to kiss it. The buttons are in other independant modules and kiss it doesn't interfere in buttons.

@raiwa
Hi Raiwa,

Thank you for the reply. Will try to check the button later on. I have one more question about the thumbnail. I have the thumbnail on product_info.php with the newest kiss_gallery, which is working great. However is there a way to have the thumbnail but no the watermark on the image? do i go to delete the ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0) or need to do something with the configuration setting?

Thanks! Lyn

Share this post


Link to post
Share on other sites
31 minutes ago, ce7 said:

 I have one more question about the thumbnail. I have the thumbnail on product_info.php with the newest kiss_gallery, which is working great. However is there a way to have the thumbnail but no the watermark on the image? do i go to delete the ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0) or need to do something with the configuration setting?

Please read the instructions/check the configuration settings:

E.  Admin : Configure : Images : KissIT Product Watermark Size: Default : 0.6

KissIT Product Main Watermark size relativ to the image size (1.0=100%, 0.5 = 50%, 0=no watermark).

H.  Admin : Configure : Images : KissIT min image width to apply Watermark: Default : 60

The minimum width of thumbnail images to apply the watermark.

Share this post


Link to post
Share on other sites
14 hours ago, raiwa said:

Please read the instructions/check the configuration settings:

E.  Admin : Configure : Images : KissIT Product Watermark Size: Default : 0.6

 

KissIT Product Main Watermark size relativ to the image size (1.0=100%, 0.5 = 50%, 0=no watermark).

 

 

 

H.  Admin : Configure : Images : KissIT min image width to apply Watermark: Default : 60

 

The minimum width of thumbnail images to apply the watermark.

 

@raiwa

Thank you!
Sorry did not read the instruction carefully, just trying to find the code....and about the button, finally fix it, use dreamweaver to past the code, not working, but use ultraedit, it is working....not sure why... thank you very much for the add on and all the issue helps!

Lyn

Share this post


Link to post
Share on other sites

hi,
come back again for more question,
found cid= with strange string, instead of product ID,
so redo everything, and make sure it is all ok...new 234.1Edge (BS) now with the button working, however keep have error message (after enable SEO related modules) and also have this errors after add new catagories.


Warning: imagesy() expects parameter 1 to be resource, boolean given in /home/catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 383
Warning: Division by zero in /home/home/catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 385
Warning: imagecreatetruecolor(): Invalid image dimensions in /home/home/catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 393
Warning: imagealphablending() expects parameter 1 to be resource, boolean given in /home/home/catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 394
Warning: imagesavealpha() expects parameter 1 to be resource, boolean given in /home/home/catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 395
Warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in /home/home/catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 397
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/home/catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 398
Warning: imagesx() expects parameter 1 to be resource, boolean given in /home/home/catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 400
Warning: imagesy() expects parameter 1 to be resource, boolean given in /home/home/catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 401
Warning: imagecopy() expects parameter 2 to be resource, boolean given in /home/home/catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 424
 

Not sure why this warning happened...can someone please help?

Thanks!  Lyn

Share this post


Link to post
Share on other sites

@ce7 It seems you have a corrupted or wrong formatted image on the page you get this error.

To find out which image produces the problem you could switch off one by one the modules which contain images. Once you have identified the module and it contains more than one image, remove the images one by one.

When you found the image try to save it again in an apropriate format or replace it by a new image.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×