dustybin Posted October 18, 2006 Posted October 18, 2006 hi, i have minimal code knowledge and have read numerous posts that have pointed me to edit the english.php file or the english/index.php file. i am now at this stage and im just tidying the front page up but i have some unwanted white space at the top of the page (just below the header)thats stopping my main image box from aligning with my side menus. http://shop.haveyourcakeandeatit.org/ if anyone can help please give me an idea of what to do. here is a paste of my english/index.php file. thanks ----------------------------------------------------------------------------------------------------------------- <?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', ' <table width="471" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="471" height="346"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_top_img.jpg" width="471" height="346"></td> </tr> <tr> <td><table width="471" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="192"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_bottom_img_1.jpg" width="192" height="154"></td> <td><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_top_1.jpg" width="22" height="24"></td> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_top_2.jpg" width="110" height="24"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_top_3.jpg" width="118" height="24"></td> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_top_4.jpg" width="29" height="24"></td> <td> </td> </tr> <tr> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_mid_1.jpg" width="22" height="109"></td> <td><a href="http://shop.haveyourcakeandeatit.org/login.php"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_mid_2_login.jpg" width="110" height="109" border="0"></a><a href="http://shop.haveyourcakeandeatit.org/create_account.php"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_mid_3_create.jpg" width="118" height="109" border="0"></a></td> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_mid_4.jpg" width="29" height="109"></td> <td> </td> </tr> <tr> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_bottom_1.jpg" width="22" height="21"></td> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_bottom_2.jpg" width="110" height="21"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_bottom_3.jpg" width="118" height="21"></td> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_bottom_4.jpg" width="29" height="21"></td> <td> </td> </tr> </table></td> </tr> </table></td> </tr> </table> '. '</ > <br>'. tep_image(DIR_WS_IMAGES) . '</td><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES) . '</td><br></td></tr></table><br><b>' . tep_image(DIR_WS_IMAGES) . '</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'); define('TABLE_HEADING_DEFAULT_SPECIALS', 'Specials For %s'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Current Stock'); 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', ' <body> <a href="http://www.haveyourcakeandeatit.org/cookies"></a> </body>'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?>
bill110 Posted October 18, 2006 Posted October 18, 2006 hi, i have minimal code knowledge and have read numerous posts that have pointed me to edit the english.php file or the english/index.php file. i am now at this stage and im just tidying the front page up but i have some unwanted white space at the top of the page (just below the header)thats stopping my main image box from aligning with my side menus. http://shop.haveyourcakeandeatit.org/ if anyone can help please give me an idea of what to do. here is a paste of my english/index.php file. thanks ----------------------------------------------------------------------------------------------------------------- <?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', ' <table width="471" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="471" height="346"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_top_img.jpg" width="471" height="346"></td> </tr> <tr> <td><table width="471" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="192"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_bottom_img_1.jpg" width="192" height="154"></td> <td><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_top_1.jpg" width="22" height="24"></td> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_top_2.jpg" width="110" height="24"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_top_3.jpg" width="118" height="24"></td> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_top_4.jpg" width="29" height="24"></td> <td> </td> </tr> <tr> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_mid_1.jpg" width="22" height="109"></td> <td><a href="http://shop.haveyourcakeandeatit.org/login.php"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_mid_2_login.jpg" width="110" height="109" border="0"></a><a href="http://shop.haveyourcakeandeatit.org/create_account.php"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_mid_3_create.jpg" width="118" height="109" border="0"></a></td> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_mid_4.jpg" width="29" height="109"></td> <td> </td> </tr> <tr> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_bottom_1.jpg" width="22" height="21"></td> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_bottom_2.jpg" width="110" height="21"><img src="http://shop.haveyourcakeandeatit.org/images/front_page_bottom_3.jpg" width="118" height="21"></td> <td><img src="http://shop.haveyourcakeandeatit.org/images/front_page_bottom_4.jpg" width="29" height="21"></td> <td> </td> </tr> </table></td> </tr> </table></td> </tr> </table> '. '</ > <br>'. tep_image(DIR_WS_IMAGES) . '</td><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES) . '</td><br></td></tr></table><br><b>' . tep_image(DIR_WS_IMAGES) . '</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'); define('TABLE_HEADING_DEFAULT_SPECIALS', 'Specials For %s'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Current Stock'); 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', ' <body> <a href="http://www.haveyourcakeandeatit.org/cookies"></a> </body>'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Try looking in catalog/index.php you will see settings there for cell padding and cell spacing. some of these are set to 3. try changing them to 0. experiment with which ones do exactly what you want. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
dustybin Posted October 18, 2006 Author Posted October 18, 2006 Try looking in catalog/index.phpyou will see settings there for cell padding and cell spacing. some of these are set to 3. try changing them to 0. experiment with which ones do exactly what you want. hi, thanks for the reply. the file you suggested was correct but it was a previous edit i had made of trying to remove the "welcome guest" message. i reverted to my previous file and it seems fine again. thanks for your time Gary
Recommended Posts
Archived
This topic is now archived and is closed to further replies.