Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multiple Product Images With Slide Show


Guest

Recommended Posts

yes I did.. from beginning to end.. and I just went over it to no avail.

any ideas.. before I completely remove the slide show.. it would be cool but I don't know enough about the actual code to know what is going on..

does anyone out there know..

thank you in advance

noppie

Link to comment
Share on other sites

Let's get a look at your product_info.php code (use codebox tags, please). Cacn you also post the full names of the images you have loaded up for this product. :)

 

This Contribution is dying here:

 

function imageCopyResize($image, $xSize, $ySize, $needed_user_factor, $new_image_path = "", $returnOnlyImgRef = false)
   {
   	if(!function_exists('ImageCreateFromGif') || !function_exists('ImageGif')){
   		return false;
   	}
        //example: neded_user_factor = 0.2
        if($xSize == 0 || $ySize == 0)
          die("[b]At the leat one pair of size is 0[/b]");

jon

It's all just ones and zeros....

Link to comment
Share on other sites

Thank you for your help

and here is the name of the images

comic-book2.jpg

comic-books.jpg

COMICS3.jpg

 

and below is the code for the product_info.php

 

 

 

 

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

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);
// BEGIN: Added for Make An Offer
  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_MAKE_AN_OFFER);
  // END: Added for Make An Offer
// 	bof added by [email protected] for auction product contribution 
		  require(DIR_WS_LANGUAGES . $language . '/' . 'auctions.php');

			if (isset($_POST['placebid']) ) {

				$products_id = $_POST['products_id'];
				$bid_price = $_POST['bid_price'];
				$auction_id = $_POST['auction_id'];

				if ( tep_session_is_registered('customer_id') ) {


							$customers_id = (int)$customer_id;

							$sql_auction = 'select auctions_bids_id, bid_price from '.TABLE_AUCTIONS_BIDS ." where auctions_id='".						$auction_id."' and customers_id='$customers_id'";
							if (!tep_db_num_rows(tep_db_query($sql_auction)) ) {

											  $sql_auction = 'insert into '.TABLE_AUCTIONS_BIDS." (auctions_bids_id, auctions_id, customers_id, bid_price, bid_status, bid_date_added ) values('', '$auction_id', '$customers_id', '$bid_price', '', now()) ";

									tep_db_query($sql_auction);				
							} else { // auction existed 

								$exist_auction = tep_db_fetch_array(tep_db_query($sql_auction));
								if ( ($exist_auction['bid_status']!='won')&& ($exist_auction['bid_price']<$bid_price) ){

									$sql_auction = 'update '.TABLE_AUCTIONS_BIDS." set auctions_id='$auction_id',bid_price= '$bid_price', bid_date_added= 'now()' where auctions_id='$auction_id' and customers_id='$customers_id'";		
									tep_db_query($sql_auction);		
								} else {
									echo ' New price of bid must be more than your last bidding price!!';
								}

							}

		// send email notify about higher bid than the other customer's bid who won
							$sql_customer = 'select customers_lastname, customers_firstname,customers_email_address from '. TABLE_CUSTOMERS." c,". TABLE_AUCTIONS_BIDS." ab  where c.customers_id=ab.customers_id and ab.auctions_id= '$auction_id' and ab.bid_price<".(int)$bid_price." and ab.bid_status='won'";					
							$acustomer_query = tep_db_query($sql_customer);

							while ($acustomer = tep_db_fetch_array($acustomer_query)) {

								$acustomer_firstname = $acustomer['customer_firstname'];
								$acustomer_lastname = $acustomer['customers_lastname'];
								$acustomer_email = $acustomer['customers_email_address'];
								$acustomer_name = $customer_firstname .' '.$customer_lastname;
								$auction_url = tep_href_link(FILENAME_PRODUCT_INFO,'products_id='.$auction_id);

								$email_text = str_replace('[customer_firstname]',$acustomer_firstname,str_replace('[customer_lastname]',$acustomer_lastname,str_replace('[customer_email]',$acustomer_email,str_replace('[auction_name]',$auction_name,str_replace('[auction_url]',$auction_url,str_replace('[bid_price]',$bid_price,AUCTION_HIGHER_BID_NOTIFY_EMAIL))))));

								tep_mail($acustomer_name, $acustomer_email, AUCTION_HIGHER_BID_NOTIFY_EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

							}

							tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO,'products_id='.$products_id));

					} else {

		//					$navigation->set_snapshot();
							tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
					}				
			}

		// 	eof added by [email protected] for auction product contribution   


 $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')
}
<!-- BOF AUCTIONS CONTRIB
function rowOverEffect(object) {
 if (document.checkout_confirmation.elements[object].parentNode.parentNode.className != 'moduleRowSelected') {
document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowOver';
 }
}

function rowOutEffect(object) {
 if (document.checkout_confirmation.elements[object].checked) {
document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowSelected';
 } else {
document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'infoBoxContents';
 }
}

function checkboxRowEffect(object) {
 document.checkout_confirmation.elements[object].checked = !document.checkout_confirmation.elements[object].checked;
 if(document.checkout_confirmation.elements[object].checked) {
document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowSelected';
 } else {
document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowOver';
 }
}

function check_agree(TheForm) {
 if (TheForm.agree.checked) {
return true;
 } else {
alert(unescape('<?php echo CONDITION_AGREEMENT_ERROR; ?>'));
return false;
 }
}
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
// EOF AUCIONTS CONTRIB -->
//--></script>
</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 {
$product_info_query = tep_db_query("select  p.products_slide_images, p.products_id, pd.products_name, pd.products_description, p.products_model,p.products_make_an_offer,
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 . "'");

 // 	bof added by [email protected] for auction product contribution 
		$auction_price = tep_get_products_auction_price($product_info['products_id']);
		$auction_product = false;
		if (!$auction_price) {
	// 	eof added by [email protected] for auction product contribution 
					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']));
					}
	// 	bof added by [email protected] for auction product contribution 
		} else {
			$products_price	= $currencies->display_price($auction_price, tep_get_tax_rate($product_info['products_tax_class_id']));
			$auction_product = true;

			$sql_auction = 'select auctions_id from '.TABLE_AUCTIONS_PRODUCTS." where products_id='".$product_info['products_id']."'";
			$auction_info = tep_db_fetch_array(tep_db_query($sql_auction));
			$auction_id = $auction_info['auctions_id'];

		}
	// 	eof added by [email protected] for auction product contribution 


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>

		<!-- bof added by [email protected] for auction product contribution -->

		<?php
		 if ($auction_product) { 	  ?>
		  <tr><td class="stockWarning"><?php echo TEXT_AUCTION_PRODUCT_TITLE; ?></td></tr>
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
		  </tr>	  
		<?php } // end if 
		?>	  
		<!-- eof added by [email protected] for auction product contribution -->
  <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">
//<!-- fancy product images slide show hack START -->
<?php
$slideFiles = explode(';',$product_info['products_slide_images']);
$slideFilesCount = count($slideFiles);
$sOut = '';
$cleaned = array();

for($sCount=0;$sCount<$slideFilesCount;$sCount++){
if(trim($slideFiles[$sCount] != '')){
	$cleaned[] = $slideFiles[$sCount]; // cleaning if there is a name missing
}
}

$cleanedCount = count($cleaned);

$sOut .= 'var slideList = new Array('.$cleanedCount.');'."\n";
$sOut .= 'var slideListOriginal = new Array('.$cleanedCount.');'."\n";

flushOldCachedImages();

for($sCount=0;$sCount<$cleanedCount;$sCount++){

$fileToResize = DIR_FS_CATALOG . DIR_WS_IMAGES . $cleaned[$sCount];
$resizedImageResult = resizeImage($fileToResize,SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$resizedImage = $resizedImageResult[0];
$resizedImageWidth = $resizedImageResult[1];
$resizedImageHeight = $resizedImageResult[2];

$sOut .= 'slideList['.$sCount.'] = "'.$resizedImage.'";'."\n";
$sOut .= 'slideListOriginal['.$sCount.'] = "'.DIR_WS_IMAGES . $cleaned[$sCount].'";'."\n";
}

echo '<script>'.$sOut.'</script>';

$fileToResize = DIR_FS_CATALOG . DIR_WS_IMAGES . $product_info['products_image'];
$resizedImageResult = resizeImage($fileToResize,SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$resizedImage = $resizedImageResult[0];
$resizedImageWidth = $resizedImageResult[1];
$resizedImageHeight = $resizedImageResult[2];
?>
<?php echo '<a href="java script:popupWindow(\''. tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\')"><span id="slidePanel">' . tep_image($resizedImage, addslashes($product_info['products_name']), $resizedImageWidth, $resizedImageHeight, 'hspace="5" vspace="5"') . '</span></a><br />' ?>

<script type="text/javascript">
<!--

var slideStation = 0;
var headImage = "<?=$resizedImage?>";
var fadeSpeed = 1000;
var slideImage = headImage;
var slideImageOriginal = "<?=DIR_WS_IMAGES . $product_info['products_image']?>";

setInterval(runSlideShow,3000);

function slideFader(){

	if(slideStation == slideList.length){
		slideStation = -1;
		slideImage = headImage;
		slideImageOriginal = "<?=DIR_WS_IMAGES . $product_info['products_image']?>";
	}else{
		slideImage = slideList[slideStation];
		slideImageOriginal = slideListOriginal[slideStation];
	}

	sPanel = document.getElementById("slidePanel");		
	sPanel.innerHTML = "<img src='"+slideImage+"' hspace='5' vspace='5'/>";
	slideStation++; 
}

function runSlideShow(){
	setTimeout(slideFader,1000);
}

function getActiveSlideImage(){
	return slideImageOriginal;
}
-->
</script>
<?=TEXT_CLICK_TO_ENLARGE;?>
<!-- fancy product images slide show hack END -->

</noscript>
		  </td>
		</tr>
	  </table>
<?php
}
?>
	  <p><?php echo stripslashes($product_info['products_description']); ?></p>
<div ALIGN="center"><table border="0" width="75%" cellspacing="0" cellpadding="2">
  <?php if ((MAO_ACCEPT_OFFER_DIRECTLY == 'true') && ($product_info['products_make_an_offer'] == true)) { ?>
  <tr><td align="center" class="maooffer"><?php echo ENTRY_NEW_PRICE; ?><br>
  <input name='newpriceoffer' type='text' value='<?php echo tep_round($newpriceoffer,$currencies->currencies[$currency]['decimal_places']); ?>' MAXLENGTH='15' SIZE='10'><br><?php echo ' ' . $currency; ?></td></tr>
  <?php
  }
  if (tep_session_is_registered('mao_low_offer')) {
	 echo '<tr><td class="maolowoffer">' . ENTRY_LOW_OFFER_CHECK_ERROR . '</td></tr>';
	 tep_session_unregister('mao_low_offer');
  }
  ?>
  </table></div><br>

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

<!-- //bof moved from bellow by [email protected] for auction product contribution 	-->
		<?php if ($auction_product) { ?>
		</form>	
		<?php
			}
		?>
		<!-- eof moved from bellow by [email protected] for auction product contribution -->

			<?php
			//bof added by [email protected] for auction product contribution
							//rewriten by MarcusDesign
				if ($auction_product) {
					include_once(DIR_WS_MODULES.'/auction_bids.php');
									} else {
							?>
								  <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>
 <?php
  if ($product_info['products_make_an_offer'] == true) {
  ?>
  <td class="main" align="right">
  <?php if (MAO_ACCEPT_OFFER_DIRECTLY == 'false') { ?>
	 <?php echo '<a href="' . tep_href_link(FILENAME_MAKE_AN_OFFER, tep_get_all_get_params()) . '">' . tep_image_button('button_make_an_offer.gif', IMAGE_BUTTON_MAKE_AN_OFFER) . '</a>'; ?>
  <?php
  }
  ?>
  </td>
  <?php
  }
  ?> 

<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>
							<?php
			  }
							//eof added by [email protected] for auction product contribution	
			?>	 

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

<!-- bof changed  by [email protected] for auction product contribution	-->

			<?php if  ($auction_product) {
						echo tep_draw_hidden_field('products_id', $product_info['products_id']);
				  } else {
						  echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); 
					}
			?>
			<!-- eof changed  by [email protected] for auction product contribution	-->		
			</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 //-->
</table>
			<!-- //bof moved to above by [email protected] for auction product contribution -->	
			<?php if (!$auction_product) { ?>
			</form>	
			<?php
				}
			?>

			<!--	//eof moved to above by [email protected] for auction product contribution -->

			</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'); ?>

Link to comment
Share on other sites

You've missed the first part of step 7 (at your line 180). Let's call that 7a.

You took too much out for the second part of step 7. Let's call that 7b.

 

Before you review step 7a though, you need to put some code back in that you deleted in error:

 

At your line 328-9, where you see </noscript>, highlight that and replace it with following:

 

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

That takes care of 7b. Now go take care of 7a. :)

 

Let me know how you get on.

 

jon

It's all just ones and zeros....

Link to comment
Share on other sites

I did what you told me and I still got the error. so I just removed the hacks will add one of the extra pictures

 

Thank you for your time.

noppie

Link to comment
Share on other sites

  • 11 months later...
  • 1 year later...

I too am getting a blank page, with the same error. I want to understand the source of the error, and I would really like to get this addon working for my site.

 

What should I look for? I verified that the codes was exactly as specified....twice

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