chrometweaks.org

How do I add an user to my FTP site via iPage?

Click Here To View All Answers...


Got a quick question: How do I add an user to my FTP site via iPage? Thanks in advance for any answer or 2. Another quick question... This is what I've done in the stylesheet:.

.infoBox {.

 background: #000000;.

 color: #FFFFCC;.

 border: 2px;.

 border-style: solid;.

 border-color: #CC9933;.

 border-spacing: 1px;.

 }.

... but this results in a border NOT ONLY around the left column boxes, but also on the right, in the middle (around Update; Continue Looking; etc. - where it looks absolutely horrible), and so on..

I just want a nice golden border around the left column. I can live with the boxy effect that has borders around each of the separate headings (such as categories; best-sellers, etc.) but I totally loathe and abominate the borders around all the stuff in the middle..

Http://www.soundssub...hop.com/catalog.

This post has been edited by.

Almirena.

: 16 April 2004, 11:53..

Comments (118)

I would like to know the answer too. Anyone here know what is the right answer. I'll do some investigation and get back to you if I got an good answer. You should email the people at iPage as they probably could answer your iPage question..

Comment #1

You could do it like this, but would need to edit each file that displays the left column:.

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

 <tr>.

   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="1" bordercolor="#CC9933" 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 //>.

Matti..

Comment #2

Or do as I suggested, and edit only the one file. Sounds much simpler? Vger..

Comment #3

Thank you - that is helping, although it's still not quite right..

I'm using.

.infoBox {.

 background: #000033;.

 color: #FFFFCC;.

 border: 2px;.

 border-style: solid;.

 border-color: #000000;.

 border-spacing: 1px;.

 }.

In the stylesheet, and.

<! body //>.

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

<tr>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top" bgcolor="#000000">.

<table bordercolor="#CC9933" border="2" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="8">.

<! left_navigation //>.

In the column_left.php file..

Currently, I've got the gold border around the left column, but I've also got a horizontal line marking between Category / Bestsellers / etc..

If you've got any ideas about how to get rid of those, it would be wonderful...

Comment #4

Ah, and I just saw your suggestion, Matti - I did try that, I think (from those helpful Wiki documents) but it resulted in my entire top navigation menu being squeezed over to one side, so I thought that might not be a good idea..

But now that I look at the code you've shown again, I'm wondering whether I just placed it in the wrong spot. I seem to recall putting it at the top of the file. I'll try it again..

This post has been edited by.

Almirena.

: 16 April 2004, 13:14..

Comment #5

Help...!.

I don't know why, but... I've now got bizarre things happening to the centre. The main linked image on the index page is pushed down, and a catalogue item when selected is also pushed it down away from the centre of the page..

What did I do...?.

Here's my column_left.php.

<?php.

/*.

$Id: column_left.php,v 1.15 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.

*/.

If ((USE_CACHE == 'true') && empty($SID)) {.

Echo tep_cache_categories_box();.

} else {.

Include(DIR_WS_BOXES'categories.php' );.

}.

If ((USE_CACHE == 'true') && empty($SID)) {.

Echo tep_cache_manufacturers_box();.

} else {.

//include(DIR_WS_BOXES'manufacturers.php');.

}.

If (isset($HTTP_GET_VARS['products_id'])) {.

If (tep_session_is_registered('customer_id')) {.

$check_query = tep_db_query("select count(*) as count from "TABLE_CUSTOMERS_INFO" where customers_info_id = '"(int)$customer_id"' and global_product_notifications = '1'");.

$check = tep_db_fetch_array($check_query);.

If ($check['count'] > 0) {.

Include(DIR_WS_BOXES'best_sellers.php');.

} else {.

Include(DIR_WS_BOXES'product_notifications.php');.

}.

} else {.

Include(DIR_WS_BOXES'product_notifications.php');.

}.

} else {.

Include(DIR_WS_BOXES'best_sellers.php');.

}.

If (isset($HTTP_GET_VARS['products_id'])) {.

If (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES'tell_a_friend.php');.

} else {.

Include(DIR_WS_BOXES'specials.php');.

}.

Require(DIR_WS_BOXES'reviews.php');.

If (substr(basename($PHP_SELF), 0, 8) != 'checkout') {.

//include(DIR_WS_BOXES'languages.php');.

//include(DIR_WS_BOXES'currencies.php');.

}.

// require(DIR_WS_BOXES'whats_new.php');.

Require(DIR_WS_BOXES'search.php');.

Require(DIR_WS_BOXES'information.php');.

?>.

... and here's my index.php.

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

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

<link rel="stylesheet" type="text/css" href="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"'");.

$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; ?></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>.

</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_MODULESFILENAME_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, "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_MANUFACTURERS" m, "TABLE_PRODUCTS_TO_CATEGORIES" p2c left join "TABLE_SPECIALS" s on p.products_id = s.products_id 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, "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_MANUFACTURERS" m left join "TABLE_SPECIALS" s on p.products_id = s.products_id 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, "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_MANUFACTURERS" m, "TABLE_PRODUCTS_TO_CATEGORIES" p2c left join "TABLE_SPECIALS" s on p.products_id = s.products_id 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, "TABLE_PRODUCTS_TO_CATEGORIES" p2c left join "TABLE_SPECIALS" s on p.products_id = s.products_id 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; ?></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'&nbsp;';.

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

</table></td>.

</tr>.

<tr>.

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

</tr>.

<tr>.

<td><?php include(DIR_WS_MODULESFILENAME_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; ?></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><div align="center"><font color="#CC9933" size="4" face="Times New Roman, Times, serif">Book.

Now for<br>.

<font color="#FFFFCC" size="5">D</font><font color="#FFFFCC">eadly!.

- <font size="5">N</font>ever <font size="5">C</font>ross.

A <font size="5">S</font>oprano.</font></font><br>.

<a href="product_info.php?cPath=3&products_id=45"><img src="images/concertdeadly.jpg" alt="Click to find out more!" border="0"></a><font color="#CC9933"><br>.

5th June, Genezzano Performing Arts Centre</font> </div>.

<?php //include(DIR_WS_MODULESFILENAME_NEW_PRODUCTS); ?></td>.

</tr>.

<?php.

Include(DIR_WS_MODULESFILENAME_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'); ?>.

This post has been edited by.

Almirena.

: 16 April 2004, 13:42..

Comment #6

Currently you have it set up so that the 'table is assigned the border colour, as in.

<td width="<?php echo BOX_WIDTH; ?>" valign="top" bgcolor="#000000">.

<table bordercolor="#CC9933" border="2" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="8">.

Try something like.

<td width="<?php echo BOX_WIDTH; ?>" valign="top" bgcolor="#000000" bordercolor="#cc9933" width="2">.

<table width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="8">.

Sorry, but I haven't tested this out, but it might be worth trying..

Vger..

Comment #7

Thank you for the suggestion, and I'll attempt to implement it once my current problem is solved..

Anyone...? If you take a look at.

My site.

, you'll see it's gone crazy! I don't know why, but after working to try to get the left column bordered, all the things that ought to be in the centre of the page and in the right column have been shifted down, below the left column. It looks atrocious. I have no idea how to fix this. I can't see where, in any of the three files I was editing in an attempt to get that left column border, the problem lies....

I truly need help here, please.....

Comment #8

Okay... It's definitely something in the column_left.php file. I just renamed it, uploaded a backup version (without all the changes I'd incorporated), and the centre and right column are doing what they should. Well, that narrows it down....

<sets off to scrutinise the two files carefully>..

Comment #9

Am I correct in my assumption that you have this to affect the left column.

.infoBox {.

Background: #000033;.

Color: #FFFFCC;.

Border: 2px;.

Border-style: solid;.

Border-color: #000000;.

Border-spacing: 1px;.

}.

Having a border of 2px and a border space of 1px giving 3px this will push things around on your page.

This post has been edited by.

241.

: 17 April 2004, 11:05..

Comment #10

Oh, boy... FINALLY achieved what I wanted!!! Thank you, Vger, Matti, and Steve, for your suggestions. I tested everything I could think of...

Firstly.

, the reason for the shifting down of everything after the left column - I'd left a.

</table>.

Command at the bottom of the column_left.php file. I should have seen that instantly... oh well, I was very tired in the small hours..

Secondly.

, the complete and easy step-by-step way to have a border around the left column, as shown in my site, is as follows:.

Edit the code in stylesheet.css as shown..

.infoBox {.

Background: #000000;.

Color: #FFFFCC;.

Border: 2px;.

Border-style: solid;.

Border-color: #000000;.

Border-spacing: 1px;.

}.

Put in whatever colours you want, but match the border-color to the background colour. (Note - I use "colour" as my spelling, but code FORCES me to use "color"! What we non-Americans suffer...).

Now, open up column_left.php, and insert this code into the top of the file, before.

<?php.

<! body //>.

<table border="2" width="100%" cellspacing="0" cellpadding="3" bordercolor="#CC9933">.

<tr>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top" bgcolor="#000000" bordercolor="#cc9933" border="2">.

<table width="<?php echo BOX_WIDTH; ?>" cellpadding="8" cellspacing="0">.

     <! left_navigation //>.

And put the following tag at the bottom of the file, right under.

?>.

</table>.

Upload these edited and saved files. That should do it nicely - I'm not sure that it's necessary, actually, to include bordercolor for the bit starting with.

<td width="<?php.

, but it's definitely necessary to include the bordercolor for the bit beginning with.

<table border="2".

..

May this save someone else from days of frustration!.

Thank you all again - you are wonderful people, and osCommerce is wonderful (tricky, but wonderful)...

Comment #11

This is what I've done in the stylesheet:.

.infoBox {.

 background: #000000;.

 color: #FFFFCC;.

 border: 2px;.

 border-style: solid;.

 border-color: #CC9933;.

 border-spacing: 1px;.

 }.

... but this results in a border NOT ONLY around the left column boxes, but also on the right, in the middle (around Update; Continue Looking; etc. - where it looks absolutely horrible), and so on..

I just want a nice golden border around the left column. I can live with the boxy effect that has borders around each of the separate headings (such as categories; best-sellers, etc.) but I totally loathe and abominate the borders around all the stuff in the middle..

Http://www.soundssub...hop.com/catalog.

This post has been edited by.

Almirena.

: 16 April 2004, 11:53..

Comment #12

In your style sheet, define the border color as being the same color as the background - this removes all borders (to the eye). Then in column_left.php play around with the border color command to just define that border as the color you want. It should be possible to do. Vger..

Comment #13


This question was taken from a support group/message board and re-posted here so others can learn from it.