Jump to content

Simple Popup Gallery on CMS page


Recommended Posts

  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

  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

  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?
  • Like 1
Link to comment
Share on other sites

  On 5/2/2014 at 10:35 AM, vekia said:

it means that you changed something wrong.

i repeat my question:

 

 
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.
 
 
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

  On 5/2/2014 at 10:51 AM, shirani said:

 

 

 
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.
 
 
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 :unsure:

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

  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 :unsure:

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  :D !!!!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...