Guest Posted February 24, 2003 Posted February 24, 2003 Changing text in header and text main, got no text except the words Heading title and text main on defalt page , and parse error....
rseigel Posted February 24, 2003 Posted February 24, 2003 Care to be more specific? Have a link we can see?
Guest Posted February 24, 2003 Posted February 24, 2003 <?php /* $Id: default.php,v 1.18 2002/01/14 10:34:17 jan0815 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Welcome to our shop, grab a cup of coffee, relax and browse over our products, all of which are discounted. <BR> For Recipes, Kids Fun, Health Questions, Bird and Garden Information and Our link partners that have great products also, in many different catagoires <a href="http://gateway4gifts.net"><font color="#f0000"><b>' . Click Here . '</b><a/></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' || $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', 'All'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'Gateway4gifts'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> :wink:
Guest Posted February 24, 2003 Posted February 24, 2003 message was error on line 13 changed text mai and heading title
gambitdis Posted February 24, 2003 Posted February 24, 2003 In TEXT_MAIN, you need to escape certain characters. If you want a ' you need to escape it like this: ' Look at the define 'HEADING_TITLE' for an example. --derek
Guest Posted February 24, 2003 Posted February 24, 2003 it called the error on line 13, which line is that???
charles Posted February 24, 2003 Posted February 24, 2003 Less specifically, a 'parse error' means you are missing some delimiter such as a comma, semicolon, paren, etc. Charles We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Guest Posted February 24, 2003 Posted February 24, 2003 does anyone see something missing in line 13 ???
rseigel Posted February 24, 2003 Posted February 24, 2003 Change: define('TEXT_MAIN', 'Welcome to our shop, grab a cup of coffee, relax and browse over our products, all of which are discounted. <BR> For Recipes, Kids Fun, Health Questions, Bird and Garden Information and Our link partners that have great products also, in many different catagoires <a href="http://gateway4gifts.net"><font color="#f0000"><b>' . Click Here . '</b><a/></font>.'); to define('TEXT_MAIN', 'Welcome to our shop, grab a cup of coffee, relax and browse over our products, all of which are discounted. <BR> For Recipes, Kids Fun, Health Questions, Bird and Garden Information and Our link partners that have great products also, in many different catagories <a href="http://gateway4gifts.net"><font color="#f0000"><b>' . Click Here . '</b><a/></font>.'); (spelling mistake fixed too) :wink:
rseigel Posted February 24, 2003 Posted February 24, 2003 Oops... define('TEXT_MAIN', 'Welcome to our shop, grab a cup of coffee, relax and browse over our products, all of which are discounted. <BR> For Recipes, Kids Fun, Health Questions, Bird and Garden Information and Our link partners that have great products also, in many different categories <a href="http://gateway4gifts.net"><font color="#f0000"><b>' . Click Here . '</b><a/></font>.'); Had to fix my own spelling mistake that time. :roll:
Guest Posted February 24, 2003 Posted February 24, 2003 Thanks Ron, I see the spell mistake, fingers moving to fast on one side of the keyboard
Guest Posted February 24, 2003 Posted February 24, 2003 I made the mistake first, wheres that dictionary ?
Guest Posted February 24, 2003 Posted February 24, 2003 Copyright © 2002 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Welcome to our shop, grab a cup of coffee, relax and browse over our products, all of which are discounted. <BR> For Recipes, Kids Fun, Health Questions, Bird and Garden Information and Our link partners that have great products also, in many different categoires <a href="http://gateway4gifts.net/links/index"><font color="#f0000"><b>' . Click Here . '</b><a/></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' || $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', 'All'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'Gateway4gifts'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Still comes up parse line 13
rseigel Posted February 24, 2003 Posted February 24, 2003 Oops.... Should be: define('TEXT_MAIN', 'Welcome to our shop, grab a cup of coffee, relax and browse over our products, all of which are discounted. <BR> For Recipes, Kids Fun, Health Questions, Bird and Garden Information and Our link partners that have great products also, in many different categoires <a href="http://gateway4gifts.net/links/index"><font color="#f0000"><b>' . Click Here . '</b><a/></font>.'); Have to escape the quotes too. It's late... :roll:
Guest Posted February 24, 2003 Posted February 24, 2003 they had no/ between <font color='#f0000"> I still have that part printed out
Guest Posted February 24, 2003 Posted February 24, 2003 Just curious does the <a/> you have at the end of the file work the same as </a>?
Guest Posted February 24, 2003 Posted February 24, 2003 caught that and changed it to </a> still get error line 13
Guest Posted February 24, 2003 Posted February 24, 2003 You are all really close...... Remove the' . and . ' from around the click here. You can use <a href="http://www.anyplace.com">CLICK HERE</a> inside a language file.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.