« Software RAID 5 unter Ubuntu Festplatte ausgestecktMoving Magento from MySQL 5.1.37 to 5.0.51a »

Joomla 1.5, JEvents & iFrames

26.01.11

Permalink 23:48:03, von ff E-Mail , 113 Wörter   German (DE) latin1
Kategorien: Arbeit, Internet

Joomla 1.5, JEvents & iFrames

Recently a customer tried to insert a youtube iframe into a jEvent which would not work. Interestingly, inserting iframes into normal posts works as expected. The solution was a little hack which prevents filtering of the request data:
components/jevents/com_jevents/libraries/iCalEvent.php, Line 356:
instead of
$array = JRequest::get('request', JREQUEST_ALLOWHTML);

it should read
$array = JRequest::get('request', JREQUEST_ALLOWRAW);

and voila: iframes are allowed in jEvents, too. :)

If you are using JCE and wonder why iframes still keep disappearing, edit the JCE component and add "invalid_elements: applet,script" to advanced parameters (standard is applet,iframe,script). Do not add any quotes since JCE automatically does them for you.

Noch kein Feedback

Einen Kommentar hinterlassen


Ihre E-Mail-Adresse wird nicht auf dieser Seite angezeigt.

Ihr URL wird angezeigt.
(Zeilenumbrüche werden zu <br />)
(Name, E-Mail-Adresse & Webseite)
(Benutzern erlauben, Sie durch ein Kontaktformular zu kontaktieren (Ihre E-Mail-Adresse wird nicht weitergegeben))
Mai 2012
Mo Di Mi Do Fr Sa So
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Suche

powered by b2evolution free blog software