Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

center section stretches way out


tec

Recommended Posts

Posted

hi there, was wondering if anyone can tell me what might be causing my problem, seems on the index page, and when you click a category, all is well, but if you go anywhere else, the center part of the page stretches a far way to the right

 

http://race2way.ca

Posted

Wow, you have to win the prize for the world's widest site. :) I compared the index and about us pages and the about us page uses the column left and column center classes. There may be something in those that is causing the problem.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
Wow, you have to win the prize for the world's widest site. :) I compared the index and about us pages and the about us page uses the column left and column center classes. There may be something in those that is causing the problem.

 

Jack

 

hahaha, thank you very much Jack_mcs, would the prize be made of chocolat by any chance?

:D

 

i will take a look into the classes and see what is going on, thanks again, will keep ya posted

Posted
Wow, you have to win the prize for the world's widest site. :) I compared the index and about us pages and the about us page uses the column left and column center classes. There may be something in those that is causing the problem.

 

Jack

 

 

hmm, ok, I am at a loss......

 

i took a look at the advanced search page because it seems to be working ok, but when i look at the source, it has the class tag for the column left and column center. I even tried taking the tags out of the css for them. I also tried to take out the class tags on a couple of other pages but when i delete the class tags, save and reupload i get this

 

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/race2way/public_html/includes/functions/database.php:13) in /home/race2way/public_html/includes/functions/database.php on line 13

Posted

If your shop is put together properly, all of your pages in the root will have the same structure except for two areas. You can copy those two areas and repoduce a working page. That should get rid of your problem. Here's how you do it:

 

1) Rename a failing page, use privacy.php for this example, to privacy_orig.php

2) pick a working page, say index.php. Copy it and rename that copy to privacy.php

3) find these lines in privacy_orig.php

?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

and select everything from right above the ?> to the top of the file.

4) go into privacy.php and paste that code over the same area so now both files are identical for the top section of code.

5) in privacy_orig.php, copy all of the code between this line

<!-- body_text //-->

and this line

<!-- body_text_eof //-->

6) paste that code over the same area in privacy.php

7) save privacy.php and display it in your browser.

 

That should result in a good display. If not, the problem is in the code you copied in step 6. If it still fails, post the whole, new, priivacy file here.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

sorry for taking so long to reply Jack, I have been swamped, I am off to try what you suggested now.

Fingers crosses and thank you for your help

:thumbsup:

Posted

:blush:

 

hi again, ok i tried it, and i followed your instructions, I swear i did step by step, your instructions opened while working in dreamweaver. Wierd thing is, is that is looks fine in mozilla

 

i worked on the privacy and index page like you suggested

http://race2way.ca/privacy.php

 

as you can see it is still messed up in IE, like i said though, stranger thing is, it works in mozilla

 

Here is the code from the new privacy page...

 

<?php
/*
 $Id: privacy.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

 version 1.5 'define conditions' 6/8/2005 [email protected]

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

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRIVACY);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRIVACY));
?>
<!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 width="96%" border="0" align="center" cellpadding="3" cellspacing="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top" ><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top" class="columnCenter"><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_specials.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="2">
	  <tr>
		<td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_PRIVACY); ?></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="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
</table></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Posted

Hiya Jack......I FOUDN IT :D

 

it was the stylesheet, not quite sure what it was in the css, i still have to configure it back to how it should be, but hey, the pages are normal again.

Hahaha, guess i should have just tried uploading the back up stylesheet in the first place, amazing how one never takes the easy way :rolleyes:

 

anyhow my friend, thank you so much for your help that you offered, i do appreciate it, have a wondeful evening

Posted
Yeah, it seems the hard path is the one I usually take too. :) I'm glad you figured it out though.

 

Jack

 

thanks Jack, i was getting worried, cant say i had seen anything like it before, a few days doing it the hard way to find the problem, then took the easy route and it took me 3 minutes, do we ever learn? :P

 

would you by chance know how to comment out the notification box in column_right?

Archived

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

×
×
  • Create New...