chrometweaks.org

Does anyone know a discount code that I can use for iPage?

Click Here To View All Answers...


Quick question: Does anyone know a discount code that I can use for iPage? Thanks in advance for any answer. Another quick question... This is coming up when I add this to colum-left php. What does this mean..

Warning: Failed opening 'includes/boxes/textsurvey.php' for inclusion (include_path='./:/usr/local/lib/php') in /home/jnr1/barginhut-www/store/includes/column_left.php on line 27..

Comments (54)

The answer is Yes, but... you might want to make sure and wait for another person to confirm my answer as I am not sure. Better yet, why don't you call the iPage guys because they can give you an answer better...

Comment #1

The error message means that column_left.php is looking for a file called textsurvey.php. This file cannot be found in the directory includes/boxes/. Make sure the file is there and the filename matches exactly - TextSurvey.php is not the same as textsurvey.php..

To center your web page, open header.php, find the very first line that looks something like this:.

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

(mine is around line 54)..

Directly above it, put this:.

<div align="center" widht="xxx">.

Replace XXX with however wide you want your iPage site to be (760 I think is standard width).

Now open footer.php and find the last line that says.

</table>.

Directly after it, put this:.

</div>.

I'm pretty sure that will work, but let me know if it doesn't!.

This post has been edited by.

BlueNoteMKVI.

: 28 March 2004, 01:18..

Comment #2

Off course you mean -.

<div align="center" width="xxx">  - lol.

This post has been edited by.

Yesudo.com.

: 28 March 2004, 01:34..

Comment #3

Im still not sure why it's still looking the way it does. I mean center the webpage..

My Webpage..

Comment #4

Make the table width 780 pixels and it'll fit perfectly for 800x600 resolution in the browser...

Comment #5

Well, without any more information from you, there's not much we can do for you - could you perhaps post some of your header.php and footer.php? Specifically the part were you inserted the code mentioned above...

Comment #6

I think it might be the box sizes. I put a new banner and it fits on the header portion perfect. The infoboxes are sticking out. Where can I fix them? I really do appreciate all the help you guys having giving me..

Roger..

Comment #7

I have searched and searched I cant figure out why my colums are bigger? Here is my index page.[CODE].

<?php.

/*.

$Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.barginhut.com.

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

Comment #8

Nothing jumps out at me....

Here's something to try:.

Rename your index.php to something else.

Copy over a standard osCommerce index.php - see if that fixes the problem..

Make the necessary changes one by one to make your new index.php look like the old one. Check after each change and see which one is causing the boxes to change size...

Comment #9

Try this catalog/includes/header.php locate this bit of code at the top after the copyright notice.

*/.

Then add this code.

//BORDER AROUND CART.

Print ('<table width="760" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">.

   .

 <tr>.

   <td bgcolor="#FFFFFF">');.

Befor this code.

// check if the 'install' directory exists, and warn of it's existence.

If (WARN_INSTALL_EXISTENCE == 'true') {.

 if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])'/install')) {.

   $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');.

 }.

}..

Comment #10

Steve that was cool. Look at the web page to see what it did. Im sure it will show where the problems is, to you at least...

Comment #11

Yes I can see what needs doing but need to check that this is what you meant by centre the site..

Comment #12

Well I just want everything to fit on on page with out having to scroll over to see the rest...

Comment #13

This does not really answer my question though.

This is fixing your iPage site centre and 760.

I can make the header and footer fit to this shape or make the original fit to what you want but if you dont really know what you want then I can do nothing.

I will await your advise..

Comment #14

Steve I think it would be best to reset the footer and header to fit...

Comment #15

Still not very clear does this mean that you wish to change everything back to before implementing the changes that I gave and thus giving the flex of percentage compared to fixed width, then make everything fit the percentage, or, do you mean to reset the header and footer to fit properly to the fixed and centred shape that you now have..

Comment #16

I mean to reset the header and footer to fit properly to the fixed and centred shape that I now have. thanks for being patient..

Comment #17

Ok start by posting your header.php.

Also what size is the header image.

This post has been edited by.

241.

: 29 March 2004, 22:39..

Comment #18

The header image is 780 x 100 pixels..

<?php.

/*.

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

//BORDER AROUND CART.

Print ('<table width="760" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">.

<tr>.

<td bgcolor="#FFFFFF">');.

// check if the 'install' directory exists, and warn of it's existence.

If (WARN_INSTALL_EXISTENCE == 'true') {.

If (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])'/install')) {.

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');.

}.

}.

// check if the configure.php file is writeable.

If (WARN_CONFIG_WRITEABLE == 'true') {.

If ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])'/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])'/includes/configure.php')) ) {.

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');.

}.

}.

// check if the session folder is writeable.

If (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {.

If (STORE_SESSIONS == '') {.

If (!is_dir(tep_session_save_path())) {.

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');.

} elseif (!is_writeable(tep_session_save_path())) {.

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');.

}.

}.

}.

// check session.auto_start is disabled.

If ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {.

If (ini_get('session.auto_start') == '1') {.

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');.

}.

}.

If ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {.

If (!is_dir(DIR_FS_DOWNLOAD)) {.

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');.

}.

}.

If ($messageStack->size('header') > 0) {.

Echo $messageStack->output('header');.

}.

?>.

<div align="center" width="780">.

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

<tr class="header">.

<td valign="middle"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image(DIR_WS_IMAGES'barginhut.jpg', 'barginhut.com')'</a>'; ?></td>.

<td align="right" valign="bottom"><?php echo '<a href="'tep_href_link(FILENAME_SHOPPING_CART)'">'tep_image(DIR_WS_IMAGES'header_cart.gif', HEADER_TITLE_CART_CONTENTS)'</a>&nbsp;&nbsp;<a href="'tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')'">'tep_image(DIR_WS_IMAGES'header_checkout.gif', HEADER_TITLE_CHECKOUT)'</a>'; ?>&nbsp;&nbsp;</td>.

</tr>.

</table>.

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

<tr class="headerNavigation">.

<td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>.

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</td>.

</tr>.

</table>.

<?php.

If (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {.

?>.

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

<tr class="headerError">.

<td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>.

</tr>.

</table>.

<?php.

}.

If (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {.

?>.

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

<tr class="headerInfo">.

<td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>.

</tr>.

</table>.

<?php.

}.

?>..

Comment #19

Your header.php shows the code for the three images that would be on the right hand side the cart image, contents image and checkout image.

<td align="right" valign="bottom"><?php echo '<a href="'tep_href_link(FILENAME_SHOPPING_CART)'">'tep_image(DIR_WS_IMAGES'header_cart.gif', HEADER_TITLE_CART_CONTENTS)'</a>&nbsp;&nbsp;<a href="'tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')'">'tep_image(DIR_WS_IMAGES'header_checkout.gif', HEADER_TITLE_CHECKOUT)'</a>'; ?>&nbsp;&nbsp;</td>.

Are they meant to show or are they meant to be removed..

Comment #20

Initially when you installed the cart there would have been three image on the right hand side of your header.

If it is the case that these images are not being used then the code is.

<?php.

/*.

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright 2003 osCommerce.

Released under the GNU General Public License.

*/.

//BORDER AROUND CART.

Print ('<table width="760" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">.

<tr>.

<td bgcolor="#FFFFFF">');.

// check if the 'install' directory exists, and warn of it's existence.

If (WARN_INSTALL_EXISTENCE == 'true') {.

If (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])'/install')) {.

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');.

}.

}.

// check if the configure.php file is writeable.

If (WARN_CONFIG_WRITEABLE == 'true') {.

If ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])'/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])'/includes/configure.php')) ) {.

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');.

}.

}.

// check if the session folder is writeable.

If (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {.

If (STORE_SESSIONS == '') {.

If (!is_dir(tep_session_save_path())) {.

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');.

} elseif (!is_writeable(tep_session_save_path())) {.

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');.

}.

}.

}.

// check session.auto_start is disabled.

If ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {.

If (ini_get('session.auto_start') == '1') {.

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');.

}.

}.

If ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {.

If (!is_dir(DIR_FS_DOWNLOAD)) {.

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');.

}.

}.

If ($messageStack->size('header') > 0) {.

Echo $messageStack->output('header');.

}.

?>.

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

<tr class="header">.

<td valign="middle"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image(DIR_WS_IMAGES'barginhut.jpg', 'barginhut.com')'</a>'; ?></td>.

</tr>.

</table>.

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

<tr class="headerNavigation">.

<td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>.

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</td>.

</tr>.

</table>.

<?php.

If (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {.

?>.

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

<tr class="headerError">.

<td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>.

</tr>.

</td>.

</table>.

<?php.

}.

If (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {.

?>.

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

<tr class="headerInfo">.

<td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>.

</tr>.

</table>.

<?php.

}.

?>.

Ok now that the header is dealt with can you post the footer.php.

This post has been edited by.

241.

: 29 March 2004, 23:28..

Comment #21

Here is the footer..

<?php.

/*.

$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require(DIR_WS_INCLUDES'counter.php');.

?></TABLE>.

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

<tr class="footer">.

<td class="footer">&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</td>.

<td align="right" class="footer">&nbsp;&nbsp;<?php echo.

//$counter_now' 'FOOTER_TEXT_REQUESTS_SINCE' '$counter_startdate_formatted; ?>&nbsp;&nbsp;</td>.

</tr>.

</table>.

<br>.

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

<tr>.

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

<?php.

/*.

The following copyright announcement can only be.

Appropriately modified or removed if the layout of.

The iPage site theme has been modified to distinguish.

Itself from the default osCommerce-copyrighted.

Theme..

For more information please read the following.

Frequently Asked Questions entry on the osCommerce.

Support site:.

Http://www.oscommerc...php/faq,26/q,50.

Please leave this comment intact together with the.

Following copyright announcement..

*/.

Echo FOOTER_TEXT_BODY.

?>.

</td>.

</tr>.

</table>.

<?php.

If ($banner = tep_banner_exists('dynamic', '468x50')) {.

?>.

<br>.

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

<tr>.

<td align="center"><?php echo tep_display_banner('static', $banner);?></td>.

</tr>.

</tr>.

</table>.

<?php.

}.

?>.

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

<tr>.

<td width="33%">&nbsp;</td>.

<td width="33%">.

<img border="0" src="images/static_amex_mc_visa_disc.gif".

Width="300" height="40"></td>.

<td width="34%">&nbsp;</td>.

</tr>.

</table>.

</div>..

Comment #22

This should be the footer but may require an adjustment.

<?php.

/*.

$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require(DIR_WS_INCLUDES'counter.php');.

?>.

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

<tr class="footer">.

<td class="footer">&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</td>.

<td align="right" class="footer">&nbsp;&nbsp;<?php echo.

//$counter_now' 'FOOTER_TEXT_REQUESTS_SINCE' '$counter_startdate_formatted; ?>&nbsp;&nbsp;</td>.

</tr>.

</table>.

<br>.

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

<tr>.

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

<?php.

/*.

The following copyright announcement can only be.

Appropriately modified or removed if the layout of.

The iPage site theme has been modified to distinguish.

Itself from the default osCommerce-copyrighted.

Theme..

For more information please read the following.

Frequently Asked Questions entry on the osCommerce.

Support site:.

Http://www.oscommerce.com/community.php/faq,26/q,50.

Please leave this comment intact together with the.

Following copyright announcement..

*/.

Echo FOOTER_TEXT_BODY.

?>.

</td>.

</tr>.

</table>.

<?php.

If ($banner = tep_banner_exists('dynamic', '468x50')) {.

?>.

<br>.

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

<tr>.

<td align="center"><?php echo tep_display_banner('static', $banner);?></td>.

</tr>.

</table>.

<?php.

}.

?>.

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

<tr>.

<td width="33%">&nbsp;</td>.

<td width="33%">.

<img border="0" src="images/static_amex_mc_visa_disc.gif".

Width="300" height="40"></td>.

<td width="34%">&nbsp;</td>.

</tr>.

</table>..

Comment #23

Cool, okay I guess I have to make some adjustments. do I adjust the header jpg itself or in the header. take a look...

Comment #24

I still cant get it right. I'm going nuts...

Comment #25

You have not used the codes that I gave you..

Comment #26

Steve,.

Yes I did use them, but I uninstalled them thinking I did something wrong. I was going to reinstalle them today. To see if I had made a mistake. The header jpg and the footer are still short. I guess I did do something wrong...

Comment #27

This is coming up when I add this to colum-left php. What does this mean..

Warning: Failed opening 'includes/boxes/textsurvey.php' for inclusion (include_path='./:/usr/local/lib/php') in /home/jnr1/barginhut-www/store/includes/column_left.php on line 27..

Comment #28

Also how can I center my web page. I have blank space at end of header...

Comment #29


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