Elwin Lee & His Herp Derp Blog

design, technology, food and ranting!

[How-to-Fix] Joomla!: Enabling Object, Embed & Iframe

Posted on | July 28, 2011 | 1 Comment

Joomla blacklists <object>, <embed> & <iframe> by default for security reasons and filters out and removes these tags from your articles if you try to add them in your content. The iframe and embed options are useful to integrate e.g. Google Maps and Youtube. There’s a solution to disable the filtering by de-selecting certain user groups in joomla as blacklisted for filtering. This didn’t work for me though.

Instead, here’s a method to get it to work by diving into the PHP file itself. To disable the filtering, edit the filter PHP file and remove the tags from the blacklist.

Path: libraries\joomla\filter\filterinput.php

$tagBlacklist = array ('applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'script', 'style', 'title', 'xml');

 

Elwin enjoys travelling around the globe, getting a taste of the vast variety of cultures, local cuisines, design & technology. His passion for design, technology and video gaming has always been his motivation to become a designer. In his spare time Elwin indulges himself with real-time strategy games, enjoy tasting food and practice the art of Kendo. He has a degree in Industrial Design and is currently studying Entertainment Technology at Carnegie Mellon University.

Share on Twitter

Facebook comments:

Powered by Facebook Comments

Comments

One Response to “[How-to-Fix] Joomla!: Enabling Object, Embed & Iframe”

  1. How to Stop Joomla from Stripping Object, Embed or Iframe HTML Code in Web Editor | Small Business SEO Marketing Services Web Development | d0x
    August 24th, 2011 @ 10:21 PM

    [...] and enabling plugins, user permissions, etc. and tried them all without success, until I found this blog post which explains you need to actually edit the PHP file in [...]

Leave a Reply





Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: