tomtheman2 Posted October 13, 2007 Share Posted October 13, 2007 I just deleted the old text on the index page telling me about how to change the text, then I put in my own. This is what I have put <?php /* $Id: $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ Welcome to Vision Decks, please use the navigation bar on the left to work your way around the shop. Thanks Tom Store owner ?> But when I go to my index page, it now says this Parse error: syntax error, unexpected T_STRING in /www/110mb.com/v/i/s/i/o/n/d/e/visiondecks/htdocs/cartty/includes/languages/english/index.php on line 15 How can I fix this? I am really not very good with code so if someone can type it out for me it would be much appreciated. Thanks Tom Link to comment Share on other sites More sharing options...
germ Posted October 13, 2007 Share Posted October 13, 2007 This part: Welcome to Vision Decks, please use the navigation bar on the left to work your way around the shop. Thanks Tom Store owner Should be: define('TEXT_MAIN', 'Welcome to Vision Decks, please use the navigation bar on the left to work your way around the shop.<br> <br> Thanks<br> <br> Tom<br> Store owner<br>'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2007 Share Posted October 14, 2007 This part: Welcome to Vision Decks, please use the navigation bar on the left to work your way around the shop. Thanks Tom Store owner Should be: define('TEXT_MAIN', 'Welcome to Vision Decks, please use the navigation bar on the left to work your way around the shop.<br> <br> Thanks<br> <br> Tom<br> Store owner<br>'); I hope that was not the entire index.php file. Link to comment Share on other sites More sharing options...
germ Posted October 14, 2007 Share Posted October 14, 2007 The rest (from a "virgin" file): 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'); } If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
tomtheman2 Posted October 14, 2007 Author Share Posted October 14, 2007 Cool thanks, but at the very top of everypage it says this... Warning Warning: I am able to write to the configuration file: /www/110mb.com/v/i/s/i/o/n/d/e/visiondecks/htdocs/cartty/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. Does anyone know how to configure it?? Link to comment Share on other sites More sharing options...
germ Posted October 14, 2007 Share Posted October 14, 2007 You have to use your site's Control Panel (provided by your Web host - not a function of osCommerce). You'll probebaly need to find the "File Manager" inside the Control Panel. Many of them work like this when it comes to changing file permissions: Usually, you navigate to the folder where the file you want to change permissions on is located. Click on the file you want to change permissions on. A 3 x 3 matrix of checkmarks will appear. Vertically you'll see something like: User Group Other Horizontally you'll see: Read Write Exec (or Execute). For "User", check the "Read" and "Write" boxes ONLY! For "Group" and "Other", check the "Read" box ONLY! If there are checkmarks in other boxes, clear them. Then click the "Change" or "Apply" button. This is an example only. Your Control Panel may look and function in a slightly different manner. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2007 Share Posted October 14, 2007 You have to use your site's Control Panel (provided by your Web host - not a function of osCommerce). You'll probebaly need to find the "File Manager" inside the Control Panel. Many of them work like this when it comes to changing file permissions: Usually, you navigate to the folder where the file you want to change permissions on is located. Click on the file you want to change permissions on. A 3 x 3 matrix of checkmarks will appear. Vertically you'll see something like: User Group Other Horizontally you'll see: Read Write Exec (or Execute). For "User", check the "Read" and "Write" boxes ONLY! For "Group" and "Other", check the "Read" box ONLY! If there are checkmarks in other boxes, clear them. Then click the "Change" or "Apply" button. This is an example only. Your Control Panel may look and function in a slightly different manner. :blush: Some ftp programs can also do it. I just find the control panel a cumbersome way to do it. Link to comment Share on other sites More sharing options...
germ Posted October 14, 2007 Share Posted October 14, 2007 And sometimes FTP programs fail. But it's good that you mentioned that avenue... It might work for him. ;) If you use an FTP program, you might be asked for a "numerical value" for the permissions. Try 644 first. If the message still appears on your web pages, try again using 444. If the message still appears on your web pages, it would mean you'll need to use your Control panel. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2007 Share Posted October 14, 2007 And sometimes FTP programs fail. But it's good that you mentioned that avenue... It might work for him. ;) If you use an FTP program, you might be asked for a "numerical value" for the permissions. Try 644 first. If the message still appears on your web pages, try again using 444. If the message still appears on your web pages, it would mean you'll need to use your Control panel. Exactly right. Apparently some servers require 444. My webhost recommended that I use filezilla as the ftp program (I made the mistake of using IE to ftp the files and got into all sorts of problems) that I use. Since it is free download and free to use, I use that. I used to use another ftp program, but that screwed up. Another thing, if on a windows server, it may be different. On my windows PC(using WAMP), I just need to set it as read only. Link to comment Share on other sites More sharing options...
tomtheman2 Posted October 14, 2007 Author Share Posted October 14, 2007 OMG you guys rock!!! Thanks a load :D Now I just need to work out how to add uk zones. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.