Like the spoiler, easy to implement
BBCode: Youtube
ACP -> Posting -> BBCodes -> Add a New BBCode
BBcode:
Code: Select all
[youtube]{URL}[/youtube]
Code: Select all
<script language="Javascript">
var a = '{URL}';
var temp = new Array();
temp = a.split('?v=');
document.write('<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/' + temp[1] + '&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' + temp[1] + '&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object>');
</script>
Code: Select all
Usage: [youtube]URL text[/youtube]