Xenonsmart / swfobject4joomla

Automatically exported from code.google.com/p/swfobject4joomla
0 stars 0 forks source link

Module would not save HTML tags in the Alternative content parameter field #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter text   test<br />  in Alternative content parameter field and click 
Apply

What is the expected output? What do you see instead?
I expected test<br /> to be saved.  Instead the text  test  is save and the <br 
/> is stripped out.

What version of the product are you using? On what operating system?
Joomla 1.6.1 / mod_swfobject_v2.1

Please provide any additional information below.
I fixed it for me by updating modules\mod_swfobjext\mod_swfobject.xml, 
add parameter, filter="safehtml", to alt_content
eg
        <field name="alt_content" type="textarea" cols="35" rows="10" default="" label="Alternative content" description="HTML to display if flash player is not detected." filter="safehtml" />

Maybe Joomla 1.6 specific, also another setting might be filter="raw" (?)   

Thanks for a great Module.
Hope this helps.
Bryn

Original issue reported on code.google.com by celtc...@gmail.com on 10 May 2011 at 12:53

GoogleCodeExporter commented 9 years ago
Had to comment-out the line <p><?php echo JText::_('Requirements');?></p> in 
tmp/default.php as well.

Original comment by wwj.a...@gmail.com on 26 May 2011 at 3:16

GoogleCodeExporter commented 9 years ago
I also had to remove the line <p><?php echo JText::_('Requirements');?></p> in 
tmp/default.php as well. Otherwise you get the text "Requirements" displayed 
below your  NON-HTML version of the module.

Original comment by tez.crad...@gmail.com on 27 Sep 2011 at 2:40

GoogleCodeExporter commented 9 years ago
I also have the same issue in Joomla 1.7.
The Alternative content box is stripping all content contained within valid 
HTML tags and leaving only text. 

Original comment by erima0...@gmail.com on 6 Mar 2012 at 3:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I had this issue in joomla 2.5 as well, the OP's fix worked like a charm. 
Thanks Bryn!
And thanks for the really handy module!

Original comment by PaulHorn...@gmail.com on 24 Mar 2012 at 2:39

GoogleCodeExporter commented 9 years ago
Updating modules\mod_swfobjext\mod_swfobject.xml worked for me, too. Using 
Joomla 2.5.6
Didn't need to edit tmpl/default.php.

That's saved me hours of trying to figure out what's going on. THANK YOU!

Original comment by 2CVGB...@gmail.com on 13 Sep 2012 at 3:09

GoogleCodeExporter commented 9 years ago
Thanks so much for the easy fix!

Original comment by SloanThrasher on 18 May 2013 at 3:21