Guest Posted March 28, 2004 Share Posted March 28, 2004 Hi All, Eventually getting the hang of OSC after a bit of hard work. However one problem I am getting is when replacing the define('my intended code') areas in the index, shipping, privacy, etc pages. I can replace the standard text or add my own and it works OK. However when I try to copy and paste HTML between the quotes I get mixed results. For example, if I try to build a mixture of text and images in html, usually arranged in a table, then paste it between the quotes, things get screwed up. I have been able to get simple table layouts to work between the quotes, but not slightly more complicated ones. My question is : are there certain html markup tags which are rejected by OSC and if so why? Hope you understand the question. Thanks for any and all help. Regards D. Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2004 Share Posted March 28, 2004 hi. you might want to try not using double quotes in your html. those always give me problems. instead of <table cellpadding="0"> put <table cellpadding=0> try that. if you need spaces in the value, just put a backslash before the quotes, like so.. <img src=img.gif alt=\"hello world.\"> Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2004 Share Posted March 29, 2004 That's great - thanks! Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2004 Share Posted March 29, 2004 Hi All, Just to confirm what the problem was for anyone else who might experience it : I was creating some HTML to include in my index page, etc, in Dreamweaver, then copying it and pasting it into the correct define area in OSC. The problem is that any words in the body text which made use of a ' such as we'll or can't was confusing the php. Instructing php to ignore these by first putting a \ in front of the ' so these words become we\'ll and can\'t immediately solved the problem. Hope this helps anyone else having similar problems. Regards D. Link to comment Share on other sites More sharing options...
ausipodskins Posted May 9, 2004 Share Posted May 9, 2004 OK, I understand the logic of that solution, but it still doesn't seem to work for me. Here is my code: <HTML><BODY> Shipping is chaged at a flat rate of $AU6.50 <p> <IMG SRC=www.freepgs.com/myaccount/catalog/images/icons/aust-post-logo.gif> <p> For all items sent within Australia, I use Australia Post\'s Express Post </BODY></HTML> Now the text appears just fine, but the image doesn't show up. I've tried putting the image location inside double quotes, single quotes and no quotes (literals). All with the same result - a placeholder for an image but no image itself. I've also tried it with the <HTML><BODY> tags and without them. The URL for the image works just fine if I use it in my browser address window. I've run out of ideas. Link to comment Share on other sites More sharing options...
ausipodskins Posted May 14, 2004 Share Posted May 14, 2004 For anyone else who has the same problem I had, the solution lies in specifying the image path as: <IMG SRC="images/icons/aust-post-logo.gif"> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.