Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I want to get rid of:


Guest

Recommended Posts

You need to set a fixed width instead of the 100% it is at now.

 

It looks like you are viewing at a high resolution and osC will expand to whatever width you are viewing at. View your site at 800x600 and you will see what I mean.

Link to comment
Share on other sites

sorry i actually meant the height, not the width... i should have been clear.

 

edit catalog/index.php and scroll to the start of the html bit.. look for the tables after the column_left bit and change the border to 1.. you can do this for any tables to see the outline so you can work out how the structure is setup...

 

post a screenshot back here and the bit of code from to main page start comment for about 20 lines or so and I'll see what I can figure out

 

rich

Link to comment
Share on other sites

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

 

i'm assuming you mean this part here

Link to comment
Share on other sites

I've just tried to do as I mentioned and put border="1" in the first tables at the part you have shown above. I now realise that each index page is different depending on what settings you have.

 

find:

 

<?php

} else { // default page

?>

 

just below put a "1" in the two tables border="0" to see the structure of your tables...

 

so you should then have:

 

<td width="100%" valign="top">

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

<tr>

<td>

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

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

my code will be formatted slightly different to yours, unless you have formatted it since installation, but the actual code will be the same.

 

when you refresh your index.php in your browser you will see borders around your boxes...

 

if you can't figure it out post a screenshot here and the code and I will try my best, with my very limited knowledge of html, to assist you.

 

rich

Link to comment
Share on other sites

if you find that when you change the borders to "1" it does not reflect in the index page you are viewing you will need to track down which page you are viewing. This depends on settings in you admin (I think). But instead of trying to get your head round that it will be much simpler to locate the part in index.php by using the border trick. It is only going to be like this for the time you are sussing out your problem so don't worry!

 

you will no doubt see loads of these:

 

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

 

This means 'put a transparent spacer of 10 pixels high and 100% wide (between column_left and column_right)'. You may need to take some of these out either by removing them completely or commenting them out like so:

 

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

 

Your table structure could be casing you the gap so look above this:

 

<?php echo tep_customer_greeting(); ?>

 

You might have turned off your header images so that they do not show but not changed the Header Image Width/Height in admin to get rid of the 'image holder'.

 

Thinking about it logically I would assume it is the image holder that is causing you this problem.

 

If this doesn't help.. I'll eat my hat.

 

rich

Link to comment
Share on other sites

you're a good man/woman... will try in the morning and report back.

 

no problem... I recommend trying the header image setting in admin first. set it to 1 wide and 1 high. or maybe 0x0 if that works (not sure)

 

in case you want to see my code for the default index:

 

<?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="left"><?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>
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="main"><?php echo tep_customer_greeting(); ?></td>
		  </tr>
		  <tr>
			<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo TEXT_MAIN; ?></td>
		  </tr>
		  <?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?>
		</table>
	  </td>
	</tr>
  </table>
</td>
<?php } ?>

 

rich

Link to comment
Share on other sites

<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%', '1'); ?></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%', '1'); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo TEXT_MAIN; ?></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td>
	  </tr>
	  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>

 

commenting out the echo commands didn't work, created errors.

 

will try playing with the settings, if you can, please have a look to see what you can deduce.

Link to comment
Share on other sites

solved, i just removed that whole frickin' line of code, that fixed it real good...

 

ie.

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

 

GONE! :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...