japan Posted March 18, 2004 Share Posted March 18, 2004 HI, I did not make back up because I do not know how to do this. I installed japanese language contribution which needs a lot of correction as it was made for MS2.2 M1. English was fine until I started to modify index.php and...it made me crazy now. Please help me to sort it out. I do not know how should I count lines, so if there is an error in line 19 I have no idea where is this line and what`s the problem :( Here it is what I get in english page: Parse error: parse error in /var/www/html/catalog/includes/languages/english/index.php on line 19 Where is the problem?? <?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', 'This is <b>........</b> .............................<br><br>We will be back.<br><b> Impol.....</b> ............</br>'); 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'); } ?> This is in Japanese language: Parse error: parse error in /var/www/html/catalog/includes/languages/japanese/index.php on line 36 Here it is index.php <?php/* $Id: default.php,v 1.7 2003/05/06 12:10:02 hawk Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '、ウ、ホ・レ。シ・ク、マ。「・ェ・鬣、・キ・逾テ・ラ、ホ・ヌ・筵ケ・ネ・・シ・キ・逾ヌ、ケ。」<b>、エケリニ、ヒ、ハ、テ、ソセヲノハ、マ。「ヌロチ簑チオ皃筅オ、・゙、サ、」</b>セヲノハ、ス、ホツセ、ヒ、ト、、、ニ、ホセマチエ、ニイヘカホ、筅ホ、ヌ、ケ。」<br><br>、筅キ。「、「、ハ、ソ、ャ、ウ、ホ・ェ・鬣、・キ・逾テ・ラ。ヲ・ヌ・筅タ・ヲ・悅シ・ノ、キ、ニサネ、テ、ニ、゚、ソ、、、ネサラ、テ、ソ、遙「、ウ、ホ・ラ・愠ク・ァ・ッ・ネ、ヒケラク・、キ、隍ヲ、ネサラ、テ、ソ、ハ、鬘「、シ、メ<a href="http://oscommerce.com"><u> ・オ・ン。シ・ネ・オ・、・ネ </u></a>、ャ、・ニ、ッ、タ、オ、、。」、ウ、ホ・ェ・鬣、・キ・逾テ・ラ、マ。「<font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>、ヌケステロ、オ、・ニ、、、゙、ケ。」<br><br>コ」ノスシィ、オ、・ニ、、、・ハニノ、ヌ、、、・ヒ・ニ・ュ・ケ・ネ、マ。「シ。、ホ・ユ・。・、・・ヒオュスメ、オ、・ニ、、、゙、ケ。」ホ・[catalog・ヌ・」・・ッ・ネ・鷯/includes/languages/[japanese]/default.php.<br><br>、ウ、・マ。「エノヘ・皈ヒ・蝪シキミヘウ。「ウニシ・ト。シ・・クタク・・チ->[language]->Define・ェ・ラ・キ・逾「、゙、ソ、マウニシ・ト。シ・・>・ユ・。・、・・ノヘオ。ヌス、ネ、ヲ、ウ、ネ、ヒ、隍テ、ニシ・ー、ヌハヤスク、ケ、・ウ、ネ、ャ、ヌ、ュ、゙、ケ。」'); define('TABLE_HEADING_NEW_PRODUCTS', '%s 、ホソキテ蠕ヲノハ'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'ニイルヘスト熙ホセヲノハ'); define('TABLE_HEADING_DATE_EXPECTED', 'ニイルヘスト・・); if ( ($category_depth == 'products') || ($HTTP_GET_VARS['manufacturers_id']) ) { define('HEADING_TITLE', 'シ隹キ、、セヲノハ'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'キソネヨ'); define('TABLE_HEADING_PRODUCTS', 'セヲノハフセ'); define('TABLE_HEADING_MANUFACTURER', '・癸シ・ォ。シ'); define('TABLE_HEADING_QUANTITY', 'ソフ'); define('TABLE_HEADING_PRICE', 'イチウハ'); define('TABLE_HEADING_WEIGHT', 'スナホフ'); define('TABLE_HEADING_BUY_NOW', 'コ」、ケ、ーケリニ'); define('TEXT_NO_PRODUCTS', '、ウ、ホ・ォ・ニ・エ・遙シ、ホセヲノハ、マ、「、熙゙、サ、・..'); define('TEXT_NO_PRODUCTS2', '、ウ、ホ・癸シ・ォ。シ、ホセヲノハ、マ、「、熙゙、サ、・..'); define('TEXT_NUMBER_OF_PRODUCTS', 'コ゚クヒソ・ '); define('TEXT_SHOW', '<b>ケハケ、゚:</b> '); define('TEXT_BUY', 'コ」、ケ、ー '); define('TEXT_NOW', ' 、リニ、ケ、・); define('TEXT_ALL', 'チエ、ニ'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What's New!'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', '・ォ・ニ・エ・遙シ'); } ?> To see what I mean please check my site, which still need a lot of job. I also don`t understand why green color in boxes doesn`t cover all only partly. Why is that? Impol Japan Do not take this site too serious. I put staff there for a while to check how it works. It was great till today:-( Thank you all of you for help. Appreciate it. Adam Link to comment Share on other sites More sharing options...
bloodshoteyes Posted March 18, 2004 Share Posted March 18, 2004 To begin with your not using a PHP editor to edit these files. You are using the file manager. Not a good idea. Get a good PHP editor and you should limit your problems. Parsing error - you need to check(in a PHP editor) for extra white spaces at the end of the line 19, and maybe any line you edited. The reason the box backround is not green is because you did not change the box backround color in the stylesheet.css..... Link to comment Share on other sites More sharing options...
webpsico Posted March 18, 2004 Share Posted March 18, 2004 Try to change 'What's New!' into 'What\'s New!' Link to comment Share on other sites More sharing options...
webpsico Posted March 18, 2004 Share Posted March 18, 2004 Find in the source the class name of the area where the colors are not right: eg:<td height="14" class="infoBoxHeading"> Then go to stylesheet.css and find that class (in this case .infoBoxHeading) There you set the right color. Here you'll find a good free editor to view and modify PHP files: Context Link to comment Share on other sites More sharing options...
japan Posted March 18, 2004 Author Share Posted March 18, 2004 Thank you all of you. BLOODSHOTEYES I downloaded CONTEXT as WEBPSICO advised for editing files. Neeed to read yet, because no idea how to use it. I`m really new in PHP. What white spaces? As I said, no idea about counting lines and even if I find those spaces cannot do anything. Could you please give me an example. Thank you ;) I have changed all layout of my page in stylesheet.css, but will try to modify again. WEBPSICO Do I need to download Custom highlighter files too? ( PHP-HTML or PHP-HTML Light) It maybe strange, but cannot find left side slash \ on my keyboard, but have right side / Where is source the class? I know where to find in stylesheet.css, but source the class (??) I`m sorry guys, but I`m really new. If it was in HTML everything then I wouldn`t have so many problems :huh: Thanks again and looking forward to hearing from you. Adam Link to comment Share on other sites More sharing options...
241 Posted March 18, 2004 Share Posted March 18, 2004 Ok english/index.php line 19 issue define('HEADING_TITLE', 'Let?s See What We Have Here'); resolve define('HEADING_TITLE', 'Let\'s See What We Have Here'); japanese/index.php line 36 issue define('HEADING_TITLE', 'What's New!'); not in japanese, however should be define('HEADING_TITLE', 'What\'s New!'); Issue green parts in boxes resolve change images in catalog/includes/images/infoboxes/ these images are the corner image graphics which require to be changed in colour to the green of your site No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
japan Posted March 18, 2004 Author Share Posted March 18, 2004 BLOODSHOTEYES you were right. To make changes in File Manager is not good. WEBPSICO I found PHP editor very good. Thank you. Why changes in File Manager are not good? I realized that all files are like at the beginning. They looks as have never been modified. What should I do now. If I change in PHP Editor and then upload again, I may start everything from the beginning. Files have been changed in File Manager but here they are not. If I save and upload again to my server then it will be mess I think. :o Do you understand what I mean? Will approciate your answer. Thank you guys :) Link to comment Share on other sites More sharing options...
japan Posted March 18, 2004 Author Share Posted March 18, 2004 Steve You are back again to me. I realy very, very approciate it. I will try it later and let you know. Now is morning in Japan and need to go out soon. Could you read my reply post above? I have also changed in File Manager japanese default.php into index.php because contribution was for MS2.2 M1 and it looks OK, but using soft Context this file is not changed. Is there another way of changing it than File Manager? I`m sorry but I really get crazy. Thanks again Adam Link to comment Share on other sites More sharing options...
241 Posted March 18, 2004 Share Posted March 18, 2004 a good program fo r comparison and compare is beyond compare from Click you can udse dreamweaver to edit files and you are well adivsed not to use the online file manager to deit files as there is a known issue of file manager removing \ backslashes from the code which will cause a parse error it is much better to download the file with an ftp program such as ws_ftp and edit offline then upload using the ftp program which is also usefull for setting permissions for chmod. For Japanese language you could copy english and convert if necessary. No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
japan Posted March 18, 2004 Author Share Posted March 18, 2004 Seems like I fixed the problem. I used CONTEXT for editing. Finding old files, I just uploaded them again and it came back to normal. I changed japanese default.php into idex.php in ftp and uploaded. IT seems like very slowl but I`m getting there. My Webpage No time now, but will work on colors in boxes. stylesheet.css is fine for me, but where I find the source the class name of the area where the colors are not right:eg:<td height="14" class="infoBoxHeading"> as sugested by Webpsico. There is another problem on japanese site too. Information - Shipping etc Why it shows between japanese letters this: 。 [catalog/includes/languages/japanese/shipping.php I gave an example, but it shows in all info, wherever you click. There is fine in english language. Really need to go. Thank you very, very much for your help. Adam Link to comment Share on other sites More sharing options...
webpsico Posted March 19, 2004 Share Posted March 19, 2004 To find a class name (<td height="14" class="infoBoxHeading">), just right click on the page (somewhere in the text). If Context is installed right, it has replaced Notepad and will open with the source code of that page. If, for example, the back groundcolor of the text "New Products For March" would be not right, then click in Conext on the button with the binocculars and type: New Products. The press "search" Context will find the text by highlighting it. Then look for the code before the text. There should be something like: <td height="14" class="infoBoxHeading"> Now you can modify "infoBoxHeading" in stylesheet.css About [catalog/includes/languages/japanese/shipping.php Just follow that path in your files to find shipping.php Open it and modify this: define('TEXT_INFORMATION', 'Put here your Shipping & Returns information.'); Link to comment Share on other sites More sharing options...
lynnwork Posted March 19, 2004 Share Posted March 19, 2004 :blink: Hi everyone, I know a lot less than Adam. I've never even dabbled in HTML. Where do I download this context file from? How do I download a file into the context file for editing? How do I upload the completed file? Which file contains the text on the main page of the website? Just call me green! Lynn Link to comment Share on other sites More sharing options...
total_newbie! Posted March 19, 2004 Share Posted March 19, 2004 Go to this link and download winsyntax. It shows you line numbers for each file you open! It's helped me a lot!!! Winsyntax Link to comment Share on other sites More sharing options...
japan Posted March 22, 2004 Author Share Posted March 22, 2004 Webpsico Thank you again. I will try it out. Thanks all of you. :) Adam Link to comment Share on other sites More sharing options...
japan Posted March 22, 2004 Author Share Posted March 22, 2004 Webpsico "Context is installed right, but it still opens on Notepad or Memo :unsure: Why is that?? Link to comment Share on other sites More sharing options...
japan Posted March 23, 2004 Author Share Posted March 23, 2004 This is what I found. What should I do next? <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="14"></td> <td height="14" class="infoBoxHeading" width="100%">New Products For March</td> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> </tr> I opened stylesheet.css and found this on line 120 TD.infoBoxHeading { font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; background: #228449; color: #ffffff; Any help appreciated. Thank you again :) Link to comment Share on other sites More sharing options...
241 Posted March 23, 2004 Share Posted March 23, 2004 As I said before the grey bits that you see are nothing to do with the stylesheet that they are infact images that can be found in images/infobox/corner_right_left.gif and images/infobox/corner_left.gif as can be seen from your snippet of code above <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="14"></td> ? ?<td height="14" class="infoBoxHeading" width="100%">New Products For March</td> ? ?<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> ?</tr> however if you feel that it is the stylesheet then the color is the bit of code that says background background: #228449; but first I would ask that you look in your catalog/images/infobox/ directory and look at the images you find there, you will see that they correspond to the grey images that you see on your site No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
japan Posted March 25, 2004 Author Share Posted March 25, 2004 Steve Thank you for your help again. You`re right there is nothing to do with stylesheet.css. I have colour number exactly as you mentioned. You are the first person who wrote very clear where I should check. The code pasted by you is the right one? Can I just copy and paste into images/infobox/corner_right_left.gif ? One more question. There was forum about it but lost it. There are many people and I`m one of them who do not receive emails confirmed sale, so I won`t know whether someone bought or not futhermore, the same is while sending email through CONTUCT US page. I do not receive anything. Will very approciayte your help Adam Link to comment Share on other sites More sharing options...
japan Posted March 25, 2004 Author Share Posted March 25, 2004 I`m sorry. I asked stupid question about copy and paste. :o This is exactly the same code as my above. Didn`t realized that. I cannot see anything I can change there because I have no idea about PHP. Would you help me, please :) Thanks in advance Adam Link to comment Share on other sites More sharing options...
241 Posted March 25, 2004 Share Posted March 25, 2004 Adam if you want to keep the curved corners then edit the images to be the colour you want if you dont want the curves then you could again edit the images but make them blocks of colour or locate the reference to the images in all the pages and remove them or make all the images transparent gifs this again will make all the corners square instead of curved. for the email what settings do you have in admin are you using smtp or sendmail do you have the correct email addresses entered do you have anything entered for send extra emails do you have send emails set to true No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.