ichanx Posted August 18, 2014 Share Posted August 18, 2014 Hello,I'm using PS 1.6.06 and HTMLBox module. I'm having problem anytime I entered javascript code. It always rewrite automatically and causing the code failed to work. For example, I want to insert javascript code for counter provided by histats.com. Whenever I entered the code: <!-- Histats.com START (standard)--><script type="text/javascript">document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script> it will automatically changed to: <!-- Histats.com START (standard)--><script>// <![CDATA[document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));// ]]></script>.... Can anyone help me to solve this problem? thank you Link to comment Share on other sites More sharing options...
Dh42 Posted August 18, 2014 Share Posted August 18, 2014 Google the problem, I know there are several solutions to changing the way PrestaShop strips script tags out. Link to comment Share on other sites More sharing options...
ichanx Posted August 18, 2014 Author Share Posted August 18, 2014 Google the problem, I know there are several solutions to changing the way PrestaShop strips script tags out. yups, i found some solutions... but i can't solve mine. I tried copying media.php to override/classes/media.php and inserting "data-keepinline="true" in the javascript tag, but nothing happen. that CData command still appear and causing my javascript can't work. Would you please show me another solution? Link to comment Share on other sites More sharing options...
El Patron Posted August 18, 2014 Share Posted August 18, 2014 please you the following module forum post to ask question. http://www.prestashop.com/forums/topic/189039-module-html-box-for-free/ closing topic Link to comment Share on other sites More sharing options...
Recommended Posts