<<< Coding for the future >>>
| Embedded videos in Joomla articles not playing |
|
|
|
| Written by Administrator |
| Wednesday, 18 August 2010 21:01 |
|
I've long had a battle with videos in Joomla articles not playing. It originally began when the editor (e.g. TinyMCE) began stripping out the code for object or embed tags. But once that had been resolved, the videos would seem to load then display an error symbol - i.e they wouldn't play. I'm using Joomla 1.5.
Eventually after much messing around the only solution I've found to work is the following. In article parameters (Go to Article Manager and then click paramaters button in the top right) under 'Filter Manager' set administrator and super administrator to 'Blacklist'. Don't forget to save the settings! Next you need to edit the file: libraries/joomla/filter/filterinput.php
var $tagBlacklist = array ('applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'script', 'style', 'title', 'xml'); Simply remove the 'embed' and 'object' tags to end up with this: var $tagBlacklist = array ('applet', 'body', 'bgsound', 'base', 'basefont', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'script', 'style', 'title', 'xml'); You should be aware that if you have other users with administrator or super administrator privileges, you expose yourself to bad objects being embedded. For security purposes you should be absolutely sure that you have no bad cookies on your staff or you yourself will not go to the dark side...
|