Jump to content


  • Content count

  • Joined

  • Last visited

  1. wayofjungle

    [Contribution] Additional Images Module

    cool Thanks for the great Mod and support surfalot!
  2. wayofjungle

    [Contribution] Additional Images Module

    Has anyone gotten lightbox js 2 to work with this. I had the lightbox working before adding the contribution. Here is the section from contribution that needs to be modded. It is lines 213-217 in product_info that displays the images. document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_ADD_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . (!empty($product_info['products_image_med'])?$product_info['products_image_med']:(!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:(!empty($product_info['products_image'])?$product_info['products_image']:''))), addslashes($product_info['products_name']), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_WIDTH:''), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_HEIGHT:''), 'hspace="5" vspace="5"') . '<br>' . (!empty($product_info['products_image_description'])?$product_info['products_image_description']:TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . (!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:$product_info['products_image'])) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . (!empty($product_info['products_image_med'])?$product_info['products_image_med']:(!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:(!empty($product_info['products_image'])?$product_info['products_image']:''))), $product_info['products_name'], (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_WIDTH:''), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_HEIGHT:''), 'hspace="5" vspace="5"') . '<br>' . (!empty($product_info['products_image_description'])?$product_info['products_image_description']:TEXT_CLICK_TO_ENLARGE) . '</a>'; ?> </noscript><?php its needs to be modded to fit the rel=lightbox tag, just i dont know how to do this and replace the popup box. <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> Taken from support thread for Lightbox http://forums.oscommerce.com/index.php?showtopic=217675 The lightbox support file in the contribution list doesnt work on the new versioin of ADD IMGS because there is no additional_images file in includes only in admin.
  3. wayofjungle

    [Contribution] Additional Images Module

    Got it to work, you have to remove the onsubmit command again with regards to new_images, dont know why that programmer had those lines in there, maybe something with newer version of oscommerce but there is no mention in his install file of which version the mod is for.
  4. wayofjungle

    [Contribution] Additional Images Module

    Hi, i have used the contribution in the past. The new version 2.1.0 has given me quite a few issues, dont know if im getting old or what. I am using OSC ver 2.2-MS2. My current problem here is that when i click the 'save' button to after browsing additional images nothing happens. No redirect no error, its like the button is stuck. I this is an issue in categories.php but could it be in the file im supposed to be redirected to? I fixed a similar problem with the product info page, the 'preview' button at the bottom of the listing did the same thing until i removed the new 'added: onSubmit="return check_form(new_product);" ?>' portion on line 645. These two problems are probably related so if someone can help i really appreciate otherwise i might just figure this out sooner. Thanks in advance.