dawglse Posted March 11, 2004 Share Posted March 11, 2004 This is the coding im using for the index: <?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 (c) 2003 osCommerce ?Released under the GNU General Public License */ define('TEXT_MAIN', 'HI! Welcome to the Basket Designs Plus More Shop! Were currently still in the works of doing the shop so please check back very soon. How ever, we do have some items, but not baskets. If you need a basket please go back to the home page and click "custom baskets" and fill out the form and we'll get back to you within 24 hours. <br><Br> Basket Designs Plus More is a sells gift baskets & home decor and other fine products for the garden, home, or what ever. We are NOT doing this for money, well kind of, but all the profits goes to a local church. The ONLY money we take out from the profits are:<br> <li> Hosting Fees (Every 3 Months) <br> <li> Domain Fees (Every Year)<br><br> Browse our fine home decor/gift baskets, if you do not see any gift baskets you like please send out a custom basket e-form on the main pages.'); 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', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { ?define('HEADING_TITLE', 'Categories'); } ?> And when in the shop i get this error: Parse error: parse error in /home/virtual/site28/fst/var/www/html/shop/includes/languages/english/index.php on line 13 And all the headings get messed up too. look at it http://www.basketdesignsplusmore.com/shop/ But however when i use somthing simple for the main text it works perfectly. For example if i but test testing testing it worked. Link to comment Share on other sites More sharing options...
spib Posted March 11, 2004 Share Posted March 11, 2004 It's probably the speech marks you have used around 'customer baskets' in your TEXT_MAIN. Try placing a \ before each of the speech marks to escape them. Link to comment Share on other sites More sharing options...
Guest Posted March 11, 2004 Share Posted March 11, 2004 im having the same problem. I want to remove all the crap and just leave new products bit at the bottom Also could someone post a commented version of the index page just i am not familiar with php Regards Dave Link to comment Share on other sites More sharing options...
dawglse Posted March 11, 2004 Author Share Posted March 11, 2004 nope. I tried removing all line breaks, <BR> tags <li> tags and i removed the " " marks all together. So whats wrong? Link to comment Share on other sites More sharing options...
wizardsandwars Posted March 11, 2004 Share Posted March 11, 2004 <?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 (c) 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'HI! Welcome to the Basket Designs Plus More Shop! Were currently still in the works of doing the shop so please check back very soon. How ever, we do have some items, but not baskets. If you need a basket please go back to the home page and click \"custom baskets\" and fill out the form and we\'ll get back to you within 24 hours. <br><Br> Basket Designs Plus More is a sells gift baskets & home decor and other fine products for the garden, home, or what ever. We are NOT doing this for money, well kind of, but all the profits goes to a local church. The ONLY money we take out from the profits are:<br> <li> Hosting Fees (Every 3 Months) <br> <li> Domain Fees (Every Year)<br><br> Browse our fine home decor/gift baskets, if you do not see any gift baskets you like please send out a custom basket e-form on the main pages.'); 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', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
dawglse Posted March 11, 2004 Author Share Posted March 11, 2004 Thank You! It worked like a charm! :D What exactly did you do to it? :blink: Link to comment Share on other sites More sharing options...
wizardsandwars Posted March 11, 2004 Share Posted March 11, 2004 You have to place a backslash(\) before and single, or double quotes in the content of the defines. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.