If I try to insert and pres OK, FCKeditor chance the code to this:
<p><e><x>mbed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="/upload/248308.swf" width="400" height="200" play="true" loop="true" menu="true"> <p> </p> </x></e></p>
Re: realestate
Re: Embed video and flash not working
Dear Developers
Do you ignore this problem?
Re: Embed video and flash not working
Re: Embed video and flash not working
I'm using asp pages.
Trying to add <object> tag with <param> inside. All is left after submiting is an empty embed.
How can I disable the html filter?
Thanks
Re: Embed video and flash not working
Re: Embed video and flash not working
Re: Embed video and flash not working
I have some similar issues.
If I try to embed a flash widget like this one from twitter:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="290" height="350" id="TwitterWidget" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="FlashVars" value="userID=14635642&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml">
<embed src="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" quality="high" bgcolor="#000000" width="290" height="350" name="TwitterWidget" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="userID=14635642&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml"/>
</object>
Using source it is turned into this after publication:
<object width="290" height="350" data="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" type="application/x-shockwave-flash">
<param name="allowScriptAccess" value="never">
<param name="allowNetworking" value="internal">
<param name="movie" value="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf"><embed src="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" width="290" height="350" type="application/x-shockwave-flash" allowscriptaccess="never" allownetworking="internal"></embed></object>
using flash url it is turned into this:
<embed type="application/x-shockwave-flash" src="" allowscriptaccess="never" allownetworking="internal"></embed></p>
<p> </p>
few other issues with flash related to allowscriptaccess being changed to never...can't see where to change that to "always" in the config file
Re: Embed video and flash not working
i use phpmaker and the fckeditor makes me the same problem..what i want is to insert videos....
Thank you...
Re: Embed video and flash not working
have to delete the contents of the array $ra1 and $ra2 in order to remove the blockade.
in the folder of template in the file zip of phpmaker program, you can change the phpfn.php
example.
// now the only remaining whitespace attacks are \t, \n, and \r
$ra1 = Array('javascript', 'vbscript', 'expression', '<applet', '<meta', '<xml', '<blink', '<link', '<style', '<script', '<embed', '<object', '<iframe', '<frame', '<frameset', '<ilayer', '<layer', '<bgsound', '<title', '<base'); // less strict
$ra2 = Array('onabort', 'onactivate', 'onafterprint', 'onafterupdate', 'onbeforeactivate', 'onbeforecopy', 'onbeforecut', 'onbeforedeactivate', 'onbeforeeditfocus', 'onbeforepaste', 'onbeforeprint', 'onbeforeunload', 'onbeforeupdate', 'onblur', 'onbounce', 'oncellchange', 'onchange', 'onclick', 'oncontextmenu', 'oncontrolselect', 'oncopy', 'oncut', 'ondataavailable', 'ondatasetchanged', 'ondatasetcomplete', 'ondblclick', 'ondeactivate', 'ondrag', 'ondragend', 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'onerror', 'onerrorupdate', 'onfilterchange', 'onfinish', 'onfocus', 'onfocusin', 'onfocusout', 'onhelp', 'onkeydown', 'onkeypress', 'onkeyup', 'onlayoutcomplete', 'onload', 'onlosecapture', 'onmousedown', 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onmousewheel', 'onmove', 'onmoveend', 'onmovestart', 'onpaste', 'onpropertychange', 'onreadystatechange', 'onreset', 'onresize', 'onresizeend', 'onresizestart', 'onrowenter', 'onrowexit', 'onrowsdelete', 'onrowsinserted', 'onscroll', 'onselect', 'onselectionchange', 'onselectstart', 'onstart', 'onstop', 'onsubmit', 'onunload');
$ra = array_merge($ra1, $ra2);
$found = true; // keep replacing as long as the previous round replaced something
while ($found == true) {
$val_before = $val;
for ($i = 0; $i < sizeof($ra); $i++) {
$pattern = '/';
for ($j = 0; $j < strlen($ra[$i]); $j++) {
if ($j > 0) {
$pattern .= '(';
$pattern .= '(&#[x|X]0{0,8}([9][a][b]);?)?';
$pattern .= '|(�{0,8}([9][10][13]);?)?';
$pattern .= ')?';
}
$pattern .= $ra[$i][$j];
}
$pattern .= '/i';
$replacement = substr($ra[$i], 0, 2).'<x>'.substr($ra[$i], 2); // add in <> to nerf the tag
$val = preg_replace($pattern, $replacement, $val); // filter out the hex tags
if ($val_before == $val) {
// no replacements were made, so exit the loop
$found = false;
}
}
}
return $val;
}
--------------------------------------------------------------------------------------------------
// now the only remaining whitespace attacks are \t, \n, and \r
$ra1 = Array(); // -----------------------------------------------------------------------Ok
$ra2 = Array(); // -------------------------------------------------------------------------- OK
$ra = array_merge($ra1, $ra2);
$found = true; // keep replacing as long as the previous round replaced something
while ($found == true) {
$val_before = $val;
for ($i = 0; $i < sizeof($ra); $i++) {
$pattern = '/';
for ($j = 0; $j < strlen($ra[$i]); $j++) {
if ($j > 0) {
$pattern .= '(';
$pattern .= '(&#[x|X]0{0,8}([9][a][b]);?)?';
$pattern .= '|(�{0,8}([9][10][13]);?)?';
$pattern .= ')?';
}
$pattern .= $ra[$i][$j];
}
$pattern .= '/i';
$replacement = substr($ra[$i], 0, 2).'<x>'.substr($ra[$i], 2); // add in <> to nerf the tag
$val = preg_replace($pattern, $replacement, $val); // filter out the hex tags
if ($val_before == $val) {
// no replacements were made, so exit the loop
$found = false;
}
}
}
return $val;
}
Re: Embed video and flash not working
Re: Embed video and flash not working
Ya this is a pain in the butt.
I have a button that inserts a movie into the editor. If I insert this:
Re: Embed video and flash not working
Visit this forum topic for help ...
viewtopic.php?f=6&t=14477
which I just posted on July 11, 2009.
Re: Embed video and flash not working
I tried adding your 2 lines but now the app just hangs when i try to update the record.
@danielqd
You sure that was the only 2 lines to enter? Would be lines 3347 and 3348.
Having the same <o<x>bject> problem in PHPMAKER.
Re: Embed video and flash not working
On line 3792 in your PHPFN template, remove the <object and <embed references in the $ra1 array. Search for the text "$ra1 = Array"
Fixed done.