sanyo13 Posted September 24, 2013 Share Posted September 24, 2013 Why i cant insert a google map into a CMS page? tried with iframe code and with html code too. Any idea? Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 what you see instead of map? you've got some issues while saving? 1 Link to comment Share on other sites More sharing options...
NemoPS Posted September 25, 2013 Share Posted September 25, 2013 I guess the iframe html is being escaped, did you try applying one of vekia's tuts suggestions, to add any html to cms? I can't find the url, it's at mypresta.eu anyway Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 in this case it will be necessary to extend tinymce features, and in 1.5.5 also change Validate.php class, it's because there is new validate function for isCleanHtml more info here: full featured tinymce editor Link to comment Share on other sites More sharing options...
sanyo13 Posted September 25, 2013 Author Share Posted September 25, 2013 The content field ( Hungarian) is invalid. Got this , so cant even save teh cms page Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 The content field ( Hungarian) is invalid. Got this , so cant even save teh cms page have you followed instructions from the tutorial? both for template file and for validate class? it looks like not Link to comment Share on other sites More sharing options...
sanyo13 Posted September 25, 2013 Author Share Posted September 25, 2013 Yea i followed. I have the extended version. But still the same issue when saving. Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 can you show your validate.php file? Link to comment Share on other sites More sharing options...
sanyo13 Posted September 25, 2013 Author Share Posted September 25, 2013 Here You are And thanks for wasting Your time for me Validate.php Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 comment also this: if (!$allow_iframe && preg_match('/<[\s]*(i?frame|form|input|embed|object)/ims', $html)) return false; 2 Link to comment Share on other sites More sharing options...
sanyo13 Posted September 25, 2013 Author Share Posted September 25, 2013 (edited) THanks for everything it works! Edited September 25, 2013 by sanyo13 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 okay, so now can you share url to your website? especially to page where you pasted the map Link to comment Share on other sites More sharing options...
sanyo13 Posted September 25, 2013 Author Share Posted September 25, 2013 http://qautohifi.hu/index.php?id_cms=8&controller=cms It works thanks a lot again. Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 yea! im so glad that i could help you a little in this case thank you for your patience im going to mark this topic as [solved] Link to comment Share on other sites More sharing options...
ElangLiar Posted October 30, 2013 Share Posted October 30, 2013 All the code doesn't work in prestashop 1.5 Link to comment Share on other sites More sharing options...
vekia Posted October 30, 2013 Share Posted October 30, 2013 All the code doesn't work in prestashop 1.5 what code? Link to comment Share on other sites More sharing options...
ElangLiar Posted November 1, 2013 Share Posted November 1, 2013 (edited) i have follow from this thread: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html but still dosen't work its same problem like before(The content field (English (United States)) is invalid.). when i put html script like iframe from google maps?... one more question? Do you know how to put google maps? I have put Latitude/Longitude in store contacts but the google maps look like blank / not appear? Edited November 1, 2013 by ElangLiar (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 1, 2013 Share Posted November 1, 2013 can you show me your function isCleanHtml() from Validate.php file? Link to comment Share on other sites More sharing options...
esamedia Posted February 28, 2014 Share Posted February 28, 2014 THanks for everything it works! ...and also works for me! Thank you. Link to comment Share on other sites More sharing options...
felixpixel Posted March 28, 2014 Share Posted March 28, 2014 Where to find this validate.php file.I've got the same problem while insert google map to my cms loacation page."The content field (English (English)) is invalid." Link to comment Share on other sites More sharing options...
vekia Posted March 28, 2014 Share Posted March 28, 2014 you have to extend validate.php file what ps version you use? everything depends on it. Link to comment Share on other sites More sharing options...
felixpixel Posted March 28, 2014 Share Posted March 28, 2014 Already solved sir, i've set the "Allow iframes on html fields" to yes Link to comment Share on other sites More sharing options...
kmichalaros Posted July 1, 2014 Share Posted July 1, 2014 I have done all of what you suggested but still cannot get it to work.... 1.6 here... Link to comment Share on other sites More sharing options...
dmazanov Posted February 20, 2015 Share Posted February 20, 2015 comment also this: if (!$allow_iframe && preg_match('/<[\s]*(i?frame|form|input|embed|object)/ims', $html)) return false; it's still works, prestashop 1.6.0.9!!! Thank you! Link to comment Share on other sites More sharing options...
LauraPresta Posted May 14, 2017 Share Posted May 14, 2017 (edited) is there a new tip for 1.6.1.13 ? i added tinymce extended + modified validate.php as master vekia tutorial i allowed iframe in html i check my code into a simple html file and it is working But in cms page not workink, and prestashop adding stuff like // <![CDATA[ //--><![CDATA[//><!-- // :-O Edit : works with google map iframe but not with google map API :/ edit 2 : i used this link and used iframe http://www.google.com/maps/mm half solved, even if you have prefered gmap API Edited May 14, 2017 by LauraPresta (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now