Actions

Proposals/External media block extension

From Mahara Wiki

< Proposals
Revision as of 10:03, 2 March 2012 by Anitsirk (talk | contribs) (Created page with "Mahara 1.5 will have the [https://bugs.launchpad.net/mahara/+bug/922360 SafeIFrame feature of HTML Purifier]. The existing "External media" block is to be expanded so that any i…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Mahara 1.5 will have the SafeIFrame feature of HTML Purifier.

The existing "External media" block is to be expanded so that any iFrame that is allowed by the site admin can be used besides the special filters we already have which allow users not only to use the embed code but also to just provide the URL.

  • A site admin setting is created in the HTML Extensions (or the existing one is used) which allows a site admin to add URLs for iFrames from the frontend (add, edit, delete). This setting will then pull the favicon from the service to be displayed and the admin can also add / edit / delete the alt text / title to be displayed with the favicon. The favicon is also displayed on the admin page so that the site admin sees them there.
  • The external media block gets refactored so that sites that have an iFrame embed code which is allowed on the site by HTML Purifier get their favicon added (like Slideshare and the others now) and users can put the embed code in.
  • The current text field is changed into a text area. This makes it easier to see the entire iFrame code instead of only the first 50 or so characters.
  • The services for which a filter exists that allows users to put in the embed code or just the page URL are identified and listed first under a heading in alphabetical order according to their alt text.
  • All other embed codes for which only the entire iFrame embed code works are listed under another heading in alphabetical order according to their alt text.
  • The icon of any service displayed is linked to its homepage (as is currently the case already).