Muldrick Posted June 23, 2006 Share Posted June 23, 2006 So I have many pages on my old web, created with MSFrontpage. What's the easiest way to convert the text to HTML, without having to type it all, and instead use the copy and paste method. I copied and pasted text into MSWord, then saved it as a html, htm, and txt file. (tried each one) I then used AceHTML Freeware to convert it to html. I pasted the converterted text it into (this case) my shipping.php file and uploaded it. The page now comes up as an error, obviusly because of the pasted text. When I delete the pasted test, the page refreshes fine. So my question is (again), what's the proper/easiest/correct way of doing this? Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 23, 2006 Share Posted June 23, 2006 Without seeing the error it is difficult to say but I would suspect it is because you used a contraction (what's instead of what is). When you use such a word, you need to type it as what\'s, for example. If you create a page in any html editor, you can copy/paste it to the english directory for that file. For example, for the home page, you would open engish/index.php. Then find the TEXT_MAIN definition and past your code where the current text for that page is. 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 Link to comment Share on other sites More sharing options...
lrjbart Posted June 23, 2006 Share Posted June 23, 2006 So I have many pages on my old web, created with MSFrontpage. What's the easiest way to convert the text to HTML, without having to type it all, and instead use the copy and paste method. I copied and pasted text into MSWord, then saved it as a html, htm, and txt file. (tried each one) I then used AceHTML Freeware to convert it to html. I pasted the converterted text it into (this case) my shipping.php file and uploaded it. The page now comes up as an error, obviusly because of the pasted text. When I delete the pasted test, the page refreshes fine. So my question is (again), what's the proper/easiest/correct way of doing this? If your copy and pasting the code in to that page remember that the page already has <html> and <head> plus <title> tags in it. So when you copy and paste from another page remember to leave them out. so you dont have 2 sets of tags in the same page. Link to comment Share on other sites More sharing options...
ddp Posted June 23, 2006 Share Posted June 23, 2006 So I have many pages on my old web, created with MSFrontpage. What's the easiest way to convert the text to HTML, without having to type it all, and instead use the copy and paste method. I copied and pasted text into MSWord, then saved it as a html, htm, and txt file. (tried each one) I then used AceHTML Freeware to convert it to html. I pasted the converterted text it into (this case) my shipping.php file and uploaded it. The page now comes up as an error, obviusly because of the pasted text. When I delete the pasted test, the page refreshes fine. So my question is (again), what's the proper/easiest/correct way of doing this? Ok first stop using msfrontpage yuck >_< . Oscommerce is in PHP and there are many better editors available. For some of these go here. Even Dreamweaver is a bit better. However it is still possible to use html with php you just need to know how to insert it. For more osc basic design try here Here is an example of how to edit the shipping.php page. Open the file catalog/includes/languages/shipping.php Look for this command. define('TEXT_INFORMATION', 'put your html in here'); Put what you like including html between the apostrophes. What ever you put in there will appear on the content of the shipping.php page. Hope this helps. Backup before making changes. Backup before making changes! Backup before making changes!! You did do a backup? eh? Link to comment Share on other sites More sharing options...
Muldrick Posted June 23, 2006 Author Share Posted June 23, 2006 Ok first stop using msfrontpage yuck >_< .Oscommerce is in PHP and there are many better editors available. For some of these go here. Even Dreamweaver is a bit better. However it is still possible to use html with php you just need to know how to insert it. For more osc basic design try here Here is an example of how to edit the shipping.php page. Open the file catalog/includes/languages/shipping.php Look for this command. define('TEXT_INFORMATION', 'put your html in here'); Put what you like including html between the apostrophes. What ever you put in there will appear on the content of the shipping.php page. Hope this helps. Yeah, I took your advise on the MSFrontpage. I know about where to insert the edited text, in the 'TEXT_INFO....' (Thanks) My problem is that when I did that, it messed up the the page. So I wasn't editing it correctly. I seem to have missunderstood that my text needs to be edited to php, not html? I was editing it to html. I'm gonna try Crimson now. Link to comment Share on other sites More sharing options...
Muldrick Posted June 23, 2006 Author Share Posted June 23, 2006 Yeah, I took your advise on the MSFrontpage.I know about where to insert the edited text, in the 'TEXT_INFO....' (Thanks) My problem is that when I did that, it messed up the the page. So I wasn't editing it correctly. I seem to have missunderstood that my text needs to be edited to php, not html? I was editing it to html. I'm gonna try Crimson now. I don't get it. Got Crimson, so I copy my text from my old web, paste it into Crimson, I then save it as a .php file. I then open the .php file, copy the text, and enter it into my shipping.php file. Correct? What am I doing wrong, I entered it into the correct line ('TEXT_INFO...') but the (shipping) web page comes up with an error: Parse error: parse error, unexpected T_STRING in /home/richard/public_html/eglobal-mart/includes/languages/english/shipping.php on line 28 I can only get it to work correctly if I actually type in text, but that would take years. :( Link to comment Share on other sites More sharing options...
ddp Posted June 23, 2006 Share Posted June 23, 2006 sounds like a apostrohpe error of some kind. Post the shipping.php file here so we can have a look. Backup before making changes. Backup before making changes! Backup before making changes!! You did do a backup? eh? Link to comment Share on other sites More sharing options...
Muldrick Posted June 23, 2006 Author Share Posted June 23, 2006 That's what I thought, but I'm not familiar enough to know wht is, or wht is not allowed. I assumed the .php editor would correct the text to proper format. Here's what I'm trying to add: <?php /* $Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Shipping & Returns'); define('HEADING_TITLE', 'Shipping & Returns'); define('TEXT_INFORMATION', 'AAATERMS AND CONDITIONS OF SALES FOR CUSTOMCARPUTERS/EGLOBAL-MART TRADING LLP. End Users Only (referred to as "Buyer") eGlobal-Mart Trading LLP referred to as "eGlobal-Mart Trading" Before entering an order to purchase products, please read this Agreement carefully. Be sure to retain your sales invoice/receipt. Unless otherwise agreed in writing by CustomCarputers/eGlobal-Mart Trading, all sales and charges for the goods described herein shall be subject to the terms and conditions set forth herein and the said terms and conditions shall be the sole and exclusive terms and conditions applicable to any such sales. CustomCarputers/eGlobal-Mart Trading will not be bound by any terms and conditions proposed by Buyer in its purchase order or otherwise, which are additional to or different from the terms and conditions, set forth hereto. 1. Prices and Payments. (a) Prices. All prices set forth on this Web Site are retail prices for end user ("Buyer"). Such prices are subject to change at any time without notice in the sole discretion of CustomCarputers/eGlobal-Mart Trading. Prices do not include taxes, customs, or delivery/handling costs, which shall be charged to and listed separately for Buyer in addition to the other fees charged hereunder. All charges shall be sole responsibility of Buyer. (B) Sales Taxes. CustomCarputers/eGlobal-Mart Trading is required to charge applicable state and local tax on every item for which a sales tax exemption certificate has not been provided. When ordering please indicate clearly which items are tax exempt. All taxes and/or customs shall be sold responsibility of Buyer. © Payment Terms. All terms of payment set forth herein are subject to the approval of CustomCarputers/eGlobal-Mart Trading's accounting department. No discounts are allowed on taxes or shipping/handling charges. All online payments must be pre-paid using either Paypal, Visa, MasterCard, Discover, or American Express. CustomCarputers/eGlobal-Mart Trading reserves the right to decline any orders where credit card bill-to address is different from ship-to address. CustomCarputers/eGlobal-Mart Trading may also decline any orders when deemed necessary to minimize potential fraudulent transactions. (d) Delivery Costs. Delivery costs (using a carrier of our choice) will be charged for shipments to the location the Buyer designates at the time of his/her purchase. Other terms may apply to locations outside the contiguous United States, such as Alaska, Hawaii and Canada, or outside of N. America. Any extra charges incurred for additional services such as special handling by the carrier, must be paid by Buyer. Title and risk of loss pass to you upon tender of shipment to the carrier. If Products are damaged in transit, you must file a claim with the carrier per their terms and conditions. (e) Shipping Dates. Shipping dates specified herein or otherwise communicated to Buyer are approximate only. CustomCarputers/eGlobal-Mart Trading does not and shall not guarantee any such dates. (d) If you are a reseller/retailer and are interested in quantity purchases, contact us. 2. Warranty & Disclaimer. All hardware products (receivers and cables) will carry Manufacturer's Factory Warranty, commencing on the date of shipment to Buyer. Currently, this warranty period is one-year for replacement or repair, which is at sole discretion of Manufacturer, and does not include any damage caused by Buyer or from abnormal use. For software, warranty term is as specified in End user License Agreement. IN NO EVENT SHALL CUSTOMCARPUTERS/EGLOBAL-MART TRADING LLP BE LIABLE TO BUYER FOR ANY INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL AND/OR EXEMPLARY DAMAGES IN CONNECTION WITH THE PRODUCTS SOLD TO BUYER VIA THIS SITE, REGARDLESS OF WHETHER SUCH DAMAGES ARISE OUT OF THE NEGLIGENCE OR OTHER FAULT OF CUSTOMCARPUTERS/EGLOBAL-MART TRADING AND REGARDLESS OF WHETHER SUCH DAMAGES ARE BASED ON TORT, CONTRACT, STRICT LIABILITY OR ANY OTHER CAUSE OF ACTION. IN THE EVENT OF ANY CLAIM BY BUYER, CUSTOMCARPUTERS/EGLOBAL-MART TRADING'S LIABILITY SHALL BE LIMITED TO REPLACEMENT OF THE PRODUCTS THAT ARE THE SUBJECT OF SUCH CLAIM, OR, IF CIRCUMSTANCES WOULD CAUSE THIS REMEDY TO FAIL OF ITS ESSENTIAL PURPOSE, REFUND OF THE COST OF SUCH PRODUCTS TO BUYER, IN EITHER EVENT UPON RETURN OF ANY SUCH PRODUCTS. BY PURCHASING PRODUCTS VIA THIS SITE, YOU ACKNOWLEDGE THAT REPLACEMENT OR REFUND ARE YOUR SOLE AND EXCLUSIVE REMEDIES. 3. Cancellation/Returns/Replacements. Any orders placed by BUYER via the Web Site can only be cancelled prior to shipment. Any refused and/or returned packages will be subject to 15% restocking fee. Shipping and handling charges are non-refundable. Any cancellation must be approved by CustomCarputers/eGlobal-Mart Trading. All software are final and thus non-refundable. Any exception to this software policy is at CustomCarputers/eGlobal-Mart Trading's discretion. Products can not be returned to CustomCarputers/eGlobal-Mart Trading without CustomCarputers/eGlobal-Mart Trading's consent and Return Merchandise Authorization (RMA) number. Any claims for damaged or incomplete shipment must be made within 24 hours of receipt by phone (717-873-8886) or by email to [email protected], and will only be replaced with the same item(s). 4. Modification of Terms. CustomCarputers/eGlobal-Mart Trading's acceptance of any order is subject to Buyer's assent to all of the terms and conditions set forth in this Agreement. Buyer's assent to these terms and conditions shall be presumed from its placement of an order via this Web Site, receipt of CustomCarputers/eGlobal-Mart Trading's invoice, or acceptance of all or any part of the goods ordered. No addition or modification of terms and conditions shall be binding upon CustomCarputers/eGlobal-Mart Trading unless agreed to by CustomCarputers/eGlobal-Mart Trading in writing. 5. Complete Sales Agreement. The terms and conditions contained in this Sales Agreement are incorporated herein by reference, and constitute the entire and exclusive sales agreement between Buyer and CustomCarputers/eGlobal-Mart Trading. 6. No Third Party Benefit. The provisions stated above are for the sole benefit of the parties hereto, and confer no rights, benefits or claims upon any person or entity not a party hereto. 7. General. (a) Governing Law, Jurisdiction and Venue. This Agreement shall be interpreted and construed under the laws of the State of Maryland without regard to its conflicts of law principles. Any judicial action or proceeding related to this Agreement must be brought in the courts of the State of Maryland or the United States District Court for Maryland. You consent to the jurisdiction of such courts, agree to accept service of process by mail, and hereby waive all jurisdictional and venue defenses otherwise available to you. (B) Miscellaneous. If any provision of this Agreement is held by a court of competent jurisdiction to be invalid or unenforceable, then such provision shall be enforced to the maximum extent permissible so as to effect the intent of this Agreement, and the remainder of the Agreement shall remain in full force and effect. The section headings in this Agreement are for the convenience of the parties only, and shall have no substantive meaning and shall not be used to construe or interpret any provision of this Agreement. Failure to insist on strict performance of any of the terms and conditions of this Agreement will not operate as a waiver of any subsequent default or failure of performance.AAA'); ?> Link to comment Share on other sites More sharing options...
ddp Posted June 23, 2006 Share Posted June 23, 2006 Your problem is that you have many dangling apostorphies. Read the second post in this thread it has the solution to your problem. If you have a word like what's in your text you need to have it like this what\'s what's wrong!! what\'s right!! The slash tells the php to ignore the upcoming apostrophe. There are tons of these in your text just add the slashes and all should be fine Backup before making changes. Backup before making changes! Backup before making changes!! You did do a backup? eh? Link to comment Share on other sites More sharing options...
Muldrick Posted June 23, 2006 Author Share Posted June 23, 2006 Cool, thanks alot Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.