Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What is Parse error ????????????????


Guest

Recommended Posts

Posted

Changing text in header and text main, got no text except the words

Heading title and text main on defalt page , and parse error....

Posted

<?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:

Posted

message was error on line 13

changed text mai and heading title

Posted

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

Posted

it called the error on line 13, which line is that???

Posted

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.
Posted

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:

Posted

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:

Posted

Thanks Ron, I see the spell mistake, fingers moving to fast on one side of the keyboard

Posted

I made the mistake first, wheres that dictionary ?

Posted

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

Posted

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:

Posted

they had no/ between <font color='#f0000"> I still have that part printed out

Posted

Just curious does the <a/> you have at the end of the file work the same as </a>?

Posted

caught that and changed it to </a>

still get error line 13

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...