Guest Posted October 10, 2005 Share Posted October 10, 2005 I have found the PHP file for the Privacy Notice in my store. I started to change the text where indicated; however I get an error message .... "Parse error: parse error, unexpected T_STRING in /usr/www/virtual/myname/www.mywebsite.com/catalog/includes/languages/english/privacy.php on line 34" When I remove the text after line 34, all the text up to that line shows up correctly on the web page- however, this is not going to work, as it is incomplete information. There must be something in my text that is not allowed, so I am posting the text I placed in the PHP file here hoping someone can tell me what is wrong. define('TEXT_INFORMATION', ' Privacy Policy Keeping your privacy is very important to us. This Privacy Policy is to ensure that your privacy is protected while using our Site. Please make sure to read the Site Terms & Conditions as well. What Information Do We Collect? When you choose to join the site, we ask you to provide us with certain information such as your email address, address and instant messengers IDs. When you choose to purchase items through the Hunter Steel store by making a payment, we do NOT collect your full credit card number, CVV2 and expiration date. This information is collected ONLY by our third party credit card processor CCBill.com. We also collect your IP address. Finally, we collect and keep your login and password, the information you need to use the site, as well as any publications you post on the site for others to view. For example: if you send us personal correspondence, such as emails or letters, or if other users or third parties send us correspondence about your activities or postings on the site, we may collect such information into a file which is only accessed by authorized personnel. We may also collect other users' comments about you in our complaints department. You should know that none of the personally identifiable information can be accessed or used by the public to identify you as a specific individual. How Do We Use Your Information? * We may internally use the personally identifiable information collected on our users to improve our marketing, to improve our content and products and to customize our site to our users. This allows us to improve our site and meet your needs. * We may also use personally identifiable information about you to deliver information to you that, in some cases, are targeted to your interests, such as targeted banners and promotions. * We also send periodic informational updates and promos to our consenting users via email. * Our departments (for example our Customer Service Department) may use personally identifiable information to answer your questions, troubleshoot problems and enforce our Terms & Conditions. When Do We Disclose Your Information? We may disclose your information to affiliated sites. Obviously, in case we are required by law enforcement agencies and or in case we are required to enforce intellectual property or other rights, we may disclose your information. Third Party Collections of Information: Our policy only addresses the use and disclosure of information we collect from you. To the extent that you disclose your information to other parties on our system or other sites throughout the Internet, different rules may apply to their use or disclosure of the personal information you disclose to them. How Can You Update or Delete Your Information? You have the following choices to update or delete your information from our database: You can send our Customer Service Department an email at [email protected] or you may log in with your password and update or delete your profile. Please note that the information is not deleted from the Company's database but will be saved under a deleted status and will not be presented. Questions? If you have any questions about this Privacy Policy, you can contact us at: [email protected] '); Also- how do I insert carraige returns - and actually have them show up on the web page instead of just in my PHP file - in my text so that it does not appear to be one long paragraph? Link to comment Share on other sites More sharing options...
Jes1FromFL Posted October 10, 2005 Share Posted October 10, 2005 You must insert <BR> after each break you want. For example, it must read like this: define('TEXT_INFORMATION', 'Privacy Policy<BR>Keeping your privacy is very important to us.<BR>This Privacy Policy is to ensure that your privacy is protected while using our Site.<BR> etc. also, when you get to something that uses an apostrophe like: Please note that the information is not deleted from the Company's database but will be saved under a deleted status and will not be presented. you must insert a '\' before the apostrophe, so it would read: Please note that the information is not deleted from the Company\'s database but will be saved under a deleted status and will not be presented. good luck, and try downloading a php editor like php designer. Link to comment Share on other sites More sharing options...
DJMarley Posted October 10, 2005 Share Posted October 10, 2005 I've got the same error: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/mysite/public_html/myOSfolder/includes/languages/espanol/index.php on line 46 This show's up every time i try to change the Index.php as instructed, even if i add a single word, this error shows up, any idea? Also i have noticed that opposit to what it's said the original text says this: <td width="19%" height="92"> </td> <td width="95%" valign="bottom"><span class="boxText">Limited time Deals on PC?s<br> Servers and more!</span></td> And it works!! here is the full text: <?php /* $Id: index.php,v 1.3 2003/07/08 16:56:04 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<table width="100%" bgcolor="#F4F4F4" border="0" cellspacing="0" cellpadding="0" align="right" style="border:1px solid #CFCFCF"> <tr><td width="100%" height="131" valign="top" background="'.DIR_WS_IMAGES . 'theme/banner1.jpg" style="background-repeat:no-repeat;background-position:right "><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="19%" height="92"> </td> <td width="95%" valign="bottom"><span class="boxText">Limited time Deals on PC?s<br> Servers and more!</span></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="19%" height="23"> </td> <td width="92%" valign="bottom"><span class="style9"><a href="'.tep_href_link(FILENAME_SPECIALS).'" style="color:#1F5A88 ">Start shopping!</a></span></td> </tr> </table></td></tr> </table><br>'); define('TABLE_HEADING_NEW_PRODUCTS', 'Nuevos Productos En %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Próximamente'); define('TABLE_HEADING_DATE_EXPECTED', 'Lanzamiento'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'A ver que tenemos aqui'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Modelo'); define('TABLE_HEADING_PRODUCTS', 'Productos'); define('TABLE_HEADING_MANUFACTURER', 'Fabricante'); define('TABLE_HEADING_QUANTITY', 'Cantidad'); define('TABLE_HEADING_PRICE', 'Precio'); define('TABLE_HEADING_WEIGHT', 'Peso'); define('TABLE_HEADING_BUY_NOW', 'Compre Ahora'); define('TEXT_NO_PRODUCTS', 'No hay productos en esta categoria.'); define('TEXT_NO_PRODUCTS2', 'No hay productos de este fabricante.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Número de Productos: '); define('TEXT_SHOW', '<b>Mostrar:</b>'); define('TEXT_BUY', 'Compre 1 ''); define('TEXT_NOW', '' ahora'); define('TEXT_ALL_CATEGORIES', 'Todas'); define('TEXT_ALL_MANUFACTURERS', 'Todos'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', '¿Que hay de nuevo por aqui?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categorias'); } ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.