Jump to content

iframe problem


Recommended Posts

I have a problem with a iframe tag.

 

I used a iframe tag on a CMS page and inside of the page i embed in the iframe tag there is a Link but when i click it load the page inside on the iframa and i want a normal page load, i mean a Complete page load.

 

Any help????

 

Cheers!

Share this post


Link to post
Share on other sites

  • 2 weeks later...

<_<  i've seriously tried everything - for the last 3 days. and the answer was so easy! god damnit! 
but, Thank you El Patron!

 

try this

back office-->preferences-->general

set "allow iframes in html", to yes

it states it's no recommended..

I don't really know what it does specifically, but did notice it existed.

good luck

  • Like 1

Share this post


Link to post
Share on other sites

Just for others, with this problem, to know. I had previously done modifications that allow to use full tinyMCE on CMS pages (vekia's tutorial) and I've enabled iframes through back office (using presta 1.5.5.) but still couldn't save a CMS page with iframes in it. I checked the classes/Validate.php file and found this on line 392 

public static function isCleanHtml($html, $allow_iframe = false)

Just changed it to true and everything's working great. I just wonder why that kind of code still exists after all the modifications and changes made  :ph34r:

Share this post


Link to post
Share on other sites

Just for others, with this problem, to know. I had previously done modifications that allow to use full tinyMCE on CMS pages (vekia's tutorial) and I've enabled iframes through back office (using presta 1.5.5.) but still couldn't save a CMS page with iframes in it. I checked the classes/Validate.php file and found this on line 392 

public static function isCleanHtml($html, $allow_iframe = false)

Just changed it to true and everything's working great. I just wonder why that kind of code still exists after all the modifications and changes made  :ph34r:

 

have you followed second part of my tutorial? i released little update for prestashop in version 1.5.5

  • Like 1

Share this post


Link to post
Share on other sites

you're welcome B) im so glad that it works for you now as you expected.

im usually updating tutorials and modules when prestashop add some new features to the core

in this case was the same

 

with regards,

Milos

Share this post


Link to post
Share on other sites

  • 2 weeks later...

So, will it all work if I just follow your tutorial here: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html

 

Edit: so the tutorial will basically cover extending tinymce editor and modification of Validate.php and allow iFrame to work in cms? Just want to confirm.

 

you will need to extend tinymce editor (it's necessary) and also modify Validate.php class file to accept iframes

Edited by justicejustine (see edit history)

Share this post


Link to post
Share on other sites

So, will it all work if I just follow your tutorial here: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html

 

Edit: so the tutorial will basically cover extending tinymce editor and modification of Validate.php and allow iFrame to work in cms? Just want to confirm.

that's correct. just follow steps there, and you will be able to add iframes

Share this post


Link to post
Share on other sites

Hi,

I hace some javascript code it is well executing in 1.4 but its is not executing in 1.5 .It is giving error as The content field (English (English)) is invalid.

Please let me know is java script works in Prestashop 1.5.If works how to use them

 

Thanks in advance

Share this post


Link to post
Share on other sites

Hi,

I hace some javascript code it is well executing in 1.4 but its is not executing in 1.5 .It is giving error as The content field (English (English)) is invalid.

Please let me know is java script works in Prestashop 1.5.If works how to use them

 

Thanks in advance

 

in this case it's necessary to modify tinymce object (extend features) and also modify validation class, more information (full guide) here: tinymce cms pages js support

Share this post


Link to post
Share on other sites

  • 1 month later...

plz help

 

The content field (English (English)) is invalid.

 

<html>
<head>
<title></title>
</head>
<body>
<img onmouseover="(src='http://s14.directupload.net/images/131212/lt6vqtyu.png')" onmouseout="(src='http://s14.directupload.net/images/131212/bq8jcqt8.png')" src="http://s14.directupload.net/images/131212/bq8jcqt8.png" alt="" border="0">
</body>
</html>
 

Share this post


Link to post
Share on other sites

can you try to use code without:

<img onmouseover="(src='http://s14.directupl...12/lt6vqtyu.png')" onmouseout="(src='http://s14.directupload.net/images/131212/bq8jcqt8.png')" src="http://s14.directupl...12/bq8jcqt8.png" alt="" border="0">

will see what's goin on then

Share this post


Link to post
Share on other sites

problem is related to script.

$events = 'onmousedown|onmousemove|onmmouseup|onmouseover|onmouseout|onload|onunload|onfocus|onblur|onchange';
    $events .= '|onsubmit|ondblclick|onclick|onkeydown|onkeyup|onkeypress|onmouseenter|onmouseleave|onerror|onselect|onreset|onabort|ondragdrop|onresize|onactivate|onafterprint|onmoveend';
    $events .= '|onafterupdate|onbeforeactivate|onbeforecopy|onbeforecut|onbeforedeactivate|onbeforeeditfocus|onbeforepaste|onbeforeprint|onbeforeunload|onbeforeupdate|onmove';
    $events .= '|onbounce|oncellchange|oncontextmenu|oncontrolselect|oncopy|oncut|ondataavailable|ondatasetchanged|ondatasetcomplete|ondeactivate|ondrag|ondragend|ondragenter|onmousewheel';
    $events .= '|ondragleave|ondragover|ondragstart|ondrop|onerrorupdate|onfilterchange|onfinish|onfocusin|onfocusout|onhashchange|onhelp|oninput|onlosecapture|onmessage|onmouseup|onmovestart';
    $events .= '|onoffline|ononline|onpaste|onpropertychange|onreadystatechange|onresizeend|onresizestart|onrowenter|onrowexit|onrowsdelete|onrowsinserted|onscroll|onsearch|onselectionchange';
    $events .= '|onselectstart|onstart|onstop';

in validate.php use just this:

public static function isCleanHtml($html, $allow_iframe = false){
    return true;
}
  • Like 1

Share this post


Link to post
Share on other sites

  • 3 months later...
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More