Results 1 to 10 of 3727

Hybrid View

  1. #1
    Join Date
    Nov 2004
    Location
    West Mids, England
    Posts
    203
    Plugin Contributions
    1

    Default Re: Zen Lightbox...

    Quote Originally Posted by Sigel View Post
    ok, so I figured out what the problem is..

    My additional images i keep in the /images/ for and i just upload them as image_name_02.jpg 03.jpg etc etc...

    Well, the new additional_images.php is linking my 'extra images' to
    /images/large/image_name_02_LRG.jpg

    what would I edit to make it link the extra images to just how they are which is
    /images/image_name_02.jpg


    Thanks in advance!
    How I got around the problem was to ignore the additional_images.php file that came with the mod and copied the core zen additional_images.php file into the override folder: /includes/modules/YOUR_TEMPLATE/

    Then find line 92
    Code:
        // Link Preparation:
    and insert below it the following:
    Code:
    	// bof Zen Lightbox v1.4 aclarke 2007-09-22
    	if (ZEN_LIGHTBOX_STATUS == 'true') {
    	
        $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($products_name) . '">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
    	
    	} else {
    			
        $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
    	
    	}
    	// eof Zen Lightbox v1.4 aclarke 2007-09-22
    Then directly under that, comment out the following line of code:
    Code:
    $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
    so it looks like this;

    Code:
    //    $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
    I hope that helps, and I'm not treading on anyone's toes.

    Great mod by the way, thanks.

    Craig

  2. #2
    Join Date
    Aug 2007
    Posts
    31
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Hello anyone,

    I set up light box with Zen Cart 1.37 1 with HI 2(0916). However, it looks like HI does not work with Light box?! Also, when I clicked the product info-image, only the main image works fine for light box but I do not have the "NEXT Button" to look at the other images. (I used HI2 to add extra images.) Please see my website.

    Could anyone help me about HI2 and Light box issue? Could anyone know how I can show the next button?

    Thank you so much.

    Ken

  3. #3
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by CES View Post
    How I got around the problem was to ignore the additional_images.php file that came with the mod and copied the core zen additional_images.php file into the override folder: /includes/modules/YOUR_TEMPLATE/

    Then find line 92
    Code:
        // Link Preparation:
    and insert below it the following:
    Code:
        // bof Zen Lightbox v1.4 aclarke 2007-09-22
        if (ZEN_LIGHTBOX_STATUS == 'true') {
        
        $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($products_name) . '">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
        
        } else {
                
        $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
        
        }
        // eof Zen Lightbox v1.4 aclarke 2007-09-22
    Then directly under that, comment out the following line of code:
    Code:
    $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
    so it looks like this;

    Code:
    //    $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
    I hope that helps, and I'm not treading on anyone's toes.

    Great mod by the way, thanks.

    Craig

    Additional images weren't showing for me using the zenlightbox version of additional_images.php, but its fixed now using the above instructions. Thanks heaps.
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  4. #4
    Join Date
    Jun 2007
    Posts
    167
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Holy Moly! How do I correct this! Click on the image and you will see the issue. Thanks!!

    http://www.pastgenerationtoys.com/in...roducts_id=571

  5. #5
    Join Date
    Jun 2007
    Posts
    167
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by PastGenToys View Post
    Holy Moly! How do I correct this! Click on the image and you will see the issue. Thanks!!

    http://www.pastgenerationtoys.com/in...roducts_id=571
    Dohhh - Deleted Old filles - problem solved!

 

 

Similar Threads

  1. Free Shipping Rules addon [Support Thread]
    By numinix in forum Addon Shipping Modules
    Replies: 36
    Last Post: 2 Dec 2016, 01:56 PM
  2. v151 Reviews Reply addon [Support Thread]
    By mikestaps in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 17 Oct 2014, 01:29 AM
  3. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  4. File Upload Required addon [Support Thread]
    By 1100101 in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 10 Dec 2011, 03:00 AM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 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