Jump to content
Sign in to follow this  
tractormad

Support Thread For Fancy Lightbox Popup Contribution

Recommended Posts

I got my Lightbox to work again by changing the location to /lightbox in each address. Weird how it would only work using the top image directory. I was expecting it to locate the lightbox folder in the /catalog/.


WebSkipper

 

Everyday is a gift, not a given....

 

C Me @ Zen Cart

Share this post


Link to post
Share on other sites
Ok, I've made the modifications to your product_info.php, and indicated them with comments.

 

You will need to clearly follow the instructions though to make sure the java files are in the right place;

<?php

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

 

// SEO MOD start

$product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_check = tep_db_fetch_array($product_check_query);

$product_info_query = tep_db_query("select pd.products_name, p.products_model from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_info = tep_db_fetch_array($product_info_query);

$products_model = $product_info['products_model'];

$products_name = $product_info['products_name'];

// SEO MOD

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo $products_name; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<script language="javascript"><!--

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re

sizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,l

eft=150')

}

//--></script>

 

// MODIFIED FOR LIGHTBOX

<script type="text/javascript" src="lightbox/js/prototype.js"></script>

<script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects"></script>

<link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen">

<script type="text/javascript" src="lightbox/js/lightbox.js"></script>

// END MODIFIED FOR LIGHTBOX

 

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

<?php

if ($product_check['total'] < 1) {

?>

<tr>

<td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="0" class="infoBox">

<tr class="infoBoxContents" style="background-image:url('images/eRoljtablebg.gif');background-repeat: repeat-x;">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

} else {

$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_info = tep_db_fetch_array($product_info_query);

 

tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

 

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {

$products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';

} else {

$products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));

}

 

if (tep_not_null($product_info['products_model'])) {

$products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';

} else {

$products_name = $product_info['products_name'];

}

?>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading" valign="top"><?php echo $products_name; ?></td>

<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main">

<?php

if (tep_not_null($product_info['products_image'])) {

?>

<table border="0" cellspacing="0" cellpadding="2" align="right">

<tr>

<td align="center" class="smallText">

// MODIFIED FOR LIGHTBOX

<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>

// END MODIFIED FOR LIGHTBOX

</td>

</tr>

</table>

<?php

}

?>

<p><?php echo stripslashes($product_info['products_description']); ?></p>

<?php

$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");

$products_attributes = tep_db_fetch_array($products_attributes_query);

if ($products_attributes['total'] > 0) {

?>

<table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td>

</tr>

<?php

$products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name");

while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {

$products_options_array = array();

$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'");

while ($products_options = tep_db_fetch_array($products_options_query)) {

$products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);

if ($products_options['options_values_price'] != '0') {

$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';

}

}

 

if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {

$selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];

} else {

$selected_attribute = false;

}

?>

<tr>

<td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>

<td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td>

</tr>

<?php

}

?>

</table>

<?php

}

?>

</td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");

$reviews = tep_db_fetch_array($reviews_query);

if ($reviews['count'] > 0) {

?>

<tr>

<td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

}

 

if (tep_not_null($product_info['products_url'])) {

?>

<tr>

<td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

}

 

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {

?>

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>

</tr>

<?php

} else {

?>

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>

</tr>

<?php

}

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="0" class="infoBox" >

<tr class="infoBoxContents" style="background-image:url('images/eRoljtablebg.gif');background-repeat: repeat-x;">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2" >

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>

<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td>

<?php

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_also_purchased(3600);

} else {

include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

}

}

?>

</td>

</tr>

</table></form></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

</body>

</html>

 

 

 

 

 

 

 

**************thanks tractormad..i got it to work for..got the folder to the right place...HOWEVER, 1.) NOW I HAVE TWO POP UP IMAGES the regular and your coolest contrib...2.) When I Click CLOSE to the pop LIGHTBOX PIX, it goes out of the product page..It should go back to page where you "Click to Enlarge"?...HELP pls. pls. ..THANKS in advance..

Share this post


Link to post
Share on other sites
Thanks a lot m8. Had same problem & pulling hair out trying to locate it. Brillant contribution. Well done for making it. The bloke with the tractor mad site: did you use a template? if you did where did you get it? I'm not going to copy it. If its a template was it hard to install it? Sorry to ask these questions but your 2 sites are brillant.

 

Hi thanks for the compliment, I used a layout template from www.templatemonster.com

 

When I first setup OSC I decided that Im not artistic enough to come up with a decent enough layout, so used one from templatemonster as a foundation. Its easy enough to install, but doesnt feature any contributions or anything, just the layoutand image files (the m* gif files).

 

However... I heavily molded the template once it was installed. This involved editing all the image files, setting all the colours etc in the CSS files. I had an artist do the work on the logo.

 

Once basic osc and the template were up and running, its taken around 6 months installing all the required contributions, getting the layout just right, stocking up, editing invoices and emails, testing, etc etc etc ..... put it this way.... I see the OSC forums in my dreams!!!

 

Hope this helps.

Share this post


Link to post
Share on other sites
Hi thanks for the compliment, I used a layout template from www.templatemonster.com

 

When I first setup OSC I decided that Im not artistic enough to come up with a decent enough layout, so used one from templatemonster as a foundation. Its easy enough to install, but doesnt feature any contributions or anything, just the layoutand image files (the m* gif files).

 

However... I heavily molded the template once it was installed. This involved editing all the image files, setting all the colours etc in the CSS files. I had an artist do the work on the logo.

 

Once basic osc and the template were up and running, its taken around 6 months installing all the required contributions, getting the layout just right, stocking up, editing invoices and emails, testing, etc etc etc ..... put it this way.... I see the OSC forums in my dreams!!!

 

Hope this helps.

 

 

Thanks for that. I can do the technical stuff,mostly, but i am about as artistic as a brick.

Share this post


Link to post
Share on other sites
Thanks for that. I can do the technical stuff,mostly, but i am about as artistic as a brick.

 

Same here... which is why Id suggest that if you want to produce a pro looking design, which doesnt look like everyone elses OSC site, go for a template and modify it from there.

Share this post


Link to post
Share on other sites
Ok, I've made the modifications to your product_info.php, and indicated them with comments.

 

You will need to clearly follow the instructions though to make sure the java files are in the right place;

<?php

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

 

// SEO MOD start

$product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_check = tep_db_fetch_array($product_check_query);

$product_info_query = tep_db_query("select pd.products_name, p.products_model from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_info = tep_db_fetch_array($product_info_query);

$products_model = $product_info['products_model'];

$products_name = $product_info['products_name'];

// SEO MOD

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo $products_name; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<script language="javascript"><!--

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re

sizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,l

eft=150')

}

//--></script>

 

// MODIFIED FOR LIGHTBOX

<script type="text/javascript" src="lightbox/js/prototype.js"></script>

<script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects"></script>

<link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen">

<script type="text/javascript" src="lightbox/js/lightbox.js"></script>

// END MODIFIED FOR LIGHTBOX

 

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

<?php

if ($product_check['total'] < 1) {

?>

<tr>

<td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="0" class="infoBox">

<tr class="infoBoxContents" style="background-image:url('images/eRoljtablebg.gif');background-repeat: repeat-x;">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

} else {

$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_info = tep_db_fetch_array($product_info_query);

 

tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

 

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {

$products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';

} else {

$products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));

}

 

if (tep_not_null($product_info['products_model'])) {

$products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';

} else {

$products_name = $product_info['products_name'];

}

?>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading" valign="top"><?php echo $products_name; ?></td>

<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main">

<?php

if (tep_not_null($product_info['products_image'])) {

?>

<table border="0" cellspacing="0" cellpadding="2" align="right">

<tr>

<td align="center" class="smallText">

// MODIFIED FOR LIGHTBOX

<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>

// END MODIFIED FOR LIGHTBOX

</td>

</tr>

</table>

<?php

}

?>

<p><?php echo stripslashes($product_info['products_description']); ?></p>

<?php

$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");

$products_attributes = tep_db_fetch_array($products_attributes_query);

if ($products_attributes['total'] > 0) {

?>

<table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td>

</tr>

<?php

$products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name");

while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {

$products_options_array = array();

$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'");

while ($products_options = tep_db_fetch_array($products_options_query)) {

$products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);

if ($products_options['options_values_price'] != '0') {

$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';

}

}

 

if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {

$selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];

} else {

$selected_attribute = false;

}

?>

<tr>

<td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>

<td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td>

</tr>

<?php

}

?>

</table>

<?php

}

?>

</td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");

$reviews = tep_db_fetch_array($reviews_query);

if ($reviews['count'] > 0) {

?>

<tr>

<td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

}

 

if (tep_not_null($product_info['products_url'])) {

?>

<tr>

<td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

}

 

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {

?>

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>

</tr>

<?php

} else {

?>

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>

</tr>

<?php

}

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="0" class="infoBox" >

<tr class="infoBoxContents" style="background-image:url('images/eRoljtablebg.gif');background-repeat: repeat-x;">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2" >

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>

<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td>

<?php

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_also_purchased(3600);

} else {

include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

}

}

?>

</td>

</tr>

</table></form></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

</body>

</html>

******I really appreciate your time..thanks tractormad..i got it to work..got the folder to the right place...HOWEVER, 1.) NOW I HAVE TWO POP UP IMAGES the regular and your coolest contrib...2.) When I Click CLOSE to the pop LIGHTBOX PIX, it goes out of the product page..It should go back to page where you "Click to Enlarge"?...HELP pls. pls. ..THANKS in advance..

**********

Share this post


Link to post
Share on other sites

Just in case anyone is having the same problem that i reported a few posts before this ive now figured it out so here is the code

 

<?php

 $images_product = tep_db_query("SELECT additional_images_id, products_id, images_description, medium_images, popup_images FROM " . TABLE_ADDITIONAL_IMAGES . " WHERE products_id = '" . $HTTP_GET_VARS['products_id'] . "'");

 if (!tep_db_num_rows($images_product)) {

?>

<br>

<?php

 } else {

?>

<!-- additional_images //-->

<table width="100%">

  <tr>

	<td>



<?php

 $info_box_contents = array();

 $row = 0;

 $col = 0;

 while ($new_products = tep_db_fetch_array($images_product)) {

$info_box_contents[$row][$col] = array('align' => 'center',

									   'params' => 'class="smallText" width="25%" valign="top"',

									   'text' => '<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 . $new_products['popup_images'], $new_products['images_description'], DISPLAY_IMAGE_WIDTH, DISPLAY_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'

									  );

$col ++;

if ($col > 3) {

  $col = 0;

  $row ++;

}

 }

 new imagesBox($info_box_contents);

?>

	</td>

  </tr>

</table>

<!-- additional_images_eof //-->

<?php

 }

?>

Share this post


Link to post
Share on other sites

Ignore my previous post as it wasnt working, this code now seems to have sorted it though

 

<?php

 $images_product = tep_db_query("SELECT additional_images_id, products_id, images_description, medium_images, popup_images FROM " . TABLE_ADDITIONAL_IMAGES . " WHERE products_id = '" . $HTTP_GET_VARS['products_id'] . "'");

 if (!tep_db_num_rows($images_product)) {

?>

<br>

<?php

 } else {

?>

<!-- additional_images //-->

<table width="100%">

  <tr>

	<td>



<?php

 $info_box_contents = array();

 $row = 0;

 $col = 0;

 while ($new_products = tep_db_fetch_array($images_product)) {

$info_box_contents[$row][$col] = array('align' => 'center',

									   'params' => 'class="smallText" width="25%" valign="top"',

									   'text' => '<a href="' . tep_href_link(DIR_WS_IMAGES . $new_products['popup_images']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $new_products['popup_images'], $new_products['images_description'], DISPLAY_IMAGE_WIDTH, DISPLAY_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'

									  );


$col ++;

if ($col > 3) {

  $col = 0;

  $row ++;

}

 }

 new imagesBox($info_box_contents);

?>

	</td>

  </tr>

</table>

<!-- additional_images_eof //-->

<?php

 }

?>

Share this post


Link to post
Share on other sites

Hi - Just installed as per instructions. It is somewhat working, but a few things:

 

1. How do I change the caption, its just showing a number, not sure where its getting that from.

2. How do I set things up to have larger images, do I need an additional contribution.

3. The http://www.huddletogether.com/projects/lightbox2 shows an image set - is this possible with OSC.

4. The loading.gif is not running.

 

Site is http://www.supercanvas.com.

 

Thanks in advance for you time.

Belinda

Share this post


Link to post
Share on other sites
Hi - Just installed as per instructions. It is somewhat working, but a few things:

 

1. How do I change the caption, its just showing a number, not sure where its getting that from.

2. How do I set things up to have larger images, do I need an additional contribution.

3. The http://www.huddletogether.com/projects/lightbox2 shows an image set - is this possible with OSC.

4. The loading.gif is not running.

 

Site is http://www.supercanvas.com.

 

Thanks in advance for you time.

Belinda

 

Hello Belinda,

 

I'm not sure but maybe this will help...

 

At http://www.lokeshdhakar.com/projects/lightbox2/ it says..

 

Part 2 - Activate

 

1. Add a rel="lightbox" attribute to any link tag to activate the lightbox. For example:

 

<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>

 

Optional: Use the title attribute if you want to show a caption.

 

so I think the .css is the place to look for.

I can't say anything to your other questions.. i started playing with that Contrib 1 hour ago ;)

 

Achim

 

 

@ tractormad: Thank you very much for your effort, this is brilliant contrib! I don't know anything about php

but this one is so easy... THANX

Share this post


Link to post
Share on other sites

Well, now it's my time to pose a question.

 

I don't use any multiple image contrib in my shop. But I would like to show several

pictures within the lightbox gallery. Is this possible and if, how?

I got Lightbox already working but I don't know how to config it right.

And... I don't know anything about .php or .js :blush: .

 

Could someone help me please?

 

Achim

Share this post


Link to post
Share on other sites

This is just a little confusing:

 

DO YOU MEAN REPLACE:

 

<script language="javascript"><!--

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($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">' . 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>

 

 

WITH THIS:

 

<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>

 

 

 

Because when I do this I lose the image and the "Click to Enlarge" Text on product_info.php all together

Share this post


Link to post
Share on other sites

I would like to know how to use this on the product listing page instead of on the product info page. I have found the lines that display the images but have failed to successfully edit them to pop up the image instead of forwarding to the product info page. The items in my store don't need a product info page if the picture can display and I would really like to get this working. Also, I am using CRE Loaded so my code may be a bit different than normal.

 

Image section of product_listing_col.php:

case 'PRODUCT_LIST_IMAGE':
		$lc_align = 'center';
		if (isset($HTTP_GET_VARS['manufacturers_id'])) {
		  $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing[$x]['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing[$x]['products_image'], $listing[$x]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
		} else {
		  $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing[$x]['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing[$x]['products_image'], $listing[$x]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> ';
		}
		break;

 

 

 

I have spent over an hour playing with this line and cannot figure it out. $25 PayPal to whoever can help me get this working.

Aim: Lnsomniax

ICQ: 156814

Yahoo: Lnsomniax

MSN: freak_matrix@hotmail.com

 

Thanks!

Edited by xaltid

Share this post


Link to post
Share on other sites

Hello,

 

I just installed this contribution which is great, but there is a problem :

 

The image called close.gif doesn't appear on the box in order to close it. Then, when I click on the broken image, a vertical srollbar appears and it doesn't close the popup. I must click one time again in order to close it...

 

What's up ? :blink:

 

Thank you...

Share this post


Link to post
Share on other sites
Hello,

 

I just installed this contribution which is great, but there is a problem :

 

The image called close.gif doesn't appear on the box in order to close it. Then, when I click on the broken image, a vertical srollbar appears and it doesn't close the popup. I must click one time again in order to close it...

 

What's up ? :blink:

 

Thank you...

 

Ok !

 

I solved one problem... I had to set manualy the path of the image on line 327 in lightbox.js. By default, on the original file, the path starts from your catalog folder but the rest of the url is broken. So set it manually if you have the same problem.

 

But, but, but...

 

I tried to use a bigger image in order to see if it would solve the problem of the scrollbar, but not. I must still click two times in order to close the popup

Share this post


Link to post
Share on other sites
Well, now it's my time to pose a question.

 

I don't use any multiple image contrib in my shop. But I would like to show several

pictures within the lightbox gallery. Is this possible and if, how?

I got Lightbox already working but I don't know how to config it right.

And... I don't know anything about .php or .js :blush: .

 

Could someone help me please?

 

Achim

 

 

I'm with Achim on this one. Do I need a multiple image contrib? Can anyone recommend one that will work with the lightbox? I'm comfortable with PHP and JS, so I don't mind having to tweak my original files to get this working.

Share this post


Link to post
Share on other sites
Just in case anyone is having the same problem that i reported a few posts before this ive now figured it out so here is the code

 

<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>

<!--  // begin extra images  -->
<tr>
<td align="center"><?php
for ($i=1; $i<=NUM_EXTRA_IMAGES; $i++) {
$ls_fieldname = "products_image_".$i;
if (tep_not_null($product_info[$ls_fieldname])) {
echo '<a href="#" onclick="popupWindow(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'imgID='. $i .'&pID=' . $product_info['products_id']) . '\'); return false;">' . tep_image(DIR_WS_IMAGES . $product_info[$ls_fieldname], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a><br />'; 
} // end if
} // end for
?></td>
</tr>	
<!--  // end extra images  -->

 

I cannot figure out what goes wrong since my php knowledge is very poor.... I know there has been some modifications made in the popup_image.php as well, but since the first image works fine, i figured it has to be in the additional code for the 'extraimage' contrib.

Anyone with more knowlegde then me? Any help would be appreciated!


Life is good...... but not for me ;-)

Al Bundy

Share this post


Link to post
Share on other sites
I have the contrib called Oscextraimages installed and the lightbox feature works well with the original image. However when i click on one of the additional images is get a pop-up window to open in a very small size and no image to display.

Try adding rel="lightbox" to the tep_href_link of the extra image


Outside links in signatures are not allowed!

Share this post


Link to post
Share on other sites
Try adding rel="lightbox" to the tep_href_link of the extra image

 

It seems there are quite a few users who have installed lightbox, but dont currently have a multiple-images contribution install. It would be great if someone could suggest a suitable contrib which can be installed AFTER this one, and include instructions and a demo site.

Share this post


Link to post
Share on other sites

That would be something for future users! Indeed a good idea.

Meanwhile i still don't know where to put the code (rel="lightbox") as suggested by Tomcat ... anyone?

 

Thnx for your reply by the way ;)

Edited by Larskovitch

Life is good...... but not for me ;-)

Al Bundy

Share this post


Link to post
Share on other sites
That would be something for future users! Indeed a good idea.

Meanwhile i still don't know where to put the code (rel="lightbox") as suggested by Tomcat ... anyone?

 

Thnx for your reply by the way ;)

 

It should look like this:

<div class="imagebox"> <img src="path/to your image" width="" height="" alt="" class="imagebox"><a href="path/to your image" rel="lightbox" title="this will appear as a caption">click to enlarge</a></div>

Share this post


Link to post
Share on other sites
It should look like this:

<div class="imagebox"> <img src="path/to your image" width="" height="" alt="" class="imagebox"><a href="path/to your image" rel="lightbox" title="this will appear as a caption">click to enlarge</a></div>

Note: the above link is for a NON-PHP file. Sorry if I gave you some misinformation...

Share this post


Link to post
Share on other sites
Note: the above link is for a NON-PHP file. Sorry if I gave you some misinformation...

 

 

Okay, well chipset, the intentions are good ;)

About my specific problem: I am having trouble to let the extra images appear in the saame "lightbox way" as my primary image. The code below results in a empty pop-up box. not completely empty, but with a red X as the image doesn't appear. Let me post the code again to point out what i exactely mean:

<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><!--  // begin extra images  --><tr><td align="center"><?phpfor ($i=1; $i<=NUM_EXTRA_IMAGES; $i++) {$ls_fieldname = "products_image_".$i;if (tep_not_null($product_info[$ls_fieldname])) {echo '<a href="#" onclick="popupWindow(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'imgID='. $i .'&pID=' . $product_info['products_id']) . '\'); return false;">' . tep_image(DIR_WS_IMAGES . $product_info[$ls_fieldname], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a><br />'; } // end if} // end for?></td></tr>	<!--  // end extra images  -->

 

So where do i put the rel="lightbox" piece exactely for the extra images?


Life is good...... but not for me ;-)

Al Bundy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×