Eden Posted February 16, 2006 Posted February 16, 2006 I think this is the right place to post this, sorry if it isn't! Well, I've been editing: /shopfront/includes/languages/english/index.php I edited the TEX_MAIN content and currently the code is as shown below: <?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', '<div align="center"> <table cellpadding="0" cellspacing="0" width="500" height="19"> <!-- MSTableType="layout" --> <tr> <td bgcolor="#BBC3D3" height="19" width="500"> <p align="center"><b><font size="1" face="Verdana" color="#FFFFFF"> Welcome To EdenEye</font></b></td> </tr> </table> </div> <p align="center"><font face="Verdana" size="1">Hello, as you probably know by now here at EdenEye we specialise in the creation and distribution of Gothic, Alternative and Horror related items and collectables! We sell many different items made my many popular companies, and of course some items made by the staff here at EdenEye, such as custom doll clothing suited to fit many popular doll ranges.</font></p> <p align="center"><font face="Verdana" size="1">We hope you enjoy your shopping experience with us, please feel free to contact us with questions or comments, we are always more than happy to help.</font></p> '); 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 tried to edit this again but when I save it it says it has an error. The code I have added is: <td bgcolor="#BBC3D3" height="19" width="500"> <p align="center"><b><font face="Verdana" size="1" color="#FFFFFF"> Donations</font></b></td> </tr> </table> </div> <p align="center"><font face="Verdana" size="1">EdenEye needs support during its first few months so that it can grow in to a successful and reputable collectors store. Donations of any amount during these first few months will really help us to acheive our goals and are very much appreciated. The money we receive from donations will go towards such things as our stock, fees and advertisement, all of which are curcial to our success!</font></p> <p align="center"><font face="Verdana" size="1">Thank you to all who donate, we are very greteful. We hope you return soon to see how your donations have helped us progress.</font></p> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <p align="center"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHNwYJKoZIhvcNAQcEoIIHKDCCByQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJ BgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA 1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC 5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCG0gSdeXCZmai8dHt43e07LftklVb17t6T7cCuSkTXEggPZM0 mu5OP79qacz12qh3CoL5NE0jJKM6APxCZw1Drrs/CPi7ugoIPgx8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dana">[ <i>Click the button above to make a donation via PayPal, either by credit card or via your personal PayPal account</i> ]</font></p> As I said when I add this it has an error, this is what the code looks like when I add it to TEXT_MAIN: <?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', '<div align="center"> <table cellpadding="0" cellspacing="0" width="500" height="19"> <!-- MSTableType="layout" --> <tr> <td bgcolor="#BBC3D3" height="19" width="500"> <p align="center"><b><font size="1" face="Verdana" color="#FFFFFF"> Welcome To EdenEye</font></b></td> </tr> </table> </div> <p align="center"><font face="Verdana" size="1">Hello, as you probably know by now here at EdenEye we specialise in the creation and distribution of Gothic, Alternative and Horror related items and collectables! We sell many different items made my many popular companies, and of course some items made by the staff here at EdenEye, such as custom doll clothing suited to fit many of the popular alternative doll ranges.</font></p> <p align="center"><font face="Verdana" size="1">We hope you enjoy your shopping experience with us, please feel free to contact us with questions or comments, we are always more than happy to help.</font></p><div align="center"> <table cellpadding="0" cellspacing="0" width="500" height="19"> <!-- MSTableType="layout" --> <tr> <td bgcolor="#BBC3D3" height="19" width="500"> <p align="center"><b><font face="Verdana" size="1" color="#FFFFFF"> Donations</font></b></td> </tr> </table> </div> <p align="center"><font face="Verdana" size="1">EdenEye needs support during its first few months so that it can grow in to a successful and reputable collectors store. Donations of any amount during these first few months will really help us to acheive our goals and are very much appreciated. The money we receive from donations will go towards such things as our stock, fees and advertisement, all of which are curcial to our success!</font></p> <p align="center"><font face="Verdana" size="1">Thank you to all who donate, we are very greteful. We hope you return soon to see how your donations have helped us progress.</font></p> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <p align="center"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHNwYJ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AwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNjAyMTYxM DI1NTFaMCMGCSqGSIb3DQEJBDEWBBQMMy2tPg6S+iNr+6M23jfBIwKwdTANBgkqhkiG9w0BAQEFAASBgA cXgHGoBxDcCaoZlA8yZiiZl/8Mc5YFWj97PAy51o9vBsiVwUQOfO7hEcF1RzMTNcelC/ckEvZTKnRvoB8iFlCjiyWQ8i/Rpwun95EfHyl7jjeEBBEhqzs1uIwj7JR/PqstodO4BSso3IdI8XONBiHuB/BdwO00QAxLJ+TjP4wM-----END PKCS7----- "> </p> </form> <p align="center"><font size="1" face="Verdana">[ <i>Click the button above to make a donation via PayPal, either by credit card or via your personal PayPal account</i> ]</font></p>'); 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 it helps, I've been editing it via the inbuilt file manager, and I'm running "osCommerce 2.2-MS2" (I think that's the version, sorry I'm really new to this...) Thank you in advance to anyone who can help, if you need more information to help, I can provide.
Jack_mcs Posted February 16, 2006 Posted February 16, 2006 What's the error? You shouldn't use the admin file manager unless the security patch has been installed. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
rabbitseffort Posted February 16, 2006 Posted February 16, 2006 the code looks ok to me--try using an ftp program to uplaod it like dreamweaver. The file manager has a tendancy to screw things up. "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"
Eden Posted February 16, 2006 Author Posted February 16, 2006 Well, I tried again and it's giving me this error: Parse error: parse error, unexpected T_STRING in /home2/edeneye/public_html/shopfront/includes/languages/english/index.php on line 54 I just pasted the code in to frontpage and it says that line 54 is this: <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure"> I don't see how that would cause errors?
Guest Posted February 16, 2006 Posted February 16, 2006 you need to escape single quotes when you have text in the php code. So What's -> What\'s because the single quotes enclose the entire definition.
BioSX Posted February 16, 2006 Posted February 16, 2006 Well, I tried again and it's giving me this error: Parse error: parse error, unexpected T_STRING in /home2/edeneye/public_html/shopfront/includes/languages/english/index.php on line 54 I just pasted the code in to frontpage and it says that line 54 is this: <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure"> I don't see how that would cause errors? uhm .... where is says ..... it's fast, free ..etc change it to .... it\'s fast, free..etc. Since you are using single quotes to encapsulate your string in engish.php, all single quotes inside that string must be prececeded by a backslash. Try it out.
BioSX Posted February 16, 2006 Posted February 16, 2006 uhm .... where is says ..... it's fast, free ..etc change it to .... it\'s fast, free..etc. Since you are using single quotes to encapsulate your string in engish.php, all single quotes inside that string must be prececeded by a backslash. Try it out. EDIT: ok i was a few minutes late. =)
Eden Posted February 16, 2006 Author Posted February 16, 2006 EDIT: ok i was a few minutes late. =) Thanks a lot guys, I'll try that out in few minutes and get back to you, I'm just trying out the STS template thing :blush:
Eden Posted February 16, 2006 Author Posted February 16, 2006 IT WORKED! :D Thanks again everyone, I feel a bit of an idiot that I let something so simple screw up my site but meh, nevermind! :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.