Can you simply add a youtube tag like [youtube] or edit the Flash tag (it's only used for youtube anyway) to add the new option?
Usage
- Code: Select all
[youtube]http://{SIMPLETEXT}youtube.com/watch?v={IDENTIFIER}[/youtube]
Html replacement:
- Code: Select all
<iframe class="youtube-player" type="text/html" width="430" height="320" src="http://www.youtube.com/embed/{IDENTIFIER}" frameborder="0">
</iframe>
and users would post videos like
- Code: Select all
[youtube]http://www.youtube.com/watch?v=iMmy212DyWs[/youtube]
Not only will this make it easier to post Youtube videos (just inserting video's URL in tags), but it will also make people like us who have Youtube HTML5 enabled (and flash disabled) to watch it in the faster HTML5.
<iframe></iframe> is also the now default embedding method that replaced <object></object
Adding this shouldn't be hard as shown here: Adding Custom BBCodes in phpBB3