Just thought I'd share this YouTube BBCode that I'm using. Two images are provided and for use with it and the code used itself is XHTML valid.
Title: YouTube
BB Code Tag Name: youtube
Replacement:
Example: [youtube]kwcHChqcXfo[/youtube]
Description:
Use {option}: No
Button Image (Optional): images/editor/youtube.gif
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: No
YOUTUBE IMAGES:
Small image: Upload to - images/editor/
Large Image: Upload to - images/misc/
Title: YouTube
BB Code Tag Name: youtube
Replacement:
Code:
<table class="tborder" cellpadding="1" cellspacing="1" border="0" width="566"><tbody><tr><td style="text-align:center"><a href="http://www.youtube.com/watch?v={param}" target="_blank"><img src="images/misc/youtube_video.gif" alt="YouTube Video" border="0" width="128" height="26" /></a></td></tr></tbody><tbody><tr><td class="alt1" align="center"><object width="560" height="340" type="application/x-shockwave-flash" data="http://www.youtube.com/v/{param}"><param name="movie" value="http://www.youtube.com/v/{param}" /><param name="wmode" value="transparent" /><strong>Error:</strong> If you cannot see this video, then either <a href="http://www.youtube.com/" target="_blank">YouTube</a> is down or you don't have Flash installed to play it.</object></td></tr></tbody></table>
Description:
Code:
The [youtube] tag allows you to play video's in posts using the youtube code highlighted in red in this example: http://www.youtube.com/watch?v=<font color="#FF0000">kwcHChqcXfo</font>.
Use {option}: No
Button Image (Optional): images/editor/youtube.gif
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: No
YOUTUBE IMAGES:
Small image: Upload to - images/editor/
Large Image: Upload to - images/misc/
Comment