This is a discussion on Fancy Lightbox Popup within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Support thread is at http://forums.oscommerce.com/index.php?showtopic=282726 No changes in this zip More......
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Support thread is at http://forums.oscommerce.com/index.php?showtopic=282726 No changes in this zip More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| I really like the Fancy Lightbox Popup contrib. It installed pretty easily, the lightbox appearance can be modified through CSS and it is much harder for casual users to right click and save the image. Instructions for installing the Lightbox subdirectory were fine. Script mods were oriented toward plain vanilla osCommerce. In osCMax with the fallback template, one edits product_info.tpl.php. At about line 89, replace: <script language="javascript" type="text/javascript"><!-- document.write('<a href="javascript //--></script> <noscript> <a href="<?php echo tep_href_link($image_lg . '.' . $lg_image_ext); ?>" target="_blank"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], stripslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?><br /><span class="smallText"><?php echo TEXT_CLICK_TO_ENLARGE; ?></span></a> </noscript> With: <script language="javascript"><!-- document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . 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>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . 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> We show a different shot in the popup and we didn't want to lose the work that went into the built-in Dynamic MoPics, so we use the following (changed DIR_WS_IMAGES TO DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR so the lightbox pulls the image from the defined big images directory: <script language="javascript"><!-- document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . 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>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . 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> I hope this helps someone in the osCMax community. Regards, Paul Bulk Jewelry Chain, Findings, Jewelry Making Supplies: Shop OhioBeads.com (to see the lightbox in action) argentbeads |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fancy Lightbox Popup | michael_s | New osCommerce Contributions | 0 | 11-09-2007 03:33 AM |
| LIGHTBOX Image for STS | michael_s | New osCommerce Contributions | 0 | 11-08-2007 10:32 AM |
| LIGHTBOX Image for STS | michael_s | New osCommerce Contributions | 0 | 08-30-2007 11:11 AM |
| LIGHTBOX Image for STS | michael_s | New osCommerce Contributions | 0 | 06-25-2007 05:55 PM |
| product info lightbox | michael_s | New osCommerce Contributions | 0 | 06-04-2007 07:30 PM |