tool225 Posted January 12, 2009 Share Posted January 12, 2009 I am new to osCommerce and have tried to search this error on google and these forums with no luck in finding a solution. I apologize in advanced if I missed a topic that is already talking about this question. I am also a newb at php. I am doing some work to help out a friend on his store. This store has a module that allows the user to add a news story to display on the front page of the store. Basically there are 3 text areas for adding/editing a news story, Title - News Story (Content) - Image Location. When adding or editting a news story we can see all text formatting in the textarea. After submitting the story the database is updated and we can view the story on the front page. The problem is the font size for the content is displaying wrong. The title or any images are displaying fine. For example, within the editor I can see the correct format of the story I enter. Test story within the editor. Times New font used with a font size of 3. If I understand correctly, the editor should save the story in the db as: <p>[font style="Times New Roman" size="3"]Test story within the editor. Times New font used with a font size of 3.[/font]</p> Displayed on front page: font size 1 is displayed. Test story within the editor. Times New font used with a font size of 3. This is what is getting saved in the db: <p>Test story within the editor. Times New font used with a font size of 3.</p> I'm thinking its a bad editor, so I update it - no luck still have the error. Am I correct in presuming this is an editor related issue rather than a php, oscom, or server(apache) update issue? Meaning there is nothing that would override the stylesheets in displaying font size unless specifically coded, correct? They use a very simple editor for this textarea - VisualTextBox. Here are the versions used: Operating system: Linux Kernel version: 2.6.9-78.0.8.ELsmp Apache version: 2.2.9 (Unix) PERL version: 5.8.8 PHP version: 5.2.5 MySQL version: 5.0.51a-community-log Oscom Version: 2.2 MS2 Link to comment Share on other sites More sharing options...
FIMBLE Posted January 12, 2009 Share Posted January 12, 2009 try <p><font style="Times New Roman" size="3">Test story within the editor. Times New font used with a font size of 3.</font></p> Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
tool225 Posted January 12, 2009 Author Share Posted January 12, 2009 try<p><font style="Times New Roman" size="3">Test story within the editor. Times New font used with a font size of 3.</font></p> Nic Thanks for the reply. Have to apologize for the typo in my original post. I'm not asking what is the correct syntax for the html that will be saved within the database. Guess I need to research further. tool Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.