Okay. Partial solution.

by Claude Errera @, Friday, March 29, 2013, 06:53 (4256 days ago) @ Claude Errera

I tried to be all fancy and allow parameters and such... but my first cut didn't work. (I'm guessing my regex expression needs work. :) )

That's okay, though - there's a partial solution. It requires you not to be dumb, and I will NOT put a button up to use it (because it requires you not to be dumb).

To use it, you find the actual video code from a YouTube video. For example, the new Destiny Character Development vid is here:

http://www.youtube.com/watch?v=xKOY8zJx2Q4

the video code you need is

xKOY8zJx2Q4

You'd embed this with the following code:

[youtube]xKOY8zJx2Q4[/youtube]

You have no control over size, or any of that, and if you put garbage into the tags, you'll get garbage out... you're embedding an iFrame that YouTube will try and parse, so anything besides that actual identifying code (youtube.com, http, whatever) will cause the URL to fail.

One of these days when I have time I'll try and figure out where my expression went wrong, and we'll have a more flexible solution - but this should do for now. :)


Complete thread:

 RSS Feed of thread