Peper Posted February 20, 2010 Share Posted February 20, 2010 Need some help please When adding a new products in admin it shows up fine when going into preview mode and then save On my catalog side the html is stripped, my older products is still though showing correct I've been using FCKeditor in the admin section, this is the first time noticing it Thanks Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
npn2531 Posted February 20, 2010 Share Posted February 20, 2010 The FCK editor has an option in the control panel (one of the icons above the screen) for entering data in 'text' mode or 'html' mode. If it is in the 'text' mode it ignores the html and simply posts it as if it were text. You might also check the configuration in the admin panel for the settings on the FCK editor to make sure nothing is setting the editor to text mode. Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
Peper Posted February 20, 2010 Author Share Posted February 20, 2010 The FCK editor has an option in the control panel (one of the icons above the screen) for entering data in 'text' mode or 'html' mode. If it is in the 'text' mode it ignores the html and simply posts it as if it were text. You might also check the configuration in the admin panel for the settings on the FCK editor to make sure nothing is setting the editor to text mode. Thanks for reply I'm only like seeing a whole lot of buttons and editing/switching between source mode and normal Source shows the html is there like <p></p> <br /> After clicking update the formatting is gone in admin and catalog for newly created products only Bit unsure where to start looking for problem :'( Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
Peper Posted February 20, 2010 Author Share Posted February 20, 2010 Found solution - not too sure in admin/includes/functions/database.php for security I added // Added below for [TiM's osC Solutions] Safer Database Input Method: $allowable_tags = false // To allow tags, either pass (boolean)true for all tags or example (string)'<b><i>' for certain tags. function tep_db_input($string, $link = 'db_link', $allowable_tags = false) { global $$link; // BOF: [TiM's osC Solutions] Safer Database Input Method if ($allowable_tags === false || is_string($allowable_tags)) { $string = strip_tags($string, $allowable_tags); } // EOF: [TiM's osC Solutions] Safer Database Input Method changed tags to true function tep_db_input($string, $link = 'db_link', $allowable_tags = true) { If this is not correct solution, please make a post - this code is used for sometime now and is the first time I'm getting fck to strip the html Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
npn2531 Posted February 20, 2010 Share Posted February 20, 2010 I think your solution is bit more complicated than this should take to solve. 'Source' and 'Normal' mode are the correct terms for what I have been calling 'html' and 'text' mode, so it looks like you found the buttons. I'm not sure I understand your explanation of the problem. I assumed you meant that you were typing html and text into the FCK editor and it was being displayed in the store as raw html code + text, rather html formatted text. If this is the problem, it means you are typing html code into the FCK Editor with the FCK Editor set to normal mode. (or vice versa?) If this is not the problem, then the problem is beyond me. I hope this helps. Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
Peper Posted February 20, 2010 Author Share Posted February 20, 2010 I think your solution is bit more complicated than this should take to solve. 'Source' and 'Normal' mode are the correct terms for what I have been calling 'html' and 'text' mode, so it looks like you found the buttons. I'm not sure I understand your explanation of the problem. I assumed you meant that you were typing html and text into the FCK editor and it was being displayed in the store as raw html code + text, rather html formatted text. If this is the problem, it means you are typing html code into the FCK Editor with the FCK Editor set to normal mode. (or vice versa?) If this is not the problem, then the problem is beyond me. I hope this helps. Thanks though, both gives me a problem - text entered with line spaces = no spaces + no formatting, html gets completely stripped using source button to edit However before I hit update button to add a product the formatting seems right but catalog shows no formatting for text after update, in admin the formatting is removed as well when going back to edit product http://addons.oscommerce.com/info/6546 Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.