Jump to content
Sign in to follow this  
Farrukh

[Contribution] Header Tags Controller for Admin MS 2.2

Recommended Posts

That is usually because the includes/header_tags.php or english/header_tags.php file is corrupted somehow. Try replacing yours with the ones in the contribution to see if that fixes it.

 

Jack

Share this post


Link to post
Share on other sites

Hi, Jack,

 

I might need you help again. I have installed all files. From admin section everything looks allright. but I could not load modified code of root/index.php and admin/categories.php. They will break the site, and I have checked those two codes no errors found. I think It may caouse that I used Basic Oscommerce Template from G. Burton. When I installed modified index.php, my site dos not have the new title "Home page" just have a symbole "//" at the top left coner, also the template frame and color broken. Would you mind have a look the codes of index.php I modified, the lines that should be replaced are just commented out by using "//". You may find how to make changes.

 

Thanks,

 

Charles

 

 <?php
/*
 $Id: index.php,v 1.1 2003/06/11 17:37:59 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');

// the following cPath references come from application_top.php
 $category_depth = 'top';
 if (isset($cPath) && tep_not_null($cPath)) {
$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$cateqories_products = tep_db_fetch_array($categories_products_query);
if ($cateqories_products['total'] > 0) {
  $category_depth = 'products'; // display products
} else {
  $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");
  $category_parent = tep_db_fetch_array($category_parent_query);
  if ($category_parent['total'] > 0) {
	$category_depth = 'nested'; // navigate through the categories
  } else {
	$category_depth = 'products'; // category has no products, but display the 'no products' message
  }
}
 }

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
?>
<!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>
<?php
// BOF: Header Tag Controller v2.6.0
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
 require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?> 
 <title><?php echo TITLE; ?></title>
<?php
}
// EOF: Header Tag Controller v2.6.0
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="file:///C|/header_tags%20backupfiles/stylesheet.css">
</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 //-->
<?php
//  if ($category_depth == 'nested') {
//   $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
if ($category_depth == 'nested') {
$category_query = tep_db_query("select cd.categories_name, c.categories_image, cd.categories_htc_title_tag, cd.categories_htc_description from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);
?>
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>

//			<td class="pageHeading"><?php echo HEADING_TITLE . ' ' . tep_get_categories_name($current_category_id); ?></td>
//		   <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
//		 </tr>
	   <td><h1><?php echo $category['categories_htc_title_tag']; ?></h1></td>
	   <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	   <?php if (tep_not_null($category['categories_htc_description'])) { ?> 
	  <tr>
	   <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
	  <tr>
	   <td><h2><?php echo $category['categories_htc_description']; ?></h2></td>
	  </tr>
	  <?php } ?>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
<?php
if (isset($cPath) && strpos('_', $cPath)) {
// check to see if there are deeper categories within the current category
  $category_links = array_reverse($cPath_array);
  for($i=0, $n=sizeof($category_links); $i<$n; $i++) {
	$categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");
	$categories = tep_db_fetch_array($categories_query);
	if ($categories['total'] < 1) {
	  // do nothing, go through the loop
	} else {
	  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
	  break; // we've found the deepest category the customer is in
	}
  }
} else {
  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
}

$number_of_categories = tep_db_num_rows($categories_query);

$rows = 0;
while ($categories = tep_db_fetch_array($categories_query)) {
  $rows++;
  $cPath_new = tep_get_path($categories['categories_id']);
  $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
  echo '				<td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";
  if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
	echo '			  </tr>' . "\n";
	echo '			  <tr>' . "\n";
  }
}

// needed for the new products module shown below
$new_products_category_id = $current_category_id;
?>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
	  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>
	</table></td>
  </tr>
</table></td>
<?php
 } elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {
// create column list
$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
					 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
					 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
					 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
					 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
					 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
					 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,
					 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

asort($define_list);

$column_list = array();
reset($define_list);
while (list($key, $value) = each($define_list)) {
  if ($value > 0) $column_list[] = $key;
}

$select_column_list = '';

for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
  switch ($column_list[$i]) {
	case 'PRODUCT_LIST_MODEL':
	  $select_column_list .= 'p.products_model, ';
	  break;
	case 'PRODUCT_LIST_NAME':
	  $select_column_list .= 'pd.products_name, ';
	  break;
	case 'PRODUCT_LIST_MANUFACTURER':
	  $select_column_list .= 'm.manufacturers_name, ';
	  break;
	case 'PRODUCT_LIST_QUANTITY':
	  $select_column_list .= 'p.products_quantity, ';
	  break;
	case 'PRODUCT_LIST_IMAGE':
	  $select_column_list .= 'p.products_image, ';
	  break;
	case 'PRODUCT_LIST_WEIGHT':
	  $select_column_list .= 'p.products_weight, ';
	  break;
  }
}

// show the products of a specified manufacturer
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
  if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
// We are asked to show only a specific category
	$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "'";
  } else {
// We show them all
	$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'";
  }
} else {
// show the products in a given categorie
  if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
// We are asked to show only specific catgeory
	$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";
  } else {
// We show them all
	$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";
  }
}

if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {
  for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
	if ($column_list[$i] == 'PRODUCT_LIST_NAME') {
	  $HTTP_GET_VARS['sort'] = $i+1 . 'a';
	  $listing_sql .= " order by pd.products_name";
	  break;
	}
  }
} else {
  $sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);
  $sort_order = substr($HTTP_GET_VARS['sort'], 1);
  $listing_sql .= ' order by ';
  switch ($column_list[$sort_col-1]) {
	case 'PRODUCT_LIST_MODEL':
	  $listing_sql .= "p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_NAME':
	  $listing_sql .= "pd.products_name " . ($sort_order == 'd' ? 'desc' : '');
	  break;
	case 'PRODUCT_LIST_MANUFACTURER':
	  $listing_sql .= "m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_QUANTITY':
	  $listing_sql .= "p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_IMAGE':
	  $listing_sql .= "pd.products_name";
	  break;
	case 'PRODUCT_LIST_WEIGHT':
	  $listing_sql .= "p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_PRICE':
	  $listing_sql .= "final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
  }
}
//?>
//   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 //	<tr>
  //	 <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
//	  <tr>

//		<td class="pageHeading"><?php echo HEADING_TITLE . ' ' . tep_get_categories_name($current_category_id); ?></td>
  if (isset($HTTP_GET_VARS['manufacturers_id'])) 
  $db_query = tep_db_query("select manufacturers_htc_title_tag as htc_title, manufacturers_htc_description as htc_description from " . TABLE_MANUFACTURERS_INFO . " where languages_id = '" . (int)$languages_id . "' and manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
else 
  $db_query = tep_db_query("select categories_htc_title_tag as htc_title, categories_htc_description as htc_description from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' and language_id = '" . (int)$languages_id . "'");

$htc = tep_db_fetch_array($db_query);
?>
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td><h1><?php echo $htc['htc_title']; ?></h1></td>

<?php
// optional Product List Filter
if (PRODUCT_LIST_FILTER > 0) {
  if (isset($HTTP_GET_VARS['manufacturers_id'])) {
	$filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name";
  } else {
	$filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name";
  }
  $filterlist_query = tep_db_query($filterlist_sql);
  if (tep_db_num_rows($filterlist_query) > 1) {
	echo '			<td align="center" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' ';
	if (isset($HTTP_GET_VARS['manufacturers_id'])) {
	  echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']);
	  $options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));
	} else {
	  echo tep_draw_hidden_field('cPath', $cPath);
	  $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));
	}
	echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']);
	while ($filterlist = tep_db_fetch_array($filterlist_query)) {
	  $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']);
	}
	echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"');
	echo '</form></td>' . "\n";
  }
}

// Get the right image for the top-right
$image = DIR_WS_IMAGES . 'table_background_list.gif';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
  $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
  $image = tep_db_fetch_array($image);
  $image = $image['manufacturers_image'];
} elseif ($current_category_id) {
  $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
  $image = tep_db_fetch_array($image);
  $image = $image['categories_image'];
}
?>
		//<td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  //</tr>
	  <td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, $category['categories_htc_title_tag'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>		   
	  <?php if (tep_not_null($htc['htc_description'])) { ?> 
	  <tr>
	   <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
	  <tr>
	   <td colspan="2"><h2><?php echo $htc['htc_description']; ?></h2></td>
	  </tr>
	  <?php } ?>

	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td>
  </tr>
</table></td>
<?php
 } else { // default page
?>
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>

		<td class="pageHeading"><?php echo HEADING_TITLE . ' ' . tep_get_categories_name($current_category_id); ?></td>
		<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="main"><?php echo tep_customer_greeting(); ?></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo TEXT_MAIN; ?></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
	  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>
<?php
include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);
?>
	</table></td>
  </tr>
</table></td>
<?php
 }
?>
<!-- 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'); ?>

Share this post


Link to post
Share on other sites
You shouldn't be getting that kind of error on that file. Try replacing it with the one in the archive.

 

Jack

 

 

Geez I feel like a twit, but I'm gonna ask anyway.

 

When you refer to the "one in the archive" do you mean the header_tags.php file that came in the header tags.zip file? If so that is the one I am using.

Or is this "archive" you talk about somewhere else? :'(

 

Thanks

Share this post


Link to post
Share on other sites
Hi, Jack,

 

I might need you help again. I have installed all files. From admin section everything looks allright. but I could not load modified code of root/index.php and admin/categories.php. They will break the site, and I have checked those two codes no errors found. I think It may caouse that I used Basic Oscommerce Template from G. Burton. When I installed modified index.php, my site dos not have the new title "Home page" just have a symbole "//" at the top left coner, also the template frame and color broken. Would you mind have a look the codes of index.php I modified, the lines that should be replaced are just commented out by using "//". You may find how to make changes.

BTS doesn't use the index file like a non-bts system does. You have to edit the main_page.tpl.php file.

 

Jack

Share this post


Link to post
Share on other sites

Hi everybody,

 

I'm having trouble and I have only a small clue as to what may have caused it. I have installed HTC 2.6.2 some time ago and everything was working great, including the Fill Tags, Text Control, and Page Control showing in column_left.php. Now the links for these are gone!

 

 

It has been a few weeks at least since I last ran the Fill Tags option and during that time I had to restore the database from a backup (this backup was from after installing HTC). I also deleted several hundred products and re-created them using an Easy Populate text file.

 

I have not installed any other contributions or tweaked any code where HTC is involved as far as I know. This is what my admin/header_tags_controller.php page looks like in Admin. The Fill Tags, Page Control, and Text Control are simply missing from the left side.

 

Can anyone offer any clue as to where I might start to look at what's causing this?

 

It appears that all the tags are showing in the browser source, but that might be from before? I'm so confused now? Can someone please offer some advice and/or guidance?

 

Thank you.


We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Share this post


Link to post
Share on other sites

There is one line of code that goes in the admin/includes/column_left.php file. That must have been removed somehow.

 

Jack

Share this post


Link to post
Share on other sites
BTS doesn't use the index file like a non-bts system does. You have to edit the main_page.tpl.php file.

 

Jack

Jack:

Thanks to point out BTS not working with HTC. Because I am not good at the whole system of OSc and php coding as well, I can not find the main_page.tpl.php file and don't know how to change it . If too much trouble with coding, I may give up BTS and back to non-BTS system cause I really like your guy's HTC.

 

Thanks

 

Charles

Share this post


Link to post
Share on other sites
Jack:

Thanks to point out BTS not working with HTC. Because I am not good at the whole system of OSc and php coding as well, I can not find the main_page.tpl.php file and don't know how to change it . If too much trouble with coding, I may give up BTS and back to non-BTS system cause I really like your guy's HTC.

 

Thanks

 

Charles

Sorry, Jack,

My site is not BTS after I compared with BTSV1.5f files. , that is why I could not find the main_page.tpl.php files. The followings is what I installed

On a budget ?
Want to easily alter the look of your Oscommerce
Milestone 2 (MS2) ?
Look no further than this Graphical Upgrade.

All you need to do is install a new copy of MS2 (NOT CVS version),
then overwrite a few files with those included in this
.zip package! Easy!

The following files only have been altered:
~ stylesheet.css 
~ /includes/header.php 
~ /includes/footer.php 
~ /includes/application_top.php 
~ /includes/boxes/{most files}.php 
~ /includes/classes/boxes.php 

Additional files:
~ New Logo - includes the PSD (photoshop) file 
~ New browny/yellow background for the "infoboxes" header area 

This graphic upgrade should not be a problem to install over any
MS2 (non CVS) - even if you have added contributions. However, we
insist that you backup all files before doing so in case of
problems. We provide no support for any problems you may encounter.

On a base install of MS2, this graphical upgrade is less than 2
minutes work! Stand out from the crowd at a price that will suit
your pocket. But remember, we provide no Technical Support - so
make sure to backup first!

INSTALL INSTRUCTIONS:
1.  BACKUP all your files
2.  Install MS2.
3.  Overwrite the files in the installation with those provided
in this .zip
4.  Enjoy your New Shop look!

NOTES:
1.  We provide NO Technical Support
2.  You are responsible for any damage to your Store caused as
a result of your use or misuse of the files in this .zip

IMPORTANT NOTE FOR USERS OF STORES THAT ARE NOT 2.2MS2:
If you are using any version other than 2.2MS2 (for example 2.1,
2.2, 2.2CVS-MS2 etc etc), this contribution may not work.  This
is because of a number of changes made to function names.
I have noticed that this contribution does not work "out of the 
box" on 2.2CVS-MS2 as the breadcrumb has changed.  DO NOT EMAIL
ME ABOUT THIS.  Fix it yourself!

LEGAL:
1.  Graphics and Logo are Copyright www.oscommerce-templates.co.uk
but are GPL.

EXTRA:
1.  Please feel free to check out my Template site at:
www.oscommerce-templates.co.uk
for a variety of Stores, Templates and other Oscommerce Services.
2.  If you feel that this is worth a donation, please feel free
to Paypal Donate to payments@summer.org.uk
3.  To save hundreds of $$££$$ on Search Engine Optimisation, 
visit http://www.summer.org.uk
4.  Please email to me the URL of where your Store is.  I'd love
to see this template in action!

There was no change in index.php at all.

 

Thanks,

 

Charles

Share this post


Link to post
Share on other sites
Hi Again

Sorry no it didn't work.

Pauline

 

 

Hi Again

All up and running I think(don't want to speak to soon). I need to update all info and check it out. One question I have is, I have changed all the titles in Admin but can't find allprods at the location of the other files.

I would also like to say thank you for all your help.

Pauline

Share this post


Link to post
Share on other sites
There is one line of code that goes in the admin/includes/column_left.php file. That must have been removed somehow.

 

Jack

 

Thanks Jack, but that doesn't seem to be the problem. I've compared the HTC admin/includes/column_left.php and mine and there is only one difference. Here's mine...

 

<?php
/*
 $Id: column_left.php,v 1.15 2002/01/11 05:03:25 hpdl Exp $

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

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 require(DIR_WS_BOXES . 'configuration.php');
 require(DIR_WS_BOXES . 'catalog.php');
 require(DIR_WS_BOXES . 'modules.php');
 require(DIR_WS_BOXES . 'customers.php');
 require(DIR_WS_BOXES . 'taxes.php');
 require(DIR_WS_BOXES . 'localization.php');
 require(DIR_WS_BOXES . 'reports.php');
 require(DIR_WS_BOXES . 'tools.php');
 require(DIR_WS_BOXES . 'header_tags_controller.php');
//Feeder Systems
require(DIR_WS_BOXES . 'feeders.php');
?>

 

I wonder if you or anyone else might have any other suggestions? This is a really weird thing...


We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Share this post


Link to post
Share on other sites

Hi, All,

 

Anyone can suggest that which program can use to compare and merge a php code ?

 

Thanks,

Charles

Share this post


Link to post
Share on other sites
Hi, All,

 

Anyone can suggest that which program can use to compare and merge a php code ?

 

Thanks,

Charles

 

 

I've heard people suggest this one quite often, http://winmerge.org/


We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Share this post


Link to post
Share on other sites
Hi, All,

 

Anyone can suggest that which program can use to compare and merge a php code ?

 

Thanks,

Charles

I started out using WinMerge because it was "free" but later migrated to Beyond Compare.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Share this post


Link to post
Share on other sites
Sorry, Jack,

My site is not BTS after I compared with BTSV1.5f files. , that is why I could not find the main_page.tpl.php files. The followings is what I installed

On a budget ?I'm not familiar with that package so I can't suggest how to fix the problem. However, it does change the application_top file which Header Tags also changes so maybe you ovewrote that change?

 

Jack

Share this post


Link to post
Share on other sites
Hi Again

All up and running I think(don't want to speak to soon). I need to update all info and check it out. One question I have is, I have changed all the titles in Admin but can't find allprods at the location of the other files.

I would also like to say thank you for all your help.

Pauline

Your'e welcome. :) The All Products files are not present. That is a separate contribuiton (All Products with Images). The code for it is included for historical reasons as well as for the fact that many sites end up installing it. So you can just ignore that section unless you decide to install that contribution.

 

Jack

Share this post


Link to post
Share on other sites
Thanks Jack, but that doesn't seem to be the problem. I've compared the HTC admin/includes/column_left.php and mine and there is only one difference. Here's mine...

I wonder if you or anyone else might have any other suggestions? This is a really weird thing...

There's not a lot that can go wrong there. If the code is in the left_column file, which it is, then the files should display. If you are using a contribution like Admin Access, which it doesn't appear to be, then that can hide it until it is enabled. Other than that, I can't think of a reason why it isn't showing.

 

Jack

Share this post


Link to post
Share on other sites
Geez I feel like a twit, but I'm gonna ask anyway.

 

When you refer to the "one in the archive" do you mean the header_tags.php file that came in the header tags.zip file? If so that is the one I am using.

Or is this "archive" you talk about somewhere else? :'(

 

Thanks

 

Hi Jack

Like I said I was being a twit, I wasn't extracting the files out of the zip file properly and it wasn't showing me the sub-folders. So I'll try it again the proper way. >_<

 

Just a quick question - I have not loaded any other contributions to my site but the site is already active and working, can I use the instalation from the catalog_for_new_shop_only?

 

Thanks

Shannon

Share this post


Link to post
Share on other sites

Yes, you can. But the changes in Install_Catalog.txt will still need to be made.

 

Jack

Share this post


Link to post
Share on other sites
Your'e welcome. :) The All Products files are not present. That is a separate contribuiton (All Products with Images). The code for it is included for historical reasons as well as for the fact that many sites end up installing it. So you can just ignore that section unless you decide to install that contribution.

 

Jack

 

Thanks again. I thought I was going blind. Hardly suprising the amount of code and files I have been scanning the last few days and half the night! I have made a note of that contribution. It looks pretty good. I am thinking of installing ultimate seo. ( I think that's what its called).

Pauline

Share this post


Link to post
Share on other sites
Hi Jack

 

I've been away for a few days and have just started to try this again.

It seems I am having the similar problem as Paulined.

 

When I add the header_tags.php file to the catalog/includes/function/header_tags.php

I get the following error:

Fatal error: Cannot redeclare changeswitch() (previously declared

I ran into this problem on a site that is using the admin access contribution. That might be what is causing it. In any event, the fix is to change this line in admin/header_tags_controller.php and admin/header_tags_english.php
require('includes/functions/header_tags.php');

to thjs

require_once('includes/functions/header_tags.php');

 

Jack

Share this post


Link to post
Share on other sites

hi there,

 

i have installed the header tag, and it works well. i got a question regarding the output from includes/header_tags.php.

 

it outputs this meta tag in the head section, it is hard-coded in the file:

 

<meta name="robots" content="noodp" />

 

can any one explain to me what the "noodp" does or what it means in that meta tag? cuz when i look up meta tag robots, it should contain text, such as: all, index, follow, none, etc. thanks in advance.

Share this post


Link to post
Share on other sites

It's a special case meta tags the search engines just started using in the last year or two. If your site is listed with DMoz, odds are that the description for it has been edited because DMoz editors are told to do that. So the description for a page in the search engine listings may not appear even close to the way you want it to. That tag tells the search engines to use your description tag (or at least the text from the page) instead of using the DMoz description. If your site is not listed with DMoz, the tag is ignored.

 

Jack

Share this post


Link to post
Share on other sites

Hi guys, this thing is great, I am having 1 problem though.

 

I use

 

Category Descriptions MS2 1.9

 

This means I am unable to use the Header tags description/keywords for my categories :(

 

the Category Descriptions MS2 1.9 contribution launches a new page for category description input how can I add the header tages function to it

This is the code that launches in the new page :

 

  //----- new_category / edit_category (when ALLOW_CATEGORY_DESCRIPTIONS is 'true') -----
 if ($HTTP_GET_VARS['action'] == 'new_category_ACD' || $HTTP_GET_VARS['action'] == 'edit_category_ACD') {
if ( ($HTTP_GET_VARS['cID']) && (!$HTTP_POST_VARS) ) {
  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, cd.categories_heading_title, cd.categories_description, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $HTTP_GET_VARS['cID'] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "' order by c.sort_order, cd.categories_name");
  $category = tep_db_fetch_array($categories_query);

  $cInfo = new objectInfo($category);
} elseif ($HTTP_POST_VARS) {
  $cInfo = new objectInfo($HTTP_POST_VARS);
  $categories_name = $HTTP_POST_VARS['categories_name'];
  $categories_heading_title = $HTTP_POST_VARS['categories_heading_title'];
  $categories_description = $HTTP_POST_VARS['categories_description'];
  $categories_url = $HTTP_POST_VARS['categories_url'];
  } else {
  $cInfo = new objectInfo(array());
}

$languages = tep_get_languages();

$text_new_or_edit = ($HTTP_GET_VARS['action']=='new_category_ACD') ? TEXT_INFO_HEADING_NEW_CATEGORY : TEXT_INFO_HEADING_EDIT_CATEGORY;
?>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo sprintf($text_new_or_edit, tep_output_generated_category_path($current_category_id)); ?></td>
		<td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  </tr>
  <tr><?php echo tep_draw_form('new_category', FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $HTTP_GET_VARS['cID'] . '&action=new_category_preview', 'post', 'enctype="multipart/form-data"'); ?>
	<td><table border="0" cellspacing="0" cellpadding="2">
<?php
for ($i=0; $i<sizeof($languages); $i++) {
?>
	  <tr>
		<td class="main"><?php if ($i == 0) echo TEXT_EDIT_CATEGORIES_NAME; ?></td>
		<td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', (($categories_name[$languages[$i]['id']]) ? stripslashes($categories_name[$languages[$i]['id']]) : tep_get_category_name($cInfo->categories_id, $languages[$i]['id']))); ?></td>
	  </tr>
<?php
}
?>
	 <tr>
	   <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
	 </tr>
<?php
for ($i=0; $i<sizeof($languages); $i++) {
?>
	  <tr>
		<td class="main"><?php if ($i == 0) echo TEXT_EDIT_CATEGORIES_HEADING_TITLE; ?></td>
		<td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_heading_title[' . $languages[$i]['id'] . ']', (($categories_name[$languages[$i]['id']]) ? stripslashes($categories_name[$languages[$i]['id']]) : tep_get_category_heading_title($cInfo->categories_id, $languages[$i]['id']))); ?></td>
	  </tr>
<?php
}
?>
	  <tr>
		<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
	  </tr>
<?php
for ($i=0; $i<sizeof($languages); $i++) {
?>
	  <tr>
		<td class="main" valign="top"><?php if ($i == 0) echo TEXT_EDIT_CATEGORIES_DESCRIPTION; ?></td>
		<td><table border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="main" valign="top"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
			<td class="main"><?php echo tep_draw_textarea_field('categories_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (($categories_description[$languages[$i]['id']]) ? stripslashes($categories_description[$languages[$i]['id']]) : tep_get_category_description($cInfo->categories_id, $languages[$i]['id']))); ?></td>
		  </tr>
		</table></td>
	  </tr>
<?php
}
?>
	  <tr>
		<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
	  </tr>
	  <tr>
	  <tr>
		<td class="main"><?php echo TEXT_EDIT_CATEGORIES_IMAGE; ?></td>
		<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('categories_image') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $cInfo->categories_image . tep_draw_hidden_field('categories_previous_image', $cInfo->categories_image); ?></td>
	  </tr>
	  <tr>
		<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo TEXT_EDIT_SORT_ORDER; ?></td>
		<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"'); ?></td>
	  </tr>
	  <tr>
		<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  </tr>
  <tr>
	<td class="main" align="right"><?php echo tep_draw_hidden_field('categories_date_added', (($cInfo->date_added) ? $cInfo->date_added : date('Y-m-d'))) . tep_draw_hidden_field('parent_id', $cInfo->parent_id) . tep_image_submit('button_preview.gif', IMAGE_PREVIEW) . '  <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $HTTP_GET_VARS['cID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td>
  </form></tr>
<?php

 //----- new_category_preview (active when ALLOW_CATEGORY_DESCRIPTIONS is 'true') -----
 } elseif ($HTTP_GET_VARS['action'] == 'new_category_preview') {
if ($HTTP_POST_VARS) {
  $cInfo = new objectInfo($HTTP_POST_VARS);
  $categories_name = $HTTP_POST_VARS['categories_name'];
  $categories_heading_title = $HTTP_POST_VARS['categories_heading_title'];
  $categories_description = $HTTP_POST_VARS['categories_description'];

// copy image only if modified
	$categories_image = new upload('categories_image');
	$categories_image->set_destination(DIR_FS_CATALOG_IMAGES);
	if ($categories_image->parse() && $categories_image->save()) {
	  $categories_image_name = $categories_image->filename;
	} else {
	$categories_image_name = $HTTP_POST_VARS['categories_previous_image'];
  }
#	 if ( ($categories_image != 'none') && ($categories_image != '') ) {
#	   $image_location = DIR_FS_CATALOG_IMAGES . $categories_image_name;
#	   if (file_exists($image_location)) @unlink($image_location);
#	   copy($categories_image, $image_location);
#	 } else {
#	   $categories_image_name = $HTTP_POST_VARS['categories_previous_image'];
#	 }
} else {
  $category_query = tep_db_query("select c.categories_id, cd.language_id, cd.categories_name, cd.categories_heading_title, cd.categories_description, c.categories_image, c.sort_order, c.date_added, c.last_modified from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and c.categories_id = '" . $HTTP_GET_VARS['cID'] . "'");
  $category = tep_db_fetch_array($category_query);

  $cInfo = new objectInfo($category);
  $categories_image_name = $cInfo->categories_image;
}

$form_action = ($HTTP_GET_VARS['cID']) ? 'update_category' : 'insert_category';

echo tep_draw_form($form_action, FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $HTTP_GET_VARS['cID'] . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"');

$languages = tep_get_languages();
for ($i=0; $i<sizeof($languages); $i++) {
  if ($HTTP_GET_VARS['read'] == 'only') {
	$cInfo->categories_name = tep_get_category_name($cInfo->categories_id, $languages[$i]['id']);
	$cInfo->categories_heading_title = tep_get_category_heading_title($cInfo->categories_id, $languages[$i]['id']);
	$cInfo->categories_description = tep_get_category_description($cInfo->categories_id, $languages[$i]['id']);
  } else {
	$cInfo->categories_name = tep_db_prepare_input($categories_name[$languages[$i]['id']]);
	$cInfo->categories_heading_title = tep_db_prepare_input($categories_heading_title[$languages[$i]['id']]);
	$cInfo->categories_description = tep_db_prepare_input($categories_description[$languages[$i]['id']]);
  }
?>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . $cInfo->categories_heading_title; ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  </tr>
  <tr>
	<td class="main"><?php echo tep_image(DIR_WS_CATALOG_IMAGES . $categories_image_name, $cInfo->categories_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $cInfo->categories_description; ?></td>
  </tr>

<?php
}
if ($HTTP_GET_VARS['read'] == 'only') {
  if ($HTTP_GET_VARS['origin']) {
	$pos_params = strpos($HTTP_GET_VARS['origin'], '?', 0);
	if ($pos_params != false) {
	  $back_url = substr($HTTP_GET_VARS['origin'], 0, $pos_params);
	  $back_url_params = substr($HTTP_GET_VARS['origin'], $pos_params + 1);
	} else {
	  $back_url = $HTTP_GET_VARS['origin'];
	  $back_url_params = '';
	}
  } else {
	$back_url = FILENAME_CATEGORIES;
	$back_url_params = 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id;
  }
?>
  <tr>
	<td align="right"><?php echo '<a href="' . tep_href_link($back_url, $back_url_params, 'NONSSL') . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>
  </tr>
<?php
} else {
?>
  <tr>
	<td align="right" class="smallText">
<?php
/* Re-Post all POST'ed variables */
  reset($HTTP_POST_VARS);
  while (list($key, $value) = each($HTTP_POST_VARS)) {
	if (!is_array($HTTP_POST_VARS[$key])) {
	  echo tep_draw_hidden_field($key, htmlspecialchars(stripslashes($value)));
	}
  }
  $languages = tep_get_languages();
  for ($i=0; $i<sizeof($languages); $i++) {
	echo tep_draw_hidden_field('categories_name[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($categories_name[$languages[$i]['id']])));
	echo tep_draw_hidden_field('categories_heading_title[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($categories_heading_title[$languages[$i]['id']])));
	echo tep_draw_hidden_field('categories_description[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($categories_description[$languages[$i]['id']])));
  }
  echo tep_draw_hidden_field('X_categories_image', stripslashes($categories_image_name));
  echo tep_draw_hidden_field('categories_image', stripslashes($categories_image_name));

  echo tep_image_submit('button_back.gif', IMAGE_BACK, 'name="edit"') . '  ';

  if ($HTTP_GET_VARS['cID']) {
	echo tep_image_submit('button_update.gif', IMAGE_UPDATE);
  } else {
	echo tep_image_submit('button_insert.gif', IMAGE_INSERT);
  }
  echo '  <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $HTTP_GET_VARS['cID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
?></td>
  </form></tr>
<?php
}

 

Any help would be greatly appreciated ! :thumbsup:

Edited by jay2k5

Share this post


Link to post
Share on other sites

The easier way is to turn off the Categoreis Description option in admin, edit the category tags and then turn the option back on.

 

Jack

Share this post


Link to post
Share on other sites
There's not a lot that can go wrong there. If the code is in the left_column file, which it is, then the files should display. If you are using a contribution like Admin Access, which it doesn't appear to be, then that can hide it until it is enabled. Other than that, I can't think of a reason why it isn't showing.

 

Jack

 

 

Thanks Jack,

 

Yes, the code is in the column_left.php file. Hmmmm...this really sucks. I have no way to manage HTC now...bummer. I cannot remember changing any other files that may have caused this to disappear. I don't know anything else to try....

 

I'll keep thinking about this and post back with any results. If anyone can offer any suggestions, please feel free to do so.


We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

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

Create an account

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

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×