Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Right Column Prob


freddyboy

Recommended Posts

Posted

Looks llike you are missing a tag in your index.php sile.

 

 

Look where teh column right is put in and compare it to anther file.

 

Comment to comment in teh index.php file (towards the bottom)

 

Something got deleted or added there.

 

 

hth

 

TJ

 

http://africabythebay.com/osC/catalog/index.php

 

Please take a look at my right column it does not jusify to the top as does my left column, every page other than my index page does however.

 

I serach and found nothing regarding this problem only widths.

Thanks,

Fred

 

BTW Love the new release!! :thumbsup:

  • 2 weeks later...
Posted

Well, I could not figure it out. Would someone please take a look for me. I'm at the end of my rope trying to figue this one out. The code is identical unless I'm blind to the error, I don't know!

 

 

Code from original file index.php (bottom lines of code).

?>

<!-- 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'); ?>

 

 

 

Code from file index.php currently online (bottom lines of code).

 

?>

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

These are the lines above < body text eof> in conditions.php

 

</td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

<!-- body_text_eof //-->

 

these are the lines above <body text eof> in index.php

 

</td>

</tr>

</table></td>

</tr>

</table></td>

<!-- body_text_eof //-->

 

It is difficult to tell from looking at the page source code with all of the php stripped out, but it's my guess that you've done something to the table structure in index.php that is causing this problem. Try restoring a default copy of the root level index.php and see if that helps. If it's not that then perhaps you did something to the table structure in includes/languages/english/index.php

 

Vger

Posted

You were right on your second suggestion. "If it's not that then perhaps you did something to the table structure in includes/languages/english/index.php"

 

I replaced the includes/languages/english/index.php file and it fixed the problem so I now know that is it. However, the code is a bit much for me so I copied the code for review. Can you see the problem?

 

If I just replace the file with a fresh one will that mess anything up because I have already done some configuration. When I put the new index file up it says that it needs to be configured and I don't know if I will have some problems if I do this.

 

I hope I'm communicating clearly. :blink:

 

 

 

<?php

/*

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

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'This online store was created for all who love everything about Africa.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"> This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'Welcome to the Africa By the Bay Online Store!');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Archived

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

×
×
  • Create New...