Forums | Mahara Community

Support /
Twitter widget


anonymous profile picture
Account deleted
Posts: 109

01 May 2012, 19:01

Hi,

Am trying to integrate/embed a Twitter Profile widget - https://twitter.com/about/resources/widgets/widget_profile - but without success.

Anyone with experience/ideas?

Kind regards, Jonas

02 May 2012, 6:40

Hello,

The HTML editor wipe all the non authorized code in Mahara before displaying the box on the page. This avoid "bad" code to jeopardize security on your system.

I think you could embed Twitter widget with Mahara 1.5, because you can edit authorization codes, for this see : http://manual.mahara.org/fr/1.5_STABLE/site_admin/extensions.html#index-12

You have to do this directly with an editor into the files. Mahara 1.6 will have an end-user interface editor for this feature.

Hope that helps

-dajan

Kristina Hoeppner's profile picture
Posts: 4730

05 May 2012, 23:03

Hello Jonas,

As dajan writes, the code is stripped out of the text box because it is potentially dangerous. However, the SafeIFrame feature of HTMLPurifier does not help you as the code you want to embed is JavaScript. The SafeIFrame feature - as it name already suggests - only works for iFrames. Thus, you would have to create a bespoke filter.

Alternatively, you could see if the Twitter plugin from Florian https://mahara.org/view/view.php?id=44478 can do what you want to achieve. It allows you to embed Twitter tweets and time lines.

Cheers

Kristina

3 results