g1842 Posted May 30, 2008 Posted May 30, 2008 I got rid of everything in the <!-- body_text //--> area of the index.php file. Now it's empty in the body. Now how do I put my own information and images in the body? I tried simply putting some text in there but it doesn't show up in the correct spot on the page when I refresh.
♥geoffreywalton Posted May 30, 2008 Posted May 30, 2008 Try the html section of www.w3schools.com. The css section is v good too. They explain it much better than I. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
g1842 Posted May 30, 2008 Author Posted May 30, 2008 Not sure what you mean. I know enough html to make the design of what I want. I just need to know how to put my design in the body area (middle of page).
g1842 Posted May 30, 2008 Author Posted May 30, 2008 Here's my index.php <?php /* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] 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="0" cellpadding="0"> <tr> <td valign="top" class="col_left"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </td> <!-- body_text //--> <!-- body_text_eof //--> <td class="col_right"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--></body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
♥geoffreywalton Posted May 31, 2008 Posted May 31, 2008 I mean if you read those references it explains how do I put my own information and images in the body Either use html or css to get it in the right place. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
g1842 Posted May 31, 2008 Author Posted May 31, 2008 All I need to know is what to do to put some text in the body of the homepage.
germ Posted May 31, 2008 Posted May 31, 2008 Try replacing this: <!-- body_text //--> <!-- body_text_eof //--> With: <!-- body_text //--> <td width="100%" valign="top"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> DELETE THIS LINE AND PUT YOUR TEXT IN THIS AREA (WITH CORRECT HTML FORMATTING OF COURSE) </td> </tr> </table> </td> <!-- body_text_eof //--> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
g1842 Posted May 31, 2008 Author Posted May 31, 2008 Thanks a TON. That worked perfect. How is it that using a table let it show up right?
germ Posted May 31, 2008 Posted May 31, 2008 Well, osC is "table based" so you have to follow suit to get things to work for you. ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
g1842 Posted May 31, 2008 Author Posted May 31, 2008 Ok kool. I'll have to look more into tables. Thanks again. And thank you Geoffrey Walton for the link. It has plenty of great info.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.