shirani Posted May 1, 2014 Share Posted May 1, 2014 Hi guys, looking around the internet i can't find a working CMS GALLERY MODULE, i need a simple gallery on a cms page. Tried many, but don't works fine... I hope somebody can help me Im using PrestaShop™ 1.5.6.2 Link to comment Share on other sites More sharing options...
Paulito Posted May 1, 2014 Share Posted May 1, 2014 Good morning Will this Tutorial be of any help to you: http://mypresta.eu/en/art/developer/gallery-on-cms-page-fancybox.html Paul 1 Link to comment Share on other sites More sharing options...
shirani Posted May 1, 2014 Author Share Posted May 1, 2014 On 5/1/2014 at 6:49 PM, Paulito said: Good morning Will this Tutorial be of any help to you: http://mypresta.eu/en/art/developer/gallery-on-cms-page-fancybox.html Paul Not working for me tried Tinymice first, but nothing changes Link to comment Share on other sites More sharing options...
vekia Posted May 2, 2014 Share Posted May 2, 2014 On 5/1/2014 at 10:59 PM, shirani said: Not working for me tried Tinymice first, but nothing changes if it's not working, it just meant that you did something wrong. where exactly you've got problem? what and how you changed? Link to comment Share on other sites More sharing options...
shirani Posted May 2, 2014 Author Share Posted May 2, 2014 On 5/2/2014 at 9:14 AM, vekia said: if it's not working, it just meant that you did something wrong. where exactly you've got problem? what and how you changed? when i try to add the tinymce, and go on the validation tutorial it gets a blank page, and nothing work Link to comment Share on other sites More sharing options...
vekia Posted May 2, 2014 Share Posted May 2, 2014 On 5/2/2014 at 10:25 AM, shirani said: when i try to add the tinymce, and go on the validation tutorial it gets a blank page, and nothing work it means that you changed something wrong. i repeat my question: Quote what and how you changed? 1 Link to comment Share on other sites More sharing options...
shirani Posted May 2, 2014 Author Share Posted May 2, 2014 On 5/2/2014 at 10:35 AM, vekia said: it means that you changed something wrong. i repeat my question: It don't let me post anything, i dont know why... Link to comment Share on other sites More sharing options...
vekia Posted May 2, 2014 Share Posted May 2, 2014 strange,perhpas you're trying to post some message with banned words :/ 1 Link to comment Share on other sites More sharing options...
shirani Posted May 2, 2014 Author Share Posted May 2, 2014 On 5/2/2014 at 10:35 AM, vekia said: it means that you changed something wrong. i repeat my question: In This tutorial: http://mypresta.eu/en/art/know-how/tinymce-editor-full-options-all-html-tags.html I done it changing this: $(document).ready(function(){ {block name="autoload_tinyMCE"} tinySetup({ editor_selector :"autoload_rte" }); {/block} }); With: $(document).ready(function(){ {block name="autoload_tinyMCE"} tinySetup({ editor_selector :"autoload_rte", theme_advanced_buttons1 : "save,newdocument,bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect, fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,search,replace,bullist,numlist,outdent,indent,blockquote,undo,redo,link,unlink,anchor,image,cleanup,help,codemagic,insertdate,inserttime,preview,forecolor,backcolor", theme_advanced_buttons3 : "code,tablecontrols,hr,removeformat,visualaid,sub,sup,charmap,emotions,iespell,media,advhr,print,ltr,rtl,fullscreen", theme_advanced_buttons4 : "styleprops,cite,abbr,acronym,del,ins,attribs,visualchars,nonbreaking,template,pagebreak,restoredraft,visualblocks", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : false, extended_valid_elements: 'pre[*],script[*],style[*]', valid_children: "+body[style|script],pre[script|div|p|br|span|img|style|h1|h2|h3|h4|h5],*[*]", valid_elements : '*[*]', force_p_newlines : false, cleanup: false, forced_root_block : false, force_br_newlines : true }); {/block} }); But nothing changes. Then after this i went ahead with this tutorial: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html#validate_class_change And i have done this adding the // to this two lines: //if (preg_match('/<[ \t\n]*script/ims', $html) || preg_match('/('.$events.')[ \t\n]*=/ims', $html) || preg_match('/.*script\:/ims', $html)) //return false; Then at this part "version 1.5.6+ has got additional param: $allow_iframe = false in function! don't forget about it!" i didn't understand very well were to add this: public static function isCleanHtml($html, $allow_iframe = false){ return true; } Can you help me with the last step ? i think is here the problem Link to comment Share on other sites More sharing options...
Andr3Ace Posted May 2, 2014 Share Posted May 2, 2014 On 5/2/2014 at 10:51 AM, shirani said: In This tutorial: http://mypresta.eu/en/art/know-how/tinymce-editor-full-options-all-html-tags.html I done it changing this: $(document).ready(function(){ {block name="autoload_tinyMCE"} tinySetup({ editor_selector :"autoload_rte" }); {/block} }); With: $(document).ready(function(){ {block name="autoload_tinyMCE"} tinySetup({ editor_selector :"autoload_rte", theme_advanced_buttons1 : "save,newdocument,bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect, fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,search,replace,bullist,numlist,outdent,indent,blockquote,undo,redo,link,unlink,anchor,image,cleanup,help,codemagic,insertdate,inserttime,preview,forecolor,backcolor", theme_advanced_buttons3 : "code,tablecontrols,hr,removeformat,visualaid,sub,sup,charmap,emotions,iespell,media,advhr,print,ltr,rtl,fullscreen", theme_advanced_buttons4 : "styleprops,cite,abbr,acronym,del,ins,attribs,visualchars,nonbreaking,template,pagebreak,restoredraft,visualblocks", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : false, extended_valid_elements: 'pre[*],script[*],style[*]', valid_children: "+body[style|script],pre[script|div|p|br|span|img|style|h1|h2|h3|h4|h5],*[*]", valid_elements : '*[*]', force_p_newlines : false, cleanup: false, forced_root_block : false, force_br_newlines : true }); {/block} }); But nothing changes. Then after this i went ahead with this tutorial: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html#validate_class_change And i have done this adding the // to this two lines: //if (preg_match('/<[ \t\n]*script/ims', $html) || preg_match('/('.$events.')[ \t\n]*=/ims', $html) || preg_match('/.*script\:/ims', $html)) //return false; Then at this part "version 1.5.6+ has got additional param: $allow_iframe = false in function! don't forget about it!" i didn't understand very well were to add this: public static function isCleanHtml($html, $allow_iframe = false){ return true; } Can you help me with the last step ? i think is here the problem it happened to me bfore. all i had to do was removed the { return true; } in the public static function isCleanHtml($html, $allow_iframe = false) i don't know why. but it's just worked with my ps1.5.6.1 also. but vekia confirmed me that that might cause error when u want to save that mofidified cms page which not hapenned to me. strange here's the link http://www.prestashop.com/forums/topic/244614-solved-need-a-little-help-cant-seem-to-get-fancybox-to-work-in-cms-1541/?do=findComment&comment=1654301 Link to comment Share on other sites More sharing options...
shirani Posted May 2, 2014 Author Share Posted May 2, 2014 On 5/2/2014 at 11:00 AM, Andr3Ace said: it happened to me bfore. all i had to do was removed the { return true; } in the public static function isCleanHtml($html, $allow_iframe = false) i don't know why. but it's just worked with my ps1.5.6.1 also. but vekia confirmed me that that might cause error when u want to save that mofidified cms page which not hapenned to me. strange here's the link http://www.prestashop.com/forums/topic/244614-solved-need-a-little-help-cant-seem-to-get-fancybox-to-work-in-cms-1541/?do=findComment&comment=1654301 OMG it worked for me !!! Thanks to both guys ! Anyway Andr3Ace is right, is working also like he said !!!! Thanks a lot And3Ace and also to you Vekia ! GREAT ! now need to see if i can add galley !!!! Link to comment Share on other sites More sharing options...
Andr3Ace Posted May 2, 2014 Share Posted May 2, 2014 Great, glad I can share. But all credits goes to vekia. Now u have to make sure it work just like the tuts said and just like u want 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