Okay. Partial solution.
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:
- How do you embed Youtube in a post? -
scarab,
2013-03-29, 05:00
- I tried pasting embed code by didn't see vid in preview -
scarab,
2013-03-29, 05:01
- I tried pasting embed code by didn't see vid in preview -
Claude Errera,
2013-03-29, 05:33
- Is there sample code? -
scarab,
2013-03-29, 05:35
- Is there sample code? -
Claude Errera,
2013-03-29, 05:59
- ooooo, burn Cody burn ;-) - scarab, 2013-03-29, 06:04
- Okay. Partial solution. -
Claude Errera,
2013-03-29, 06:53
- Okay. Partial solution. -
Schooly D,
2013-03-29, 07:28
- I love regular expressions - JDQuackers, 2013-03-29, 07:33
- Never mind. Solved it. -
Claude Errera,
2013-03-29, 08:02
- Thanks Wu! - RC, 2013-03-29, 08:29
- Never mind. Solved it. -
scarab,
2013-03-29, 09:58
- Never mind. Solved it. -
Claude Errera,
2013-03-29, 11:03
- Oh you! :-) - scarab, 2013-03-29, 13:43
- Can't we get a button for it? You being so clever and all. -
scarab,
2013-03-29, 14:11
- Can't we get a button for it? You being so clever and all. -
Claude Errera,
2013-03-29, 17:48
- "Maverick's supersonic...I'll be there in 30 seconds." - sc - scarab, 2013-03-30, 00:19
- Can't we get a button for it? You being so clever and all. -
Claude Errera,
2013-03-29, 17:48
- Never mind. Solved it. -
Claude Errera,
2013-03-29, 11:03
- Testing the code... - UnrealCh13f, 2013-03-29, 15:11
- Okay. Partial solution. -
Claude Errera,
2013-03-29, 08:16
- Okay. Partial solution. - Schooly D, 2013-03-29, 08:35
- Okay. Partial solution. -
Beckx,
2013-03-29, 12:16
- Okay. Partial solution. -
SonofMacPhisto,
2013-04-05, 13:15
- Okay. Partial solution. - Beckx, 2013-04-06, 08:08
- Okay. Partial solution. -
SonofMacPhisto,
2013-04-05, 13:15
- Okay. Partial solution. -
Schooly D,
2013-03-29, 07:28
- Is there sample code? -
Claude Errera,
2013-03-29, 05:59
- Is there sample code? -
scarab,
2013-03-29, 05:35
- I tried pasting embed code by didn't see vid in preview -
Claude Errera,
2013-03-29, 05:33
- I tried pasting embed code by didn't see vid in preview -
scarab,
2013-03-29, 05:01