Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2004
    Location
    Austin
    Posts
    56
    Plugin Contributions
    0

    bug [Not a ZC bug] Fix for certain multiple images not showing

    The problem: multiple images would not show up even though they're named and placed correctly.

    Debian Linux
    Apache 2.5
    php5
    mysql5
    This affected my install of 1.3.8 install 3/25/08.
    These contribs are installed:
    editor__fckeditor_plugin_2-5
    image-handler_2.0-zc137
    ultimate_seo_urls_2-106
    fast_and_easy_checkout
    short_description
    zen_lightbox_1-4

    Around line 25 of additional_images.php:

    $products_image_base = str_replace($products_image_extension . '$', '', $products_image);


    replaced with...

    $extensionReg = '/' . $products_image_extension . '$/';
    $products_image_base = preg_replace($extensionReg, '', $products_image);


    str_replace doesn't accept regular expression args... preg_replace does.

    I now see multiple images in on page and in the lightbox.

    cross-posted from here:http://www.zen-cart.com/forum/showth...021#post531021

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: [Not a ZC bug] Fix for certain multiple images not showing

    You are correct that str_replace doesn't accept regular expression args.
    That's why Zen Cart doesn't mix them. (I just did a fresh download to be sure my files are the same as what's published on SF).

    However, one or both of two of your contributions do specifically alter the file you mentioned, and thus are the likely culprits:
    - image handler
    - zen_lightbox

    I know the image-handler mod does attempt to introduce regex args, and thus it's the primary suspect IMO.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: [Not a ZC bug] Fix for certain multiple images not showing

    nice fix! i'm running lightbox and had given up on this nagging issue. cheers!
    Zack Coffman
    Producer/Director of Choppertown and Brittown

 

 

Similar Threads

  1. Multiple images not showing
    By Topstring in forum Basic Configuration
    Replies: 4
    Last Post: 10 Dec 2010, 02:48 PM
  2. Images not showing & editing item will not fix
    By rcrosier in forum General Questions
    Replies: 6
    Last Post: 22 Oct 2010, 03:30 AM
  3. Multiple product images not showing up
    By JEKB in forum General Questions
    Replies: 6
    Last Post: 16 Sep 2010, 06:57 PM
  4. Multiple Images not showing
    By atjhza in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 22 Mar 2010, 12:15 PM

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