Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 4 (for v1.5.x) Support Thread

Image Handler 4 (for v1.5.x) Support Thread

Views: 343,302

Results 761 to 780 of 1,691
19 Aug 2013, 5:24 PM
#761
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Image Handler 4 (for v1.5.x) Support Thread

EHSI:

"If you were using Fual Slimbox or Zen Lightbox with Image Handler4 you MUST re-upload the /includes/modules/YOUR_TEMPLATE/additional_images.php file from Fual Slimbox or Zen Lightbox fileset or your lightbox won't function as expected."

That is NOT an install step.. It's an after installation optional instruction... Read through all 12 steps installation steps.. I can assure you that you skipped one (here's a hint: it's the second to the LAST step)

You can go to the downloads and review the descriptions for Fual Slimbox or Zen Lightbox. The are simply lightbox add-ons..

19 Aug 2013, 6:26 PM
#762
ehsi avatar

ehsi

New Zenner

Join Date:
Aug 2013
Posts:
49
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Thank you. I did miss this one.

I like Fancybox better. Is there an addon to Zen Cart for Fancybox or the choices only are Fual Slimbox and Zen Lightbox?

Thank you.

20 Aug 2013, 1:44 PM
#763
ehsi avatar

ehsi

New Zenner

Join Date:
Aug 2013
Posts:
49
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Anybody?

20 Aug 2013, 2:52 PM
#764
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 4 (for v1.5.x) Support Thread

EHSI:

Thank you. I did miss this one.

I like Fancybox better. Is there an addon to Zen Cart for Fancybox or the choices only are Fual Slimbox and Zen Lightbox?

Thank you.

EHSI:

Anybody?

Not an Image Handler support related inquiry (the purpose of this thread).. You need to create a new thread/post in the appropriate topic area to ask your lightbox module questions..

Also in general, thread "bumping" is kinda frowned upon in the forum.. From the first page of this thread:

And a (gentle) reminder about FREE forum support:
This is ain’t Microsoft folks!
(a frequently used analogy by some to compare open source projects to commercial projects)

Like other open source projects, this support forum is manned by VOLUNTEERS (ie: unpaid folks). They are not OBLIGATED to assist here, but they do so because they WANT to. They give of their time here when their individual schedules permit. Usually the response is pretty quick 'round these parts, but when it’s not or your question has gone unanswered this may mean one of a few things:

  • NO ONE has an answer to your question/issue.

(Some folks will only respond when they have something MEANINGFUL to say versus a blanket “I don’t know how to do that” kind of answer.)

  • Folks are just busy and will answer if/when they can..

(family and other personal obligations, day jobs, paid jobs, etc will usually trump forum participation – this is to be expected – after all it’s unrealistic to expect that folks are sitting around this forum all day and night waiting to answer questions)

  • Your question got missed. (and while I’m on this point) Your post MIGHT have been missed if your post is now a FEW pages back (like more than TWO or more pages) with no response.. Missed does NOT mean “it’s been an hour and no one responded to my question, so let me 'bump' the thread by re-posting my question again”
21 Aug 2013, 5:54 PM
#765
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

working fine except the popup for additional images comes up with an empty window. Looked at the tpl_main_page.php and have the newest version. Rolled back to the tpl_main_page.php I used on 1.3.9a with IHA3 and that version works perfectly. Code is a bit different and I am sure I should be using the new file but what is not working? Anybody else having popup issues with just the additional image? Main image popup worked fine.

21 Aug 2013, 8:42 PM
#766
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 4 (for v1.5.x) Support Thread

mydanilo:

working fine except the popup for additional images comes up with an empty window. Looked at the tpl_main_page.php and have the newest version. Rolled back to the tpl_main_page.php I used on 1.3.9a with IHA3 and that version works perfectly. Code is a bit different and I am sure I should be using the new file but what is not working? Anybody else having popup issues with just the additional image? Main image popup worked fine.

Did you try the modification posted a few pages back (2 or 3 pages back)?? See if that solves your issue..

21 Aug 2013, 9:47 PM
#767
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

This one?
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, TEXT_CLOSE_WINDOW) . '</a>'; /v4.3.1c-lat9/

Seems corrected in latest download but still empty popup on additional images. If not this one, maybe re-post it for me please?

21 Aug 2013, 10:18 PM
#768
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 4 (for v1.5.x) Support Thread

mydanilo:

This one?
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, TEXT_CLOSE_WINDOW) . '</a>'; /v4.3.1c-lat9/

Seems corrected in latest download but still empty popup on additional images. If not this one, maybe re-post it for me please?

Can't I'm on a mobile device, and it's sort of a PITA to do that.. Just page back through the thread.. look for the post by torvista..

21 Aug 2013, 11:25 PM
#769
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Image Handler 4 (for v1.5.x) Support Thread

EHSI:

Thank you. I did miss this one.

I like Fancybox better. Is there an addon to Zen Cart for Fancybox or the choices only are Fual Slimbox and Zen Lightbox?

Thank you.

So, let me ask, what is it that you are trying to show? Would it possibly be something that represents previous and next actions? Like the option just above the keyboard navigation option. I guess I was also wrong maybe it is the close on image click option that forces the buttons. The instructions state something about it.

21 Aug 2013, 11:30 PM
#770
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 4 (for v1.5.x) Support Thread

mc12345678:

So, let me ask, what is it that you are trying to show? Would it possibly be something that represents previous and next actions? Like the option just above the keyboard navigation option. I guess I was also wrong maybe it is the close on image click option that forces the buttons. The instructions state something about it.

Not to be a nag about this, but this topic (lightbox modules and such) should be carried out on either the support thread for the appropriate module or in a new thread.. This is NOT related to IH4 support..

22 Aug 2013, 11:36 AM
#771
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

DivaVocals:

Can't I'm on a mobile device, and it's sort of a PITA to do that.. Just page back through the thread.. look for the post by torvista.. Ok I searched for posts by torvista, and the only code change suggested is the one that I said I did. The pop up is showing the "no image" image but not my additional image as it should.

22 Aug 2013, 12:24 PM
#772
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Image Handler 4 (for v1.5.x) Support Thread

mydanilo:

Ok I searched for posts by torvista, and the only code change suggested is the one that I said I did. The pop up is showing the "no image" image but not my additional image as it should.

Although Diva has reposted some good guidance, I am providing the following without seeing the issue first hand.

With the limited available information, it sounds like in a situation where you have multiple pictures, if you select the primary picture it shows properly; however, if you select the additional image then nothing shows. Have you reviewed the filename of the database (including extension) against the stored file, your .htaccess permissions, and the extensions expected by this plugin? I came across an issue once before where I had some files with an extension of JPG instead of jpg and I had limitations in my .htaccess to allow jpg but not JPG. when attempting to view the picture it would not show.

That said, you mentioned (right or wrong) that the "no image" image showed, this isn't the same "no image" image of not uploading an image for a product is it, but rather an "error" image associated with not being able to display the desired image, correct?

22 Aug 2013, 1:02 PM
#773
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 4 (for v1.5.x) Support Thread

mc12345678:

Although Diva has reposted some good guidance, I am providing the following without seeing the issue first hand.

With the limited available information, it sounds like in a situation where you have multiple pictures, if you select the primary picture it shows properly; however, if you select the additional image then nothing shows. Have you reviewed the filename of the database (including extension) against the stored file, your .htaccess permissions, and the extensions expected by this plugin? I came across an issue once before where I had some files with an extension of JPG instead of jpg and I had limitations in my .htaccess to allow jpg but not JPG. when attempting to view the picture it would not show.

That said, you mentioned (right or wrong) that the "no image" image showed, this isn't the same "no image" image of not uploading an image for a product is it, but rather an "error" image associated with not being able to display the desired image, correct?
mydanilo confirmed for me that the new code for the additional images popup is not working correctly on a consistent basis.. The new code was tested.. It worked fine in my test store which is why I went ahead and submitted the update to Image Handler. However, I've recently done a brand new install for a new client and found that instead of the additional images displaying, the popup is displaying the "no image" product image instead of the proper additional images.. I further confirmed that the previous version of this file correctly displays the additional images in the popup.

I was able to repeat this same errant behavior in a site where I am doing a site makeover. As a part of that site makeover, I am updating all of the store add-ons including Image Handler.. Initially I MISSED that the issue was even occurring because this particular site also has a Colorbox module installed, and when the Colorbox module is active, the additional images show without any issues, but once I turn off the ColorBox, the behavior mydanilo is reporting occurs.

So there is an issue, but it appears that it is not an issue for all stores, and rolling back to the old version of the additional images files is not a good solution since there was a legitimate security issue with the old code.. All that said I DO NOT know how to fix this, and I would appreciate some SKILLED eyes from the community to take a look at the additional images popup code and see if they can spot the issue..

22 Aug 2013, 1:05 PM
#774
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

mc12345678, your are correct. It shows the error image instead of my additional image. I shall check if the new IH handles my file names differently. I don't think I have screwed up picture file names but I will double check later and post result.

22 Aug 2013, 1:19 PM
#775
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

I've uploaded now the IH4 version of the tpl_main_page.php again so you can see the behavior. Take spaces out of this link.
http://www. mydanilo.com /zen15/index.php?main_page=product_info&cPath=53&products_id=741

22 Aug 2013, 2:29 PM
#776
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 4 (for v1.5.x) Support Thread

Dunno if this is CORRECT or resolves the XSS issues that was the inciting reason why IH4 was updated to begin with.. This code works, but I need someone to validate if it resolves the XSS issue that was identified in IH4 v4.1.

<?php
/**mod Image Handler 4.3.2
 * Override Template for common/tpl_main_page.php
 *
 * @package templateSystem
 * @copyright Copyright 2005-2006 Tim Kroeger
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
 */
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
    echo '<a href="javascript:window.close()">' . zen_image(strip_tags($_GET['products_image_large_additional']), $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
?>
</div>
</body>
22 Aug 2013, 2:46 PM
#777
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

DivaVocals:

Dunno if this is CORRECT or resolves the XSS issues that was the inciting reason why IH4 was updated to begin with.. This code works, but I need someone to validate if it resolves the XSS issue that was identified in IH4 v4.1.

<?php /**mod Image Handler 4.3.2 * Override Template for common/tpl_main_page.php * * @package templateSystem * @copyright Copyright 2005-2006 Tim Kroeger * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $ */ ?> <body id="popupAdditionalImage" class="centeredContent" onload="resize();"> <div> <?php echo '<a href="javascript:window.close()">' . zen_image(strip_tags($_GET['products_image_large_additional']), $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>'; ?> </div> </body> ```

This code works. My additional images popup now show up. Don't know about XSS issue tho.

22 Aug 2013, 2:51 PM
#778
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 4 (for v1.5.x) Support Thread

mydanilo:

This code works. My additional images popup now show up. Don't know about XSS issue tho.

I wasn't looking for confirmation whether the code works.. I already know it works I tested it on all the sites where I was having the issue with the additional images that you reported..

I need confirmation if it resolves the XSS vulnerability.. so I suggest strongly that you NOT use this code until such a time as someone confirms this fix is correct and SAFE to use..

22 Aug 2013, 2:54 PM
#779
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 4 (for v1.5.x) Support Thread

DivaVocals:

Dunno if this is CORRECT or resolves the XSS issues that was the inciting reason why IH4 was updated to begin with.. This code works, but I need someone to validate if it resolves the XSS issue that was identified in IH4 v4.1.

<?php /**mod Image Handler 4.3.2 * Override Template for common/tpl_main_page.php * * @package templateSystem * @copyright Copyright 2005-2006 Tim Kroeger * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $ */ ?> <body id="popupAdditionalImage" class="centeredContent" onload="resize();"> <div> <?php echo '<a href="javascript:window.close()">' . zen_image(strip_tags($_GET['products_image_large_additional']), $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>'; ?> </div> </body> ``` DO NOT USE THIS CODE UNTIL IT IS VERIFIED AS SAFE!!!

That said here's an alternate..

<?php
/**mod Image Handler 4.1
 * Override Template for common/tpl_main_page.php
 *
 * @package templateSystem
 * @copyright Copyright 2005-2006 Tim Kroeger
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
 */
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
  echo '<a href="javascript:window.close()">' . zen_image(htmlspecialchars($_GET['products_image_large_additional']), $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>'  
?>
</div>
</body>
22 Aug 2013, 3:12 PM
#780
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

@DivaVocals sorry I was not aware until now that you acknowledged that this is an issue on your/other sites too. I thought this was just me that has the problem at this point. So we had a general mod issue here, huh. Good to know at least that my other mods and recent changes did not affect this behavior. Thank you for all the work with IMH4. Great to have this back.