rev3lati0n Posted September 15, 2005 Share Posted September 15, 2005 man ive been wasting a ton of time on this :\ sorry if this is a repeat i DID search the forums for this but didnt find a solution. anyway, heres my file <?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 © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'please display something'); 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'); } ?> ok so i followed the directions. It still just displays TEXT_MAIN on my website... look.... http://www.gatewayvineyard.com/shop thanks in advance.. this HAS to be an easy fix Link to comment Share on other sites More sharing options...
kirkside Posted September 15, 2005 Share Posted September 15, 2005 Took me ages of playing to get it right as well. I am fairly new to this stuff, but the below works. There is probably someone out there that knows more and could clean out more, but this works. define('TEXT_MAIN', 'This site is currently under construction. <table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top"></td><td class="main" valign="top"><b><span class="messageStackError"></td></tr><td class="main" valign="top">' . '</td><td class="main" valign="top"></nobr><nobr></nobr></u></a></td></tr><tr><td class="main" valign="top"></td><td class="main" valign="top"></td></tr><tr><td class="main" valign="top"></td><td class="main" valign="top"></u></a> </td></tr></table> <u></u></a> <font color="#f0000"></font>'); man ive been wasting a ton of time on this :\ sorry if this is a repeat i DID search the forums for this but didnt find a solution. anyway, heres my file <?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 ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'please display something'); 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'); } ?> ok so i followed the directions. It still just displays TEXT_MAIN on my website... look.... http://www.gatewayvineyard.com/shop thanks in advance.. this HAS to be an easy fix <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
OceanRanch Posted September 15, 2005 Share Posted September 15, 2005 Start with a fresh copy of the file and DO NOT edit it with the oscommerce File Manager Editor. It has a bug that removes the backslash escape character \ which is required to enter the single apostophe '. Edit locally on your PC then ftp to your site. HTH Tom Link to comment Share on other sites More sharing options...
rev3lati0n Posted September 16, 2005 Author Share Posted September 16, 2005 thanks both of you for your input. The ftp thing is what worked. its wierd, but i could only get it to work when I uploaded it from ftp. even if i had no apostrophes. whatever... :) it works now! thanks! Link to comment Share on other sites More sharing options...
Guest Posted September 18, 2005 Share Posted September 18, 2005 Oh, this is killing me. I'm having the same problem, and have tried exactly what you said (fresh copy, edit it in a text editor, upload with an ftp), and I am STILL getting that stupid, "Parse error: parse error, unexpected T_STRING in /home/theloony/public_html/onlineshop/includes/languages/english/index.php on line 13" What am I doing wrong?? Any help will be TREMENDOUSLY appreciated. Thank you! amy Link to comment Share on other sites More sharing options...
Guest Posted September 18, 2005 Share Posted September 18, 2005 Okay... I have two carts installed - one that I'm working on, and one that's untouched so I can go back to an unmodified file when I screw up java script:emoticon(':blink:'). And I kept trying to replace the index.php file with the untouched original, but was still getting the dang parse, parse error. It seems that, because I opened the untouched index.php in oscommerce's file manager - just to copy and paste it - it must have gone buggy. I uninstalled my spare cart, reinstalled it, did it all over again with the new, really-untouched spare file, and it's now working. So. No more oscommerce file manager for me, no matter how much easier it was to handle that way... thanks for this topic - I would never have figured it out without this! java script:emoticon(':thumbsup:') Now, if I can just get those stupid little blue corners to change to red on the text boxes... sigh... but that's another topic... - amy (who doesn't usually emote - but must be getting waaaaaay overtired because some of those 'cons look pretty cute) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.