Skip to:
Content
Pages
Categories
Search
Top
Bottom

Embed youtube video via iframe for html5 support

  • Profile photo of intimez
    intimez
    Participant

    @intimez

    Adding youtube to status and forum post is as easy as copying and pasting the url from youtube but the best practice is to use iframe method so that it can detect if the html5 player should be loaded or not.

    Any suggestion as to how this can be accomplished for both status and forum posts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Profile photo of intimez
    intimez
    Participant

    @intimez

    bump

    Profile photo of modemlooper
    modemlooper
    Moderator

    @modemlooper

    Not recommended. No social site allows you to put code into forms as it creates security holes. If you really don’t care about your sites security you can filter the kses that are in place to stip html tags

    This code will allow admins to be able to put code into forms and not get stripped. http://pastebin.com/CWryrkDT

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Embed youtube video via iframe for html5 support’ is closed to new replies.
Skip to toolbar