Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.

Youtube embed

edited September 2009 in Vanilla 2.0 - 2.8
Don't want to allow HTML in posts, but would like if people could embed youtube videos.

What about an extension that allows a [youtube][/youtube] formulation in posts. In between the tags goes the youtube video id, like WO--A9EJng0. When the post goes live, the youtube embed code is automatically inserted and the video is shown in-thread.

Comments

  • MarkMark Vanilla Staff
    Definitely possible even using HtmlPurifier. Just disallow all html tags and enable the youtube HtmlPurifier filter. Check out our Format::Html() method to see how it's done.
Sign In or Register to comment.