davids771 Posted July 29, 2006 Share Posted July 29, 2006 Hi All. :D This is my first time here. Thanks for any support with my new use of osCommerce. It's been going well getting started. But I hit a snag updating the text on Index.php. I was just modifying the text following the four grey (DIR_WS_IMAGES . 'default/4.gif') . images attempting to keep everything as is but just changing the content. I believe my error is here in the fourth step. What's showing up is a indentation of about 1.5 inch now between the grey number gifs and the text. I'd like to change the red osCommerce 2.2-MS2 to something else too. And also at the bottom the products footer is now crammed all in the left hand side which seems related to the indentation. Maybe a table goof? Thanks for any suggestions as I am very new to this. Here's the lines I think are causing the problem: <br><br>If you wish to understand in greater depth the limits of air sampling and the latest science of air pollution please visit the <a href="http://www.epa.gov" target="_blank"><u>US Environmental Protection Agency</u></a> is considered a preliminary tool for air quality investigations.<font color="#f0000"><b>'. PROJECT_VERSION . '</b></font> . '); Link to comment Share on other sites More sharing options...
mtechama Posted July 29, 2006 Share Posted July 29, 2006 Hi All. :D This is my first time here. Thanks for any support with my new use of osCommerce. It's been going well getting started. But I hit a snag updating the text on Index.php. I was just modifying the text following the four grey (DIR_WS_IMAGES . 'default/4.gif') . images attempting to keep everything as is but just changing the content. I believe my error is here in the fourth step. What's showing up is a indentation of about 1.5 inch now between the grey number gifs and the text. Also at the bottom the products footer is crammed all in the left hand side. Maybe a table goof? Thanks for any suggestions as I am very new to this. Here's the lines I think are causing the problem: <br><br>If you wish to understand in greater depth the limits of air sampling and the latest science of air pollution please visit the <a href="http://www.epa.gov" target="_blank"><u>US Environmental Protection Agency</u></a> is considered a preliminary tool for air quality investigations.<font color="#f0000"><b>'. PROJECT_VERSION . '</b></font> . '); What is the web address please? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
davids771 Posted July 29, 2006 Author Share Posted July 29, 2006 What is the web address please? It's not available yet. Link to comment Share on other sites More sharing options...
davids771 Posted July 29, 2006 Author Share Posted July 29, 2006 I just realized, could it be that I've added too many lines of text to this area? Link to comment Share on other sites More sharing options...
mtechama Posted July 29, 2006 Share Posted July 29, 2006 I just realized, could it be that I've added too many lines of text to this area? can you post the whole file of what you are talking about? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
davids771 Posted July 29, 2006 Author Share Posted July 29, 2006 can you post the whole file of what you are talking about? No. I can post the original content that came with index.php. Link to comment Share on other sites More sharing options...
mtechama Posted July 29, 2006 Share Posted July 29, 2006 No. I can post the original content that came with index.php. the orignial content will not help but if you post your new content that will be helpful to find the problem if you don't your problem will not be solved Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
jhande Posted July 29, 2006 Share Posted July 29, 2006 Hi All. :D This is my first time here. Thanks for any support with my new use of osCommerce. It's been going well getting started. But I hit a snag updating the text on Index.php. I was just modifying the text following the four grey (DIR_WS_IMAGES . 'default/4.gif') . images attempting to keep everything as is but just changing the content. I believe my error is here in the fourth step. What's showing up is a indentation of about 1.5 inch now between the grey number gifs and the text. I'd like to change the red osCommerce 2.2-MS2 to something else too. And also at the bottom the products footer is now crammed all in the left hand side which seems related to the indentation. Maybe a table goof? Thanks for any suggestions as I am very new to this. Here's the lines I think are causing the problem: <br><br>If you wish to understand in greater depth the limits of air sampling and the latest science of air pollution please visit the <a href="http://www.epa.gov" target="_blank"><u>US Environmental Protection Agency</u></a> is considered a preliminary tool for air quality investigations.<font color="#f0000"><b>'. PROJECT_VERSION . '</b></font> . '); Without seeing the actual page code it is pretty much impossible to predict what went wrong. But if you inserted the above text into the wrong table cell it can in fact throw off alignment. The easiest way to test (if that's the only change made) is to delete the added text and see if the alignment comes back. May I ask how versed are you at editing HTML? How do you edit HTML (text editor or WYSIWYG editor)? This is how I would have written the code/text - <br> <br> <p>If you wish to understand in greater depth the limits of air sampling and the latest science of air pollution please visit the <a href="http://www.epa.gov" target="_blank">US Environmental Protection Agency</a>; is considered a preliminary tool for air quality investigations.<font color="#f0000"><b>'. PROJECT_VERSION. '</b></font> </p> Not much different. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
PD_Steve Posted July 29, 2006 Share Posted July 29, 2006 I agree with the above poster. From the problems you have stated I would say that you have broken a table somewhere. If the footer is all messed up too then I am more than certain you have a table formatting problem Try to make the tables available for viewing in your code by changing border="0" to border="1" in a few places (remember which places so you can revert back). That will make the table outlines visible and you will then see if the tables are infact broken. I would start around the top of your code changing the border variable and moving down (reverting back to 0 for the tables which are fine and setting border 1 to tables lower down). This way you should identify which table has broken and can then work on fixing it. I would also try to keep clear of using <BR> too much. You can use just copy the pixel_blank.gif lines in place of the <BR> or even use a <br style="line-height:3px;"> (where 3px is the space needed.. change 3 to whatever is needed). If you are using a text editor I would recommend changing to something like Crimson Editor which is a true text editor that does not add any hidden bits of code (like textpad and wordpad do). Saves hitting problems where all breaks and you know you did nothing wrong :) If you could post your code now including the table tags, it would help. Cheers My Toolbox: Crimson Editor, Adobe Photoshop CS2.0, Expression Web, Macromedia Suite 8.0, Cinema 4D, Nvu. Link to comment Share on other sites More sharing options...
davids771 Posted July 29, 2006 Author Share Posted July 29, 2006 Thanks for the suggestions. I've been editing with a text viewer directly on my hosting site and dreamweaver but basically just copying and pasting back and forth the changes. I had no idea that hidden code may be added. I'll give it another try tomorrow. TY. Link to comment Share on other sites More sharing options...
jhande Posted July 29, 2006 Share Posted July 29, 2006 Thanks for the suggestions. I've been editing with a text viewer directly on my hosting site and dreamweaver but basically just copying and pasting back and forth the changes. I had no idea that hidden code may be added. I'll give it another try tomorrow. TY. Since the change that you want to make is an HTML change, try it in Dreamweaver. While in Design View place your cursor where you want the text to be displayed. Switch to Code View and see if there is any special cell formatting, if not, switch back to Design View and it should be safe to add your text. While still in Dreamweaver, "Preview in Browser" to make sure everything is alright. Within Dreamweaver you should see the table borders as dashed lines in Design View even if the borders are set to zero. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
davids771 Posted July 29, 2006 Author Share Posted July 29, 2006 Since the change that you want to make is an HTML change, try it in Dreamweaver.While in Design View place your cursor where you want the text to be displayed. Switch to Code View and see if there is any special cell formatting, if not, switch back to Design View and it should be safe to add your text. While still in Dreamweaver, "Preview in Browser" to make sure everything is alright. Within Dreamweaver you should see the table borders as dashed lines in Design View even if the borders are set to zero. Ok, I can't figure it out. Here's my code with my additional text going in the ***** blurbs. I appreciate any help. <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ */ define('TEXT_MAIN', 'THANKS FOR VISITING OUR STORE! <b>****</b> ***** <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>First Time Visiting Our Store?</b><br><br>Please create an account before ordering. <br><span class="messageStackError">Want to order over the phone? Call customer service direct to order at ( ) - , M-F 8-4 (CST)</span></td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>What Happens After I Order?</b><br><br>You will receive a confirming email after payment is processed. Then we ship orders out M-F on the same day if recieved before 3:00 (CT).<br><nobr class="messageStackSuccess">In a hurry? Choose UPS Next Day Air.</nobr><br><br></td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>*****</b><br><br>******</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"><b>Results</b><br><br><a href="http://www.epa.gov" target="_blank"><u>US Environmental Protection Agency</u></a><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', ''); 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', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Link to comment Share on other sites More sharing options...
davids771 Posted July 30, 2006 Author Share Posted July 30, 2006 I posted the code yesterday that is giving me the indenting problem. Can anyone take a look at where the error is? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.