![]() |
youtube and google videos
how do you add the option of playing youtube and other videos within the thread/post instead of having to goto the host site.
|
I've created a custom [youtube] BBcode tag that lets you do this. You can do it a number of different ways, but mine is like:
[youtube]YouTubeVideoID[/youtube] where YouTubeVideoID is the code that YouTube gives to each video on its site. That ID is a mix of characters, symbols and numbers. and can be found by looking at the URL to the YouTube video. It's the value in the "v=" name/value pairing in all YouTube URLs. To do it in AdminCP, go to Custom BBcode > Add New BBcode. Call it YouTube Video, or whatever you want. For "Tag" enter youtube. For replacement, enter: HTML Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> |
All times are GMT. The time now is 06:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|