t0ddie Posted February 16, 2006 Posted February 16, 2006 i dont know remember what file i need to edit to effect the text on the front page of the catalog! i thought it was oscommerse/catalog/index.php but thats not it. any help?
Guest Posted February 16, 2006 Posted February 16, 2006 i dont know remember what file i need to edit to effect the text on the front page of the catalog!i thought it was oscommerse/catalog/index.php but thats not it. any help? catalog/includes/languages/<language>/index.php
t0ddie Posted February 16, 2006 Author Posted February 16, 2006 more problems... i cant add my own text! i want to replace all text on that page but i keep getting parse errors! i just try to replace SOME of the text and i still get the errors! i replace this: This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional. with this Terms The prices on this site represent the sum of a finder's fee and a transfer fee. All items remain the sole property of Blizzard Entertainment. After an item has been transferred to you, DiabloUniverse.com takes no responsibility for its loss or or alteration due, but not limited to: hacks, scams, theft, rollbacks, patches, bugs, accident, character/account deletion or expiration. DiabloUniverse.com will not replace lost items for any reason. Remember: you are paying a finder's fee and a transfer fee. If you lose your items, you need to go to Blizzard about that. After we've transferred the items to you, you've gotten what you've paid for. Anything that happens to the items after that is Blizzard's problem. A small percent of orders will require verification and this process may delay delivery. Having a verified PayPal account, including a confirmed address and phone number are ways of hastening this process. If your order does require verification, you will be notified and sent a letter via Next Day USPS Express Mail with a confirmation number. If you haven't heard from us within 24 hours of the time you placed your order, please write to us. If your order does require verification, you will not be given a refund for any reason. Verification is a one-time process and it is rather costly. We are willing to accept a loss in some cases to verify a customer. For this reason we will not issue a refund. If you simply cannot wait to get your items and you've found them elsewhere in the meantime, you may request credit to use towards other items, but not a cash refund. Verification is for the protection and benefit of every honest person. It protects us from losing lots of money. If you have not heard from us after 24 hours, it is HIGHLY likely that you have some sort of junk/bulk mail settings on that are blocking/filtering out our messages to you. I STRONGLY recommend including a phone number, an alternate email address, and any Instant Messenger ID you may have, with any email you send us if it seems we aren't responding to you. . If we feel that your payment may be funded by a stolen PayPal account or credit card, we may request that you add and confirm a bank account, provide additional personal information, or pay by an alternate means. We may also opt to send you the mule account information via USPS Express, overnight mail to your confirmed shipping address, as registered with PayPal. Diablouniverse.com accepts the following forms of payment: PayPal, Credit-Cards, Forum Gold. All items we carry are for the Diablo 2 Expansion, Lord of Destruction. We do not carry Classic Diablo items. Anti-fraud Measures We now require that all U.S. PayPal customers include a confirmed address and phone number with PayPal payments. If we feel your order to be suspicious, we may call you and/or mail an order confirmation code to your confirmed address, as provided by PayPal. You will need this code to pickup your items. This code is usually shipped overnight express mail to avoid delay. International PayPal users are required to include an contact phone number and if we feel your order is suspicious, you will be required to pay by a means other than PayPal. U.S. customers who do not include a confirmed address and contact phone number will qualify themselves for further verification which may delay delivery indefinitely. example: By placing an order with DiabloUniverse.com, you certify that you have read the 'Terms of Service' and you agree to them. You will not hold DiabloUniverse.com responsible for any items lost for any reason. You understand that you are paying a finder's/transfer fee. You understand that all items remain the sole property of Blizzard Entertainment. You agree to furnish certain information: Confirmed Address with payment and a Phone Number upon requst. You certify that you are the owner of the PayPal account you are paying with. You understand that if your order requires verification, you will not be entitled to a cash refund. If you no longer desire the items you ordered by the time you are verified, you may have store credit to use towards different items. You understand that the verification process usually takes 48-72 hours. i want to remove all the default text and replace it with this and more text! why isnt it working? i removed regular text only, and replaced it with regular text... please help me out. thanks!
Flyer5 Posted February 16, 2006 Posted February 16, 2006 more problems... i cant add my own text! i want to replace all text on that page but i keep getting parse errors! i just try to replace SOME of the text and i still get the errors! i replace this: This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional. with this Terms The prices on this site represent the sum of a finder's fee and a transfer fee. All items remain the sole property of Blizzard Entertainment. After an item has been transferred to you, DiabloUniverse.com takes no responsibility for its loss or or alteration due, but not limited to: hacks, scams, theft, rollbacks, patches, bugs, accident, character/account deletion or expiration. DiabloUniverse.com will not replace lost items for any reason. Remember: you are paying a finder's fee and a transfer fee. If you lose your items, you need to go to Blizzard about that. After we've transferred the items to you, you've gotten what you've paid for. Anything that happens to the items after that is Blizzard's problem. A small percent of orders will require verification and this process may delay delivery. Having a verified PayPal account, including a confirmed address and phone number are ways of hastening this process. If your order does require verification, you will be notified and sent a letter via Next Day USPS Express Mail with a confirmation number. If you haven't heard from us within 24 hours of the time you placed your order, please write to us. If your order does require verification, you will not be given a refund for any reason. Verification is a one-time process and it is rather costly. We are willing to accept a loss in some cases to verify a customer. For this reason we will not issue a refund. If you simply cannot wait to get your items and you've found them elsewhere in the meantime, you may request credit to use towards other items, but not a cash refund. Verification is for the protection and benefit of every honest person. It protects us from losing lots of money. If you have not heard from us after 24 hours, it is HIGHLY likely that you have some sort of junk/bulk mail settings on that are blocking/filtering out our messages to you. I STRONGLY recommend including a phone number, an alternate email address, and any Instant Messenger ID you may have, with any email you send us if it seems we aren't responding to you. . If we feel that your payment may be funded by a stolen PayPal account or credit card, we may request that you add and confirm a bank account, provide additional personal information, or pay by an alternate means. We may also opt to send you the mule account information via USPS Express, overnight mail to your confirmed shipping address, as registered with PayPal. Diablouniverse.com accepts the following forms of payment: PayPal, Credit-Cards, Forum Gold. All items we carry are for the Diablo 2 Expansion, Lord of Destruction. We do not carry Classic Diablo items. Anti-fraud Measures We now require that all U.S. PayPal customers include a confirmed address and phone number with PayPal payments. If we feel your order to be suspicious, we may call you and/or mail an order confirmation code to your confirmed address, as provided by PayPal. You will need this code to pickup your items. This code is usually shipped overnight express mail to avoid delay. International PayPal users are required to include an contact phone number and if we feel your order is suspicious, you will be required to pay by a means other than PayPal. U.S. customers who do not include a confirmed address and contact phone number will qualify themselves for further verification which may delay delivery indefinitely. example: By placing an order with DiabloUniverse.com, you certify that you have read the 'Terms of Service' and you agree to them. You will not hold DiabloUniverse.com responsible for any items lost for any reason. You understand that you are paying a finder's/transfer fee. You understand that all items remain the sole property of Blizzard Entertainment. You agree to furnish certain information: Confirmed Address with payment and a Phone Number upon requst. You certify that you are the owner of the PayPal account you are paying with. You understand that if your order requires verification, you will not be entitled to a cash refund. If you no longer desire the items you ordered by the time you are verified, you may have store credit to use towards different items. You understand that the verification process usually takes 48-72 hours. i want to remove all the default text and replace it with this and more text! why isnt it working? i removed regular text only, and replaced it with regular text... please help me out. thanks! Its impossible to tell you what the error is unless you post the entire contents of the language/index.php file. :)
t0ddie Posted February 16, 2006 Author Posted February 16, 2006 i dont see why your having trouble understanding the question... if you took the default index.php file and replaced what i mentioned in the last post, you would have this file here that gives the error. <?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', 'Terms The prices on this site represent the sum of a finder's fee and a transfer fee. All items remain the sole property of Blizzard Entertainment. After an item has been transferred to you, DiabloUniverse.com takes no responsibility for its loss or or alteration due, but not limited to: hacks, scams, theft, rollbacks, patches, bugs, accident, character/account deletion or expiration. DiabloUniverse.com will not replace lost items for any reason. Remember: you are paying a finder's fee and a transfer fee. If you lose your items, you need to go to Blizzard about that. After we've transferred the items to you, you've gotten what you've paid for. Anything that happens to the items after that is Blizzard's problem. A small percent of orders will require verification and this process may delay delivery. Having a verified PayPal account, including a confirmed address and phone number are ways of hastening this process. If your order does require verification, you will be notified and sent a letter via Next Day USPS Express Mail with a confirmation number. If you haven't heard from us within 24 hours of the time you placed your order, please write to us. If your order does require verification, you will not be given a refund for any reason. Verification is a one-time process and it is rather costly. We are willing to accept a loss in some cases to verify a customer. For this reason we will not issue a refund. If you simply cannot wait to get your items and you've found them elsewhere in the meantime, you may request credit to use towards other items, but not a cash refund. Verification is for the protection and benefit of every honest person. It protects us from losing lots of money. If you have not heard from us after 24 hours, it is HIGHLY likely that you have some sort of junk/bulk mail settings on that are blocking/filtering out our messages to you. I STRONGLY recommend including a phone number, an alternate email address, and any Instant Messenger ID you may have, with any email you send us if it seems we aren't responding to you. . If we feel that your payment may be funded by a stolen PayPal account or credit card, we may request that you add and confirm a bank account, provide additional personal information, or pay by an alternate means. We may also opt to send you the mule account information via USPS Express, overnight mail to your confirmed shipping address, as registered with PayPal. Diablouniverse.com accepts the following forms of payment: PayPal, Credit-Cards, Forum Gold. All items we carry are for the Diablo 2 Expansion, Lord of Destruction. We do not carry Classic Diablo items. Anti-fraud Measures We now require that all U.S. PayPal customers include a confirmed address and phone number with PayPal payments. If we feel your order to be suspicious, we may call you and/or mail an order confirmation code to your confirmed address, as provided by PayPal. You will need this code to pickup your items. This code is usually shipped overnight express mail to avoid delay. International PayPal users are required to include an contact phone number and if we feel your order is suspicious, you will be required to pay by a means other than PayPal. U.S. customers who do not include a confirmed address and contact phone number will qualify themselves for further verification which may delay delivery indefinitely. example: By placing an order with DiabloUniverse.com, you certify that you have read the 'Terms of Service' and you agree to them. You will not hold DiabloUniverse.com responsible for any items lost for any reason. You understand that you are paying a finder's/transfer fee. You understand that all items remain the sole property of Blizzard Entertainment. You agree to furnish certain information: Confirmed Address with payment and a Phone Number upon requst. You certify that you are the owner of the PayPal account you are paying with. You understand that if your order requires verification, you will not be entitled to a cash refund. If you no longer desire the items you ordered by the time you are verified, you may have store credit to use towards different items. You understand that the verification process usually takes 48-72 hours.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess">This is a default setup of the osCommerce project...</span>\');</nobr><br><br>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<br><br><nobr>define(\'TEXT_MAIN\', \'\');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Securing The Administration Tool</b><br><br>It is important to secure the Administration Tool as there is currently no security implementation available.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> site.<br><br>Community support is available at the <a href="http://www.oscommerce.com/forums" target="_blank"><u>osCommerce Community Support Forums</u></a> site.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.'); 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'); } ?> as you can see i did not replace all of the default text, but i want to remove it all! i want all of the default text GONE so i can add my own text... but i just replace SOME of the text and i get an error!!! so what i am asking, is just edit the index.php so there is no default text... and type XXXXXXXXXXX in the area where i can add text!!!
MartinM Posted February 16, 2006 Posted February 16, 2006 i want to replace all text on that page but i keep getting parse errors! Your problem is that the text you're adding contains single quotes/apostrophes: ...you certify that you have read the 'Terms of Service' and you agree to them That character has a special meaning in php; you need to escape it with a backslash, like so: ...you certify that you have read the \'Terms of Service\' and you agree to them
t0ddie Posted February 17, 2006 Author Posted February 17, 2006 hmm, theres no way to edit on here.... anyways.. i still get the same error! Parse error: parse error, unexpected T_STRING in /home/diabloun/public_html/osCommerce/catalog/includes/languages/english/index.php on line 15 <?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', 'Terms The prices on this site represent the sum of a finder/'s fee and a transfer fee. All items remain the sole property of Blizzard Entertainment. After an item has been transferred to you, DiabloUniverse.com takes no responsibility for its loss or or alteration due, but not limited to: hacks, scams, theft, rollbacks, patches, bugs, accident, character/account deletion or expiration. DiabloUniverse.com will not replace lost items for any reason. Remember: you are paying a finder's fee and a transfer fee. If you lose your items, you need to go to Blizzard about that. After we/'ve transferred the items to you, you/'ve gotten what you/'ve paid for. Anything that happens to the items after that is Blizzard/'s problem. A small percent of orders will require verification and this process may delay delivery. Having a verified PayPal account, including a confirmed address and phone number are ways of hastening this process. If your order does require verification, you will be notified and sent a letter via Next Day USPS Express Mail with a confirmation number. If you haven't heard from us within 24 hours of the time you placed your order, please write to us. If your order does require verification, you will not be given a refund for any reason. Verification is a one-time process and it is rather costly. We are willing to accept a loss in some cases to verify a customer. For this reason we will not issue a refund. If you simply cannot wait to get your items and you/'ve found them elsewhere in the meantime, you may request credit to use towards other items, but not a cash refund. Verification is for the protection and benefit of every honest person. It protects us from losing lots of money. If you have not heard from us after 24 hours, it is HIGHLY likely that you have some sort of junk/bulk mail settings on that are blocking/filtering out our messages to you. I STRONGLY recommend including an alternate email address, and any Instant Messenger ID you may have, with any email you send us if it seems we aren/'t responding to you. . If we feel that your payment may be funded by a stolen PayPal account or credit card, we may request that you add and confirm a bank account, provide additional personal information, or pay by an alternate means. We may also opt to send you the mule account information via USPS Express, overnight mail to your confirmed shipping address, as registered with PayPal. Diablouniverse.com accepts the following forms of payment: PayPal, Credit-Cards, Forum Gold. All items we carry are for the Diablo 2 Expansion, Lord of Destruction. We do not carry Classic Diablo items. Anti-fraud Measures We now require that all U.S. PayPal customers include a confirmed address and phone number with PayPal payments. If we feel your order to be suspicious, we may call you and/or mail an order confirmation code to your confirmed address, as provided by PayPal. You will need this code to pickup your items. This code is usually shipped overnight express mail to avoid delay. International PayPal users are required to include an contact phone number and if we feel your order is suspicious, you will be required to pay by a means other than PayPal. U.S. customers who do not include a confirmed address and contact phone number will qualify themselves for further verification which may delay delivery indefinitely. example: By placing an order with DiabloUniverse.com, you certify that you have read the /'Terms of Service/' and you agree to them. You will not hold DiabloUniverse.com responsible for any items lost for any reason. You understand that you are paying a finder/'s/transfer fee. You understand that all items remain the sole property of Blizzard Entertainment. You agree to furnish certain information: Confirmed Address with payment and a Phone Number upon requst. You certify that you are the owner of the PayPal account you are paying with. You understand that if your order requires verification, you will not be entitled to a cash refund. If you no longer desire the items you ordered by the time you are verified, you may have store credit to use towards different items. You understand that the verification process usually takes 48-72 hours.'); 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'); } ?>
t0ddie Posted February 17, 2006 Author Posted February 17, 2006 maybe colons mess it up to.. i removed all the colons and apostraphes cause i got sick of it, but maybe i needed to /: like i /' anyways, its workin kinda.. not getting the error at least
Maggilove Posted February 17, 2006 Posted February 17, 2006 Martin told you to use a backslash... you used a forward slash.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.