DEMAND Performance Posted December 13, 2005 Posted December 13, 2005 Any time that I modify my index.php, I receive this error: Parse error: parse error, unexpected T_STRING in /home/demandb/public_html/shop/includes/languages/english/index.php on line 19 I am simply trying to take out all the stock junk from the front page. This is my index.php: <?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', ''); 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'); } ?> I don't touch anything except what's inside the quotes and every time I do, it breaks. So what do I need to do in order to customize my front page? Thanks a bunch!
rabbitseffort Posted December 13, 2005 Posted December 13, 2005 Any time that I modify my index.php, I receive this error: Parse error: parse error, unexpected T_STRING in /home/demandb/public_html/shop/includes/languages/english/index.php on line 19 I am simply trying to take out all the stock junk from the front page. This is my index.php: I don't touch anything except what's inside the quotes and every time I do, it breaks. So what do I need to do in order to customize my front page? Thanks a bunch! change this line define('HEADING_TITLE', 'Let's See What We Have Here'); to this define('HEADING_TITLE', 'Let\'s See What We Have Here'); you need the slash in front of the apostrophe so it is read properly by the browser. The slash will not appear on your page, but it must be in the code. Hope this helps! :thumbsup:, at least I think that is your issue, give it a go, you may also need to do it to this line-- define('HEADING_TITLE', 'What's New Here?'); "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey"
DEMAND Performance Posted December 13, 2005 Author Posted December 13, 2005 Thanks, that did help, but it moved me to a new error: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/demandb/public_html/shop/includes/languages/english/index.php on line 33
rabbitseffort Posted December 13, 2005 Posted December 13, 2005 Thanks, that did help, but it moved me to a new error: well, this is line 33 define('TEXT_NOW', '' now'); so it looks like it should be define('TEXT_NOW', 'now'); hope this helps! :thumbsup: "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey"
DEMAND Performance Posted December 13, 2005 Author Posted December 13, 2005 well, this is line 33define('TEXT_NOW', '' now'); so it looks like it should be define('TEXT_NOW', 'now'); hope this helps! :thumbsup: I took it out and it's still firing it back at me. I had caught that the first time I kept going through this, however the fact it doesn't seem to totally solve it, is strange. Let me dump the code again: <?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', ''); 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'); } ?>
rabbitseffort Posted December 13, 2005 Posted December 13, 2005 I took it out and it's still firing it back at me. I had caught that the first time I kept going through this, however the fact it doesn't seem to totally solve it, is strange. Let me dump the code again: <?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', ''); 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'); } ?> well, while I am still online, try changing this define('TEXT_BUY', 'Buy 1 ''); to this define('TEXT_BUY', 'Buy 1'); and this define('HEADING_TITLE', 'What's New Here?'); to this define('HEADING_TITLE', 'What\'s New Here?'); post back so we can see what is next "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey"
DEMAND Performance Posted December 13, 2005 Author Posted December 13, 2005 You rock, thanks so much. That appears to have done it. I'll see if anything pops up while I'm tweaking. Thanks!
rabbitseffort Posted December 13, 2005 Posted December 13, 2005 You rock, thanks so much. That appears to have done it. I'll see if anything pops up while I'm tweaking. Thanks! I'm just giving back some of the knowledge that has been given to me, just repay the favor on the forums here when you can for someone else! :thumbsup: :thumbsup: "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey"
Guest Posted December 13, 2005 Posted December 13, 2005 Hello! Well, I am having a similar problem. The file manager will not allow me to change any of the coding from my index.php page because I would like to customize my homepage. I even created a homepage from stratch but I am not able to upload it to the site. Please tell me how I can alter or change the coding for my homepage or how I can upload my customized homepage? PLEASE HELP ME!!!!!!! Everytime I try to upload the file through file manager or ftp client nothing happens. THANKS
amestres Posted December 14, 2005 Posted December 14, 2005 Hello! Well, I am having a similar problem. The file manager will not allow me to change any of the coding from my index.php page because I would like to customize my homepage. I even created a homepage from stratch but I am not able to upload it to the site. Please tell me how I can alter or change the coding for my homepage or how I can upload my customized homepage? PLEASE HELP ME!!!!!!! Everytime I try to upload the file through file manager or ftp client nothing happens. THANKS I found out that when you use the File Manager within the Admin of osCommerce to change or modify files, you get the kind of errors listed in the above discussion. I recomend you use the FTP manager provided by the hosting company to upload files or to download/modify/reload. Hope this helps
DEMAND Performance Posted December 14, 2005 Author Posted December 14, 2005 Yup, it strips the "\" from the files. If you watch for that, you'll be okay it seems. It's a crappy tool, but its handy when you are away from your box.
Guest Posted December 14, 2005 Posted December 14, 2005 When you say hosting company, do you mean OS Commerce? If not, can you please recommend an FTP Manager so that I can upload files successfully. Also, Thanks Alex for helping get this far because I have been battling with this problem for over a month! Thanks I found out that when you use the File Manager within the Admin of osCommerce to change or modify files, you get the kind of errors listed in the above discussion. I recomend you use the FTP manager provided by the hosting company to upload files or to download/modify/reload. Hope this helps
DEMAND Performance Posted December 14, 2005 Author Posted December 14, 2005 I would recommend Dreamworks very highly, but if you want to edit files, download WS_FTP to upload them and edit them with Notepad.
rabbitseffort Posted December 15, 2005 Posted December 15, 2005 When you say hosting company, do you mean OS Commerce? If not, can you please recommend an FTP Manager so that I can upload files successfully. Also, Thanks Alex for helping get this far because I have been battling with this problem for over a month! Thanks your hosting company is who hosts your domain, not osc. osc is simply shopping cart software. But to edit and put files via FTP I prefer Dreamweaver, I use MX 2004 and I love it. It is simple to use and simple to correct mistakes you make. I do also sometimes use my hosts cpanel filemanager also, but mostly Dreamweaver, Give it a try :thumbsup: "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey"
amestres Posted December 16, 2005 Posted December 16, 2005 When you say hosting company, do you mean OS Commerce? If not, can you please recommend an FTP Manager so that I can upload files successfully. Also, Thanks Alex for helping get this far because I have been battling with this problem for over a month! Thanks Hey, no problem...I have been trying to set up my own site for a couple of weeks now (knowing absolutely nothing about osC) and I've gotten great help from everyone here, so glad to give back. What I mean by hosting co is the company who owns the server in wich you are hosting your site. Normally they have a control panel to give you acces to your site, change passwords, pick up web mail etc...they should also have something called FTP manager, which allows you to move files from their server to your computer, make backups, reload, etc. Rabbit is suggesting dreamweaver, and that might be an option..I am just too new at this and I thought the tool from my hosting company was good enough (and better than the osC file manager). BTW, I understand there is a contribution out now that solves the problem with the osC file manager, but I have not played with it yet.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.