Page 630 of 710 FirstFirst ... 130530580620628629630631632640680 ... LastLast
Results 6,291 to 6,300 of 7099
  1. #6291
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 2 Support

    Quote Originally Posted by nagelkruid View Post
    i wonder what result would be achieved with the additional images if the code would be rewritten like this:
    PHP Code:
    //escape possible quotes if they're not already escapped
            //$alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
            //$alt = str_replace('"', '"', $alt);
            
    $alt addslashes(htmlentities($altENT_COMPATCHARSET)); 
    I cant reproduce because i am showing medium images as additionals in my shop, but if someone is willing to take a look i would be interested to hear.

    cheers,
    jeroen
    Okay.. You KNOW I'm code challenged.. I could go home, have a glass of wine and figure it out..

    or

    I can cheat and ask you to 'splain it to me..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #6292
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Image Handler 2 Support

    Quote Originally Posted by DivaVocals View Post
    Okay.. You KNOW I'm code challenged.. I could go home, have a glass of wine and figure it out..
    or
    I can cheat and ask you to 'splain it to me..
    As you are throwing a glass of wine into the discussion i would say that option would always win it in my book hehe...

    Just can't get my head around why the code would be a problem for the additional images. I might be tempted to run a default cart in my xampp and see for myself, if i wasn't drinking my last can of beer i would have probably allready done so....ahhh... i should probably go to bed

  3. #6293
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Image Handler 2 Support

    Quote Originally Posted by nagelkruid View Post
    i wonder what result would be achieved with the additional images if the code would be rewritten like this:
    PHP Code:
    //escape possible quotes if they're not already escapped
            //$alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
            //$alt = str_replace('"', '"', $alt);
            
    $alt addslashes(htmlentities($altENT_COMPATCHARSET)); 
    It works fine on my test setup,
    Set up a wamp server on your local machine, makes testing a heck of a lot easier
    I tried similar with html entities but my knowledge of PHP isn't that great,
    hence the hack which I knew would work, as expecting people not to use apostrophes in product names is a bit daft really.

    Nice to see my hack replaced with some nice correct code
    Webzings Design
    Semi retired from Web Design

  4. #6294
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 2 Support

    Quote Originally Posted by nagelkruid View Post
    As you are throwing a glass of wine into the discussion i would say that option would always win it in my book hehe...

    Just can't get my head around why the code would be a problem for the additional images. I might be tempted to run a default cart in my xampp and see for myself, if i wasn't drinking my last can of beer i would have probably allready done so....ahhh... i should probably go to bed
    There's ALWAYS wine in the discussion when I'm working from home!

    Quote Originally Posted by nigelt74 View Post
    It works fine on my test setup,
    Set up a wamp server on your local machine, makes testing a heck of a lot easier
    I tried similar with html entities but my knowledge of PHP isn't that great,
    hence the hack which I knew would work, as expecting people not to use apostrophes in product names is a bit daft really.

    Nice to see my hack replaced with some nice correct code
    So ladies and gentlemen.. Are we convinced that this is the change that should be made to the code?? If so I'll update the files and submit an update... I'll test too of course, but I trust your findings.. I can simply make the change and submit it without having to test myself..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #6295
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Image Handler 2 Support

    Quote Originally Posted by DivaVocals View Post
    So ladies and gentlemen.. Are we convinced that this is the change that should be made to the code?? If so I'll update the files and submit an update... I'll test too of course, but I trust your findings.. I can simply make the change and submit it without having to test myself..
    Please make sure you also comment out the fancy quote line so it looks like this when you test it:
    PHP Code:
    //escape possible quotes if they're not already escapped
            //   $alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
            //   $alt = str_replace('"', '"', $alt);
             //replace apostrophe with fancy quote
             //$alt = str_replace("'", "‘", $alt);
            
    $alt addslashes(htmlentities($altENT_COMPATCHARSET)); 
    second:
    there is another problem in this function, the filename gets extracted with substr but it is extracted with the / included.
    This makes the final path to the hover image have 2 slashes in the path which is incorrect. (you can see it in the page source)
    This can be corrected by:
    PHP Code:
    //old line in this function
    //$products_image_filename = substr($src, strrpos($src, '/'), strlen ($src) - strrpos ($src, '/') - strlen ($this->extension));
    //corrected
    $products_image_filename substr($srcstrrpos($src'/') + 1strlen ($src) - (strrpos ($src'/') + 1) - strlen ($this->extension)); 

  6. #6296
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 2 Support

    Quote Originally Posted by nagelkruid View Post
    Please make sure you also comment out the fancy quote line so it looks like this when you test it:
    Code:
    //escape possible quotes if they're not already escapped
            //   $alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
            //   $alt = str_replace('"', '"', $alt);
             //replace apostrophe with fancy quote
             //$alt = str_replace("'", "‘", $alt);
            $alt = addslashes(htmlentities($alt, ENT_COMPAT, CHARSET));
    Yes I understand.. I actually will probably just make it a clean inclusion and leave out the old commented out sections altogether.. Seems they are obsolete at this point..


    Quote Originally Posted by nagelkruid View Post
    second:
    there is another problem in this function, the filename gets extracted with substr but it is extracted with the / included.
    This makes the final path to the hover image have 2 slashes in the path which is incorrect. (you can see it in the page source)
    This can be corrected by:
    Code:
    //old line in this function
    //$products_image_filename = substr($src, strrpos($src, '/'), strlen  ($src) - strrpos ($src, '/') - strlen ($this->extension));
    //corrected
    $products_image_filename = substr($src, strrpos($src, '/') + 1, strlen  ($src) - (strrpos ($src, '/') + 1) - strlen ($this->extension));
    Got it.. will add this to the changes to be made.. (excluding the commented out obsolete sections..)
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #6297

    Default Re: Image Handler 2 Support

    Hi guys, I have very few basic questions regarding that. I luckily installed it on my site and looks like its installed correctly.
    But the problem is where I can add additional picture for each product that i have on my website?
    I read the IH documentation but it does not tell in detail. anyone has any site where these additional pictures are showing?
    I thought it will add additional column in main product page where we can browse another picture from computer?
    Can you please help me in this regard,
    Thanks

  8. #6298
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Quote Originally Posted by arty101 View Post
    Hi guys, I have very few basic questions regarding that. I luckily installed it on my site and looks like its installed correctly.
    But the problem is where I can add additional picture for each product that i have on my website?
    I read the IH documentation but it does not tell in detail. anyone has any site where these additional pictures are showing?
    I thought it will add additional column in main product page where we can browse another picture from computer?
    Can you please help me in this regard,
    Thanks

    when you go to tools/image handler to get its controls---or click the little pink i in the product listing page you will get the place to add your additional images

    they must have the same type of image as the primary one...jpg with jpg--png with png --- gif with gif...no mix and match or the additional ones will not show up.

    click the ? and it will give you another window where you will see the main image a bit larger and under it 3 buttons...clck the add image (something like that) button to then browse your computer for the next image for this product.

    repeat the add image process with each additional image you wish to add.

    I cheat though and upload them all to the server...nameing them as such:

    mainimagenameherewithnospaces.jpg
    mainimagenameherewithnospaces_01.jpg
    mainimagenameherewithnospaces_02.jpg
    mainimagenameherewithnospaces_03.jpg

    for how ever many you are adding, then in the product page where you put the path for the main image the others will automatically show up when you are through---but you won't see them unless you are in image handler control area or the actual product page in your store.

    hope that is what you were asking....head full of flu and meds=brainless

  9. #6299
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 2 Support

    Quote Originally Posted by DarkAngel View Post
    I cheat though and upload them all to the server...nameing them as such:

    mainimagenameherewithnospaces.jpg
    mainimagenameherewithnospaces_01.jpg
    mainimagenameherewithnospaces_02.jpg
    mainimagenameherewithnospaces_03.jpg
    Wanted to add this: for those who don't want to remember HOW to name images so that Zen Cart will recognize them as additional images, if you upload additional images through the IH2 admin controls, IH2 takes care to properly name your additional images so that Zen Cart recognizes them as such..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #6300
    Join Date
    Mar 2010
    Location
    Jurassic Coast United Kingdom
    Posts
    38
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    hi i am running latest IH2, digital shop template with zencart 1.3.9h
    can someone tell me if it is possible to have a hover image in my subcatagories as here "http://thearmysurplusstore.co.uk/shop/index.php?main_page=index&cPath=7" and also on the product listing here "http://thearmysurplusstore.co.uk/shop/index.php?main_page=index&cPath=7_51" i have seen it on a site.

    also since installing ih when you click on a catagory the catagory image becomes fuzzy, how can i solve this?

    hope this is all clear and thanks in advance for help.
    I've been Zenned

 

 

Similar Threads

  1. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1687
    Last Post: 17 Nov 2024, 07:26 PM
  2. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  3. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM
  4. Image handler only covers part of screen
    By shaneburton in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 May 2009, 07:15 PM
  5. Is Image Handler the only way to go?
    By wwwursa in forum Installing on a Windows Server
    Replies: 2
    Last Post: 23 Dec 2007, 09:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR