Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ultrapics + Lightbox 2.03.3


albertsavage

Recommended Posts

I have uploaded the it again and the images are now is is displaying in a coloum and the lightboz is still not working. The site is at www.thinkpink.ie/catalog. iT IS DRIVING ME MAD, I THINK I HAVE FOLLOWED ALL YOUR INSTRUCTIONS.

 

mmuf100.

 

Couple of things.

 

1. Did you put the 3 folders from lightbox on your server under /catalog/?

 

I don't believe you did. I checked its existence, and it appears that js and the images are there, but css is not. It requires that lightbox css be in the right locaion..

 

Re-read my original post, and you'll see the "First off" portion describes what to put where. images/ js/ and /css should just be copied to your catalog folder. There are some demo pictures in the images/ folder, and you can delete those.

 

2. Your images that you're testing with are quite large. Remember that lightbox will not kick in until the entire page has loaded. That's the nature of lakesh's development and consistent with noninvasive javascript functionalities. Most particularly, that's the reason for going with Ultrapics. The small images are supposed to be thumbnails. I'm confident you know that, but it makes it hard to test if the page loads very slowly.

 

Good luck

Edited by albertsavage
Link to comment
Share on other sites

  • Replies 98
  • Created
  • Last Reply

Top Posters In This Topic

Hi Albert,

 

Many thhanks for taking the time to look at this code. I uploaded a folder called css that contained the css file.

 

Still no luck. I also uploaded small images but they are still displaying a a pop up image.

 

Any ideas?

 

thanks

 

michael

Link to comment
Share on other sites

Hi Albert,

 

Many thhanks for taking the time to look at this code. I uploaded a folder called css that contained the css file.

 

Still no luck. I also uploaded small images but they are still displaying a a pop up image.

 

Any ideas?

 

thanks

 

michael

 

Try by posting up your product_info.php and additional_images.php files and I'll take a look when I get a moment.

 

Albert

Link to comment
Share on other sites

Hi Albert,

 

I am still plugging way at this. What I did was added the Light Box, uploaded the folders. It worked fine with one image ie is displayed in the lightbox. I then upladed all the ultrapics files. It then displayed the images but the link to enlarge image/popupis now not working.

 

I have a feeling it is only something small I have pasted my product_info.php and additional imagesfiles belowfile below if this will help you to tell me why I am so stupid with this implementation...

 

<?php

/*

$Id: product_info.php,v 1.98 2003/09/02 18:52:33 project3000 Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

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

 

$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);

?>

<!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 TITLE; ?></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=no,res

izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le

ft=150')

}

//--></script>

<?php /*Added for lightbox */ ?><script type="text/javascript" src="js/prototype.js"></script><script type="text/javascript" src="js/scriptaculous.js?load=effects"></script><script type="text/javascript" src="js/lightbox.js"></script><link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" ><?php /*End of Added 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="2" class="infoBox">

<tr class="infoBoxContents">

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

// BOF MaxiDVD: Modified For Ultimate Images Pack!

$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, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, 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 . "'");

// EOF MaxiDVD: Modified For Ultimate Images Pack!

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

 

<?php

// BOF MaxiDVD: Modified For Ultimate Images Pack!

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

echo tep_image(DIR_WS_IMAGES . $product_info['products_image_med'], addslashes($product_info['products_name']), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT, 'hspace="0" vspace="5"');

} elseif (($product_info['products_image_med'] == '') && ($product_info['products_image_lrg'] == '')) {

echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="1" vspace="1"');

} else {

?>

<?php if (($product_info['products_image_lrg'] !='') && ($product_info['products_image_med'] !='')) { ?><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_lrg']) . '" rel="lightbox[product]" title="' . $product_info['products_name'] . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_med'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?><?php } elseif (($product_info['products_image_lrg'] =='') && ($product_info['products_image_med'] !='')) { ?><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_med']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_med'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?><?php } elseif (($product_info['products_image_lrg'] !='') && ($product_info['products_image'] !='')) { ?><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_lrg']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?><?php } elseif (($product_info['products_image_med'] =='') && ($product_info['products_image_lrg'] =='')) { ?><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>';} ?>

<?php

}

// EOF MaxiDVD: Modified For Ultimate Images Pack!

?>

 

 

 

</td>

</tr>

</table>

<?php

}

?>

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

<?php

// BOF MaxiDVD: Modified For Ultimate Images Pack!

if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') { include(DIR_WS_MODULES . 'additional_images.php'); }

// BOF MaxiDVD: Modified For Ultimate Images Pack!

; ?>

<?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 . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_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="2" class="infoBox">

<tr class="infoBoxContents">

<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 . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

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

 

AdditionalImages

 

 

<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! // -->

<tr>

<td><table width="100%">

<tr>

 

<?php

if (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_xl_1'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_1'] != '') && ($product_info['products_image_sm_1'] != '')) {

?>

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

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

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=1') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');

//--></script>

<noscript>

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_1']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>

</noscript>

</td>

<?php

} elseif

(($products_info['products_image_sm_1'] == '') && ($product_info['products_image_xl_1'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_1'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

<?php

if (($product_info['products_image_sm_2'] != '') && ($product_info['products_image_xl_2'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_2'] != '') && ($product_info['products_image_sm_2'] != '')) {

?>

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

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

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=2') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');

//--></script>

<noscript>

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_2']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>

</noscript>

</td>

<?php

} elseif

(($products_info['products_image_sm_2'] == '') && ($product_info['products_image_xl_2'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_2'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

<?php

if (($product_info['products_image_sm_3'] != '') && ($product_info['products_image_xl_3'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_3'] != '') && ($product_info['products_image_sm_3'] != '')) {

?>

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

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

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=3') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');

//--></script>

<noscript>

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_3']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>

</noscript>

</td>

<?php

} elseif

(($products_info['products_image_sm_3'] == '') && ($product_info['products_image_xl_3'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_3'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

 

</tr>

<tr>

 

 

<?php

if (($product_info['products_image_sm_4'] != '') && ($product_info['products_image_xl_4'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_4'] != '') && ($product_info['products_image_sm_4'] != '')) {

?>

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

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

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=4') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');

//--></script>

<noscript>

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_4']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>

</noscript>

</td>

<?php

} elseif

(($products_info['products_image_sm_4'] == '') && ($product_info['products_image_xl_4'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_4'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

 

<?php

if (($product_info['products_image_sm_5'] != '') && ($product_info['products_image_xl_5'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_5'] != '') && ($product_info['products_image_sm_5'] != '')) {

?>

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

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

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=5') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');

//--></script>

<noscript>

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_5']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>

</noscript>

</td>

<?php

} elseif

(($products_info['products_image_sm_5'] == '') && ($product_info['products_image_xl_5'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_5'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

 

<?php

if (($product_info['products_image_sm_6'] != '') && ($product_info['products_image_xl_6'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_6'] != '') && ($product_info['products_image_sm_6'] != '')) {

?>

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

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

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=6') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');

//--></script>

<noscript>

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_6']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>

</noscript>

</td>

<?php

} elseif

(($products_info['products_image_sm_6'] == '') && ($product_info['products_image_xl_6'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_6'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

 

</tr>

</table></td>

</tr>

<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! // -->

Link to comment
Share on other sites

Hi Albert,

 

I reset my whole OS commerce site.

 

I am doign the following:

 

1) Uploading LightBOx folders as you said

 

At this stage it then lets me preview the only image there via the lightbox

 

 

2) Uploading the Ultrapics contributuon

 

 

At this stage it I can see all the Pictures but there are no popup boxes or ligthbox popups

 

Am I missing a step along the way

Link to comment
Share on other sites

Hi Albert,

 

I reset my whole OS commerce site.

 

I am doign the following:

 

1) Uploading LightBOx folders as you said

 

At this stage it then lets me preview the only image there via the lightbox

2) Uploading the Ultrapics contributuon

At this stage it I can see all the Pictures but there are no popup boxes or ligthbox popups

 

Am I missing a step along the way

 

Mike,

 

Just checked your site, and it appears to be working properly! Good job.

 

Sometimes starting over makes it the easiest.

 

I noticed 2 more things:

1. Your next and previous buttons don't appear. The images move, but they don't have a visual hover cue. Not sure why that would happen. You might ask someone on the huddletogether forum.

2. The product information using the "title" tag does not appear to be working. Check my files to see how I implemented them (see the most recent files I put up, as these are the best example)

 

Finally... I think you took my advice about small images too much to heart. I think some of your images are like 50px by 50px. What a hoot to see the machine try to handle that with the lightbox.

 

Anyway, good luck with the site. It'll look great when you're done.

Link to comment
Share on other sites

Mike,

 

Just checked your site, and it appears to be working properly! Good job.

 

Sometimes starting over makes it the easiest.

 

I noticed 2 more things:

1. Your next and previous buttons don't appear. The images move, but they don't have a visual hover cue. Not sure why that would happen. You might ask someone on the huddletogether forum.

2. The product information using the "title" tag does not appear to be working. Check my files to see how I implemented them (see the most recent files I put up, as these are the best example)

 

Finally... I think you took my advice about small images too much to heart. I think some of your images are like 50px by 50px. What a hoot to see the machine try to handle that with the lightbox.

 

Anyway, good luck with the site. It'll look great when you're done.

I also encounter Issue 1...-_- If solved pls tell me the method:)

Link to comment
Share on other sites

I also encounter Issue 1...-_- If solved pls tell me the method:)

 

Michael,

 

There are several possible causes:

 

1. You don't have multiple pics. You need to have more than one pic for that product (should be self explanatory, but meh...)

2. You haven't done the proper grouping. Make sure each of your rel=lightbox looks like this rel="lightbox[product]". This should occur about 4 times on your product_info.php file and 6 times in your additional_images.php file. Without that, if it just says rel="lightbox", then it won't group them together. you'll know because it'll say "Image X of Y" in the description portion of the lightbox.

3. You made changes to the javascript or the CSS. (I don't presume that's the case here).

4. Your host provider doesn't support all of the functions of the lightbox (always possible)

 

Post a link to your shop if you can't figure it out and I'll take a look at it. Feel free to put your code in a codebox (please post it in a codebox to save space on the page).

 

Albert Savage

Link to comment
Share on other sites

Michael,

 

There are several possible causes:

 

1. You don't have multiple pics. You need to have more than one pic for that product (should be self explanatory, but meh...)

2. You haven't done the proper grouping. Make sure each of your rel=lightbox looks like this rel="lightbox[product]". This should occur about 4 times on your product_info.php file and 6 times in your additional_images.php file. Without that, if it just says rel="lightbox", then it won't group them together. you'll know because it'll say "Image X of Y" in the description portion of the lightbox.

3. You made changes to the javascript or the CSS. (I don't presume that's the case here).

4. Your host provider doesn't support all of the functions of the lightbox (always possible)

 

Post a link to your shop if you can't figure it out and I'll take a look at it. Feel free to put your code in a codebox (please post it in a codebox to save space on the page).

 

Albert Savage

Thanks for u dig:) I have four pics added and lightbox[product] all there, css and js files untouched. Maybe the fourth? I'll check later.

 

Now I focus on SEO and paypal. My site http://www.olymready.com, I hate the domain I choose. Refer to ur previous post, it is not a good one. I submit to google and yahoo anyway.

 

One more problem want to ask u:)

 

1. I put the site in the ../cart/catalog for I want to make the store of part of the site. But now I know STS template can do this, I can add any page and information to index.php. Is it necessary to move the cart to root? Now I direction www.olymready.com to .../catalog.

 

2. Maybe it's a SEO related question I should post in other thread. For the search engine need months to list my site and more time to got high rank. A pay-per-click needed?

Coz XXIX Olympiad will hold half one year, it's urgent to push the site out. I'll appreciate any advise of u :)

Link to comment
Share on other sites

This is a great mod. Two small things that I have noticed (I don't know if anyone else has noticed this as well). When I click on the first image for the first time, it won't diplay a title. But if I click on any of the other images it will diplay the title in those images. and then If I click prev to go back to one it will display the title. Or if I close the pop up and then click on the first image again it will show the title.

 

The next thing I've noticed this doesn't work for the review products. I don't think this code is set under the review products at all. Has anyone else noticed this. I'm not sure if this is due to the fact that I have a template over top. I've had to fix one small error that this template was having besides this, so I don't know for sure.

 

Thanks again for the mod, this makes the store a thousand times nicer.

Link to comment
Share on other sites

Thanks for u dig:) I have four pics added and lightbox[product] all there, css and js files untouched. Maybe the fourth? I'll check later.

 

Now I focus on SEO and paypal. My site http://www.olymready.com, I hate the domain I choose. Refer to ur previous post, it is not a good one. I submit to google and yahoo anyway.

 

One more problem want to ask u:)

 

1. I put the site in the ../cart/catalog for I want to make the store of part of the site. But now I know STS template can do this, I can add any page and information to index.php. Is it necessary to move the cart to root? Now I direction www.olymready.com to .../catalog.

 

2. Maybe it's a SEO related question I should post in other thread. For the search engine need months to list my site and more time to got high rank. A pay-per-click needed?

Coz XXIX Olympiad will hold half one year, it's urgent to push the site out. I'll appreciate any advise of u :)

 

The problem with the next/prev buttons may be caused by the installation of the cart in its location, but I haven't got a clue (it really shouldn't act that way). As a last-ditch effort, you could change the relative location of these images in the CSS file from:

 

#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }

 

and change ../images/nextlabel.gif to www.olymready.com/cart/catalog/images/nextlabel.gif and the same for prevlabel.gif.

 

Other than that, I would follow up at the forum over at huddletogether to see if someone else has had that happen. Perhaps it has something to do with your webserver? I'm not sure what would cause the lightbox set to work, but not the prev/next images to show up.

 

As far as SEO, one of your best bets is to create a sitemap and place it in your root. The location of your cart is only a nuisance for you, but not going to affect its searchability. Make sure you have a robots.txt to tell spiders where not to go. Go to google webmaster tools and claim your site and make sure they know where your sitemap is. There is a "contribution" that just links into a site that will create a sitemap for your site. GoDaddy does that for us when we request one.

 

I use SEO Ultimate URLS, and have really liked it. it was a simple mod and has paid off in spades. We are #1 in google for "baby jewelry" because of it. Good luck on yours.

 

I wouldn't use a pay-per-click, as many people ignore the ads. Best thing is to get other related sites (blogs, etc.) to link to your shop. We use give-aways and things like that (gotta spend money to make money) to get people to write reviews about the products. The highest profile blogs and sites linking to yours will get your search further up.

Link to comment
Share on other sites

This is a great mod. Two small things that I have noticed (I don't know if anyone else has noticed this as well). When I click on the first image for the first time, it won't diplay a title. But if I click on any of the other images it will diplay the title in those images. and then If I click prev to go back to one it will display the title. Or if I close the pop up and then click on the first image again it will show the title.

 

The next thing I've noticed this doesn't work for the review products. I don't think this code is set under the review products at all. Has anyone else noticed this. I'm not sure if this is due to the fact that I have a template over top. I've had to fix one small error that this template was having besides this, so I don't know for sure.

 

Thanks again for the mod, this makes the store a thousand times nicer.

 

Jason,

 

First thing: this is related to your product_info.php file not having title defined properly in each of the possible locations. Post your file up here if you can't figure out where it should be.

 

Second thing: I don't use products_review.php ... I have disabled people from putting in reviews. It'd be great if you'd like to post a solution to it if you get it figured out. I personally have no desire to do it. Might be different if someone paid me. I have a motivation problem when doing it for free.

Link to comment
Share on other sites

I agree with you on the motivation. I really only posted to see if anyone had a solution already. I agree the reviews are not that important. Especially to have multiple pictures is completely not needed. Although having that one picture work only with the lightbox mod, would be nice. As it would complete the cart to that function. I will have a look at that when I get some free time. I have reviewed my product_info and have come to a blank. I had to modify a little code to get it to work with this template that I have. If you can offer any help that would be great. Thanks

 

 

<?php
/*
 $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

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

 $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);
?>
<!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 TITLE; ?></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=no,res
izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le
ft=150')
}
//--></script>
<?php /*Added for lightbox */ ?>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" >
<?php /*End of Added 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="0" cellpadding="0">
 <tr>
   <td class="col_left">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </td>
<!-- body_text //-->
   <td width="100%" class="col_center"><?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>
<? tep_draw_heading_top(); ?>

	<?php echo tep_draw_title_top();?>

				<?php echo TEXT_PRODUCT_NOT_FOUND;?>

	<?php echo tep_draw_title_bottom();?>

<? tep_draw_heading_top_1(); ?>				  



	<!-- 
	<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
	  	<td> 
		-->
			<br style="line-height:1px;"><br style="line-height:12px;">

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


<? tep_draw_heading_bottom_1(); ?>

<? tep_draw_heading_bottom(); ?>

<?php
 } else {
//BOF UltraPics
//BOF Original
/*
   $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 . "'");
*/
//EOF Original
   $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, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, 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 . "'");
//EOF UltraPics
   $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>

<? tep_draw_heading_top(); ?>

<?php echo tep_draw_title_top();?>

		<?php echo $breadcrumb->trail(' » ')?> 

<?php echo tep_draw_title_bottom();?>	


<? tep_draw_heading_top_1(); ?>	
<? /*  tep_draw_heading_top_2();  */?>		


<?php
   if (tep_not_null($product_info['products_image'])) {
?>
											<table cellspacing="0" cellpadding="0" border="0" class="product">
												<tr><td>
														<table cellspacing="0" cellpadding="0" border="0">
															<tr><td height="100%">
	<table cellpadding="0" cellspacing="0" border="0" align="left" class="prod_info" style="border-right:15px solid #e9e9e9;border-left:0px solid #ffffff;">
		<tr><td align="center">
<?php
if ($product_info['products_image_med']!='') {
$new_image = $product_info['products_image_med'];
$image_width = MEDIUM_IMAGE_WIDTH;
$image_height = MEDIUM_IMAGE_HEIGHT;
} else {
$new_image = $product_info['products_image'];
$image_width = SMALL_IMAGE_WIDTH;
$image_height = SMALL_IMAGE_HEIGHT;}?>

<?php if (($product_info['products_image_lrg'] !='') && ($product_info['products_image_med'] !='')) { ?>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_lrg']) . '" rel="lightbox[product]" title="' . $product_info['products_name'] . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_med'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
<?php } elseif (($product_info['products_image_lrg'] =='') && ($product_info['products_image_med'] !='')) { ?>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_med']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_med'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
<?php } elseif (($product_info['products_image_lrg'] !='') && ($product_info['products_image'] !='')) { ?>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_lrg']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
<?php } elseif (($product_info['products_image_med'] =='') && ($product_info['products_image_lrg'] =='')) { ?>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>';} ?>
<!--BOF UltraPics-->
<?php
if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') include(DIR_WS_MODULES . 'additional_images.php');
?> 
<!--EOF UltraPics-->
		</td></tr>
	</table>
	<table cellpadding="0" cellspacing="0" border="0">
		<tr><td style="vertical-align:middle; height:28px;"><em><?php echo $products_name; ?></em></td></tr>
	</table>

<div class="padd3"><?php echo stripslashes($product_info['products_description']); ?>
<br><br style="line-height:11px"><span class="productSpecialPrice"><?php echo $products_price?></span></div>																	

															   </td></tr>

														</table>
													</td>
												</tr>
											</table>
<?php
   }
?>
<? /*  tep_draw_heading_bottom_2();  */?>
			  <table cellspacing="0" cellpadding="0" border="0" align="center">
			   <tr><td height="5"></td></tr>
			   <tr><td height="1" ><?php echo tep_draw_separator('spacer.gif', '1', '1'); ?></td></tr>
			   <tr><td height="5"></td></tr>
			  </table>	
<? tep_draw_heading_top_2();?>

<?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 cellpadding="0" cellspacing="0" class="box_width_cont product">
											<tr><td height="25" colspan="2"><strong><?php echo TEXT_PRODUCT_OPTIONS; ?></strong></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>
		<tr><td height="10" colspan="2"></td></tr>
<?php
     }
?>
         </table>
<?php
   }
?>

<?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) {
?>
					<table cellpadding="0" cellspacing="0" class="product box_width_cont">
						<tr><td class="line_h"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td></tr>
						<tr><td height="17"></td></tr>
					</table>
<?php
   }

   if (tep_not_null($product_info['products_url'])) {
?>
					<table cellpadding="0" cellspacing="0" class="product box_width_cont">
						<tr><td class="line_h"><?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 height="17"></td></tr>
					</table>
<?php
   }

   if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
?>
					<table cellpadding="0" cellspacing="0" class="product box_width_cont">
						<tr><td class="line_h"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td></tr>
						<tr><td height="17"></td></tr>
					</table>
<?php
   } else {
?>
					<table cellpadding="0" cellspacing="0" class="product box_width_cont">
						<tr><td class="line_h"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td></tr>
						<tr><td height="17"></td></tr>
					</table>
<?php
   }
?>
	<!-- 
	<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents"><td>
		 -->
		<table border="0" width="100%" cellspacing="0" cellpadding="0" class="product box_width_cont">
             <tr>
               <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>'; ?><?php echo tep_draw_separator('spacer.gif', '15', '1'); ?><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_add_to_cart1.gif', IMAGE_BUTTON_IN_CART); ?></td>
             </tr>
           </table><br style="line-height:1px;"><br style="line-height:10px;">
		<!-- 
		</td></tr>
       </table>
		 -->
<? tep_draw_heading_bottom_2();?>

<? tep_draw_heading_bottom_1(); ?>

<?php tep_draw_heading_bottom();?>	

<?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 class="col_right">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //--></body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Link to comment
Share on other sites

The problem with the next/prev buttons may be caused by the installation of the cart in its location, but I haven't got a clue (it really shouldn't act that way). As a last-ditch effort, you could change the relative location of these images in the CSS file from:

 

#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }

 

and change ../images/nextlabel.gif to www.olymready.com/cart/catalog/images/nextlabel.gif and the same for prevlabel.gif.

 

Other than that, I would follow up at the forum over at huddletogether to see if someone else has had that happen. Perhaps it has something to do with your webserver? I'm not sure what would cause the lightbox set to work, but not the prev/next images to show up.

 

As far as SEO, one of your best bets is to create a sitemap and place it in your root. The location of your cart is only a nuisance for you, but not going to affect its searchability. Make sure you have a robots.txt to tell spiders where not to go. Go to google webmaster tools and claim your site and make sure they know where your sitemap is. There is a "contribution" that just links into a site that will create a sitemap for your site. GoDaddy does that for us when we request one.

 

I use SEO Ultimate URLS, and have really liked it. it was a simple mod and has paid off in spades. We are #1 in google for "baby jewelry" because of it. Good luck on yours.

 

I wouldn't use a pay-per-click, as many people ignore the ads. Best thing is to get other related sites (blogs, etc.) to link to your shop. We use give-aways and things like that (gotta spend money to make money) to get people to write reviews about the products. The highest profile blogs and sites linking to yours will get your search further up.

Admire u:) for the lightbox issue, I changed the path and it works! Great! I will arrange u a homestay if u come to Beijing in 2008 for the XXIX Olympiad^_^

 

And I changed the entire catalog from cart to root. It worked at last even I encounter database in a mess for I refer to Zencart's moving way, try to reinstall the cart. The experiment is to move the folder and modify the two configure.php. Simple but I walked a zigzag way:)

 

The next step, I want to integrate STS. It's seemed that I should use the contribution for Ultrapics and lightbox. But one question, should I create a index file in root? Since STS modify the index.php in its template folder only and www.olyready.com can't point to it unless make a redirection. I have visited ur site. You organized them well.

 

PS: You are a mother of two babies, right? A off the track topic:) :thumbsup: Hold a site and a expert of OSC and bring-up two babies...

Link to comment
Share on other sites

Admire u:) for the lightbox issue, I changed the path and it works! Great! I will arrange u a homestay if u come to Beijing in 2008 for the XXIX Olympiad^_^

 

And I changed the entire catalog from cart to root. It worked at last even I encounter database in a mess for I refer to Zencart's moving way, try to reinstall the cart. The experiment is to move the folder and modify the two configure.php. Simple but I walked a zigzag way:)

 

The next step, I want to integrate STS. It's seemed that I should use the contribution for Ultrapics and lightbox. But one question, should I create a index file in root? Since STS modify the index.php in its template folder only and www.olyready.com can't point to it unless make a redirection. I have visited ur site. You organized them well.

 

PS: You are a mother of two babies, right? A off the track topic:) :thumbsup: Hold a site and a expert of OSC and bring-up two babies...

 

well, I'm the father... my wife is the one with the hard job. Unfortunately, no trips to Beijing are in the cards. Thanks for the invite.

 

I haven't used STS. Personally, I wanted pages that look differently (product page only has 2 columns, while other pages have 3, etc) We considered STS at one point, as well as perhaps having a professionally developed site may be in the cards in the future. We have heavily modified our OSC site at this point with all of the contributions, so our next step would be a big one. Let me know how you like STS.

 

I created a secure testsite using the method you describe (copying folders and changing configure files). Just keep in mind that if you use fixed file references (www.yoursite.com/catalog/etc), you need to remember those if you make a copy, as opposed to a referenced location (../catalog/etc).

 

Thanks for the compliments to the site. It's not perfect, but nothing ever is.

Link to comment
Share on other sites

Thanks Albert Savage. It seemed to work great. I loaded it in firefox, now it displayed the title the first time it popped up. I then tried it in IE7 and it also worked. Then I noticed the following error message in IE7:

Line: 10

Char: 108

Error: unterminated string constant

Code: 0

 

I fixed the same error, or one just like it before. Located else where in this page. Although now I can't. I know this is due to the fact that this template is from TM. Anyhow thanks again. I think this mod is by far the best addition so far for multiple pic's. I think when I have some time, I will work on the review section, as the plain lightbox mod should work easily (well if the code is the same anyhow).

Link to comment
Share on other sites

Thanks Albert Savage. It seemed to work great. I loaded it in firefox, now it displayed the title the first time it popped up. I then tried it in IE7 and it also worked. Then I noticed the following error message in IE7:

Line: 10

Char: 108

Error: unterminated string constant

Code: 0

 

I fixed the same error, or one just like it before. Located else where in this page. Although now I can't. I know this is due to the fact that this template is from TM. Anyhow thanks again. I think this mod is by far the best addition so far for multiple pic's. I think when I have some time, I will work on the review section, as the plain lightbox mod should work easily (well if the code is the same anyhow).

 

Sounds like an HTML problem... you should look at the source in IE7 and find out what is on line 10, char 108 and fix that. If you had a site, I'd take a look at it when I had a moment.

Link to comment
Share on other sites

Thank you so much for your GREAT contribution. I am not a programmer, but your directions were very clear and everything worked to perfection, it is exactly what I was looking for. I do have one simple question that hopefully someone can answer for me.

 

I only want one image and one +enlarge button to show on the product information page to keep it tidy. I tried to hack it by using a 1 pixel image in the TEXT_PRODUCTS_IMAGE_SM_1 through TEXT_PRODUCTS_IMAGE_SM_5 slots in admin, but the +enlarge buttons (5 of them) are still showing below the medium image. I have tried to change the product_info file, but I really don't know what I am doing!! Please help.

 

Thanks in Advance

Belinda

Link to comment
Share on other sites

Thank you so much for your GREAT contribution. I am not a programmer, but your directions were very clear and everything worked to perfection, it is exactly what I was looking for. I do have one simple question that hopefully someone can answer for me.

 

I only want one image and one +enlarge button to show on the product information page to keep it tidy. I tried to hack it by using a 1 pixel image in the TEXT_PRODUCTS_IMAGE_SM_1 through TEXT_PRODUCTS_IMAGE_SM_5 slots in admin, but the +enlarge buttons (5 of them) are still showing below the medium image. I have tried to change the product_info file, but I really don't know what I am doing!! Please help.

 

Thanks in Advance

Belinda

Belinda,

 

What you want to do is actually in the additional_images.php file if I understand you correctly.

 

In that file there are 6 instances of:

. tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) 

 

Delete those 6 instances (and as always keep a backup of your original file), and you should see those click to enlarge pictures disappear. You can also get rid of the preceding BR tags if there is too much space being taken up.

Link to comment
Share on other sites

Belinda,

 

What you want to do is actually in the additional_images.php file if I understand you correctly.

 

In that file there are 6 instances of:

. tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) 

 

Delete those 6 instances (and as always keep a backup of your original file), and you should see those click to enlarge pictures disappear. You can also get rid of the preceding BR tags if there is too much space being taken up.

 

Hi Albert,

 

The text is gone, but there is all this white space making the page very long. When I put my mouse over the white space it seems like there are images there. Below is my additional_images code, and a link to one of the test products that shows the white space. When I uploaded images to Ultrapics I used a 1 pixel gif for each small image in the hope that they wouldn't show on the page. The large images are showing up in LightBox which is what I want. I only want one medium image to show on the following page. http://www.mysticbog.com/product_info.php?...products_id=338 which it does at the top.

 

Sorry to be a pain, but I am almost finished the site and will be ready to launch as soon as I get this working and put REAL product images on it:-)

 

Thanks in Advance

 

Beinda

 

<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! //-->

<tr>

<td><table width="100%">

<tr>

 

<?php

if (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_xl_1'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_1'] != '') && ($product_info['products_image_sm_1'] != '')) {

?>

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

 

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_1']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '</a>'; ?>

</td>

<?php

} elseif

(($products_info['products_image_sm_1'] == '') && ($product_info['products_image_xl_1'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_1'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

</tr>

<tr>

 

<?php

if (($product_info['products_image_sm_2'] != '') && ($product_info['products_image_xl_2'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_2'] != '') && ($product_info['products_image_sm_2'] != '')) {

?>

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

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_2']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '</a>'; ?>

</td>

<?php

} elseif

(($products_info['products_image_sm_2'] == '') && ($product_info['products_image_xl_2'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_2'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

</tr>

<tr>

 

<?php

if (($product_info['products_image_sm_3'] != '') && ($product_info['products_image_xl_3'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_3'] != '') && ($product_info['products_image_sm_3'] != '')) {

?>

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

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_3']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '</a>'; ?>

</td>

<?php

} elseif

(($products_info['products_image_sm_3'] == '') && ($product_info['products_image_xl_3'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_3'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

 

</tr>

<tr>

 

 

<?php

if (($product_info['products_image_sm_4'] != '') && ($product_info['products_image_xl_4'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_4'] != '') && ($product_info['products_image_sm_4'] != '')) {

?>

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

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_4']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '</a>'; ?>

</td>

<?php

} elseif

(($products_info['products_image_sm_4'] == '') && ($product_info['products_image_xl_4'] != '')) {

?>

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

 

</td>

<?php

}

?>

 

</tr>

<tr>

 

 

 

<?php

if (($product_info['products_image_sm_5'] != '') && ($product_info['products_image_xl_5'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_5'] != '') && ($product_info['products_image_sm_5'] != '')) {

?>

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

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_5']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') .'</a>'; ?>

</td>

<?php

} elseif

(($products_info['products_image_sm_5'] == '') && ($product_info['products_image_xl_5'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_5'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

</tr>

<tr>

 

 

 

<?php

if (($product_info['products_image_sm_6'] != '') && ($product_info['products_image_xl_6'] == '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

} elseif

(($product_info['products_image_sm_6'] != '') && ($product_info['products_image_sm_6'] != '')) {

?>

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

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_6']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '</a>'; ?>

</td>

<?php

} elseif

(($products_info['products_image_sm_6'] == '') && ($product_info['products_image_xl_6'] != '')) {

?>

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

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_6'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>

</td>

<?php

}

?>

 

 

</tr>

</table></td>

</tr>

<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! //-->

Link to comment
Share on other sites

Hi Albert,

 

The text is gone, but there is all this white space making the page very long. When I put my mouse over the white space it seems like there are images there. Below is my additional_images code, and a link to one of the test products that shows the white space. When I uploaded images to Ultrapics I used a 1 pixel gif for each small image in the hope that they wouldn't show on the page. The large images are showing up in LightBox which is what I want. I only want one medium image to show on the following page. http://www.mysticbog.com/product_info.php?...products_id=338 which it does at the top.

 

Sorry to be a pain, but I am almost finished the site and will be ready to launch as soon as I get this working and put REAL product images on it:-)

 

Thanks in Advance

 

Beinda

 

First thing's first... use a codebox when posting your code. It makes it easier to copy and review your code, as well as makes sure there are no errors when I post it back to you.

 

I think that what you're trying to do is make the additional thumbs disappear, right?

 

I'm not sure exactly how all of the variables work, but you could try this as a code hack:

 

Replace all "ULT_THUMB_IMAGE_WIDTH" with "1" and replace all "ULT_THUMB_IMAGE_HEIGHT" with "1" as well.

 

Essentially, I think that should make your thumbs near to nothing. I'm not sure what would happen if you replaced it with 0, but that might be worth it as well... no spaces or anything, just hidden pictures. What you were doing was good because it helps the page load faster, but the admin controls the display of the small pictures on the page to whatever the admin size is. Alternatively to changing to code (a hack), you could try changing the size in admin (image sizes), but I'm not sure where else these might be used. There's more than one way to skin this cat for sure.

 

What you're trying to do changes the dynamics a little bit, but it's a neat idea. I looked at it and it worked well, just there's all of that dead space as you said.

 

OK, since I wrote this, I would try things in this order:

 

1. Change it in admin to see how it impacts your site. I think this is the "additional thumb width" and "additional thumb height" options. (I'm worried this also impacts the first image, but hopefully not), so proceed to #2 if it doesn't work.

2. Hack the file and replace with 0's.

3. Hack the file and replace with 1's.

 

There are several variants on this approach, I just listed the most straightforward. There are literally about 10 different ways you could use admin/hack to get it to be right.

 

Good luck

Edited by albertsavage
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...