yoursoccershirts Posted July 24, 2008 Posted July 24, 2008 Anyone know why this is happening?? this is the line in question Line 13 = define('TEXT_MAIN', 'Want the best deals on soccer shirts?, you came to the right is there something missing ?? this is the whole paragraph define('TEXT_MAIN', 'Want the best deals on soccer shirts?, you came to the right place. Yoursoccershirts.com offers shirts from all the major leading club teams, and international teams from around the world.<b>***OUR PRICES ARE FULL PRICE'S NO HIDDEN EXTRA'S,PRICE INCLUDES SHIRT,NAME,NUMBER,PATCHES & FAST TRACK SHIPPING, ALSO DON'T FORGET TO CHECK OUR SPECIALS SECTION***</b>.Get the best prices available on all soccer shirts today, also check out our special offer section.</font>');
lindsayanng Posted July 24, 2008 Posted July 24, 2008 i believe you need it to be: define('TEXT_MAIN', 'Want the best deals on soccer shirts\?, you came to the right however, i think that the '?' is out of place and NOT gramatically correct. I would loose it all together. '?' is only used for the END of a sentence A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
yoursoccershirts Posted July 24, 2008 Author Posted July 24, 2008 i believe you need it to be: define('TEXT_MAIN', 'Want the best deals on soccer shirts\?, you came to the right however, i think that the '?' is out of place and NOT gramatically correct. I would loose it all together. '?' is only used for the END of a sentence Strange im still getting the error and this is what i have changed it to below. define('TEXT_MAIN', 'Want the best deals on soccer shirts, you came to the right place. Yoursoccershirts.com offer shirts from all the major leading club teams, and international teams from around the world.<b>***OUR PRICES ARE FULL PRICE'S NO HIDDEN EXTRA'S, PRICES INCLUDES SHIRT, NAME, NUMBER, PATCHES & FAST TRACK SHIPPING, ALSO DON'T FORGET TO CHECK OUR SPECIALS SECTION***</b>.Get the best prices available on all soccer shirts today, also check out our special offer section.</font>');
lindsayanng Posted July 24, 2008 Posted July 24, 2008 post the rest of the code for the page A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
yoursoccershirts Posted July 24, 2008 Author Posted July 24, 2008 post the rest of the code for the page Here u go lindsa this is the error Parse error: syntax error, unexpected T_STRING in /home/myusername/public_html/shop/includes/languages/english/index.php on line 13 and this is the full code <?php /* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Want the best deals on soccer shirts, you came to the right place. Yoursoccershirts.com offer shirts from all the major leading club teams, and international teams from around the world.<b>***OUR PRICES ARE FULL PRICE'S NO HIDDEN EXTRA'S, PRICES INCLUDES SHIRT, NAME, NUMBER, PATCHES & FAST TRACK SHIPPING, ALSO DON'T FORGET TO CHECK OUR SPECIALS SECTION***</b>.Get the best prices available on all soccer shirts today, also check out our special offer section.</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', 'Its Your Club, Its Your Shirt.'); 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', 'YourSoccerShirts.com, Its Your Club, Its Your Shirt.'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?>
♥geoffreywalton Posted July 24, 2008 Posted July 24, 2008 You need to "escape" certain characters, single quote being one of them e.g. EXTRA'S becomes EXTRA\'S I can see at least 2 places where you need to do it. 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 ======>>>>>.
♥FWR Media Posted July 24, 2008 Posted July 24, 2008 If you are having problems like this and you would like an easy way out without having to escape characters the answer is use here-doc this also works superbly for javascript Take the code in your first post .. the following will work yet the text is unchanged. $mytext = <<<MYTEXT Want the best deals on soccer shirts?, you came to the right place. Yoursoccershirts.com offers shirts from all the major leading club teams, and international teams from around the world. <b>***OUR PRICES ARE FULL PRICE'S NO HIDDEN EXTRA'S,PRICE INCLUDES SHIRT,NAME,NUMBER,PATCHES & FAST TRACK SHIPPING, ALSO DON'T FORGET TO CHECK OUR SPECIALS SECTION***</b>. Get the best prices available on all soccer shirts today, also check out our special offer section.</font> MYTEXT; define('TEXT_MAIN', $mytext); Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
lovethelimelight Posted September 1, 2008 Posted September 1, 2008 By the way, on both of those where you used the apostrophe/single quote, in extra's and price's, it is grammatically INCORRECT to use the apostrophe anyway, so rather than doing the forward slash, just remove the apostrophe/single quote altogether. I'm a grammar nazi/freak, so if you would like someone to look over your site and correct any other errors, I would LOVE to do it. Just pm me.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.