The Arcive of vBulletin Modifications Site. |
|
YouTube BB Code (W3C-compliant!) Details »»
|
|||||||||||||||||||||||||
I searched for a decent YouTube BB code tag here, but every single one of them uses the embed tag, which is an illegal XHTML tag. I set out to find a way to create a W3C-compliant YouTube BB code tag, and this is what you see here.
Title: YouTube BB Code Tag Name: youtube Replacement: HTML Code:
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{param}&fs=1&hd=1" width="644" height="390"><param name="movie" value="http://www.youtube.com/v/{param}&fs=1&hd=1" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><a href="http://www.youtube.com/watch?v={param}">http://www.youtube.com/watch?v={param}</a></object> Description: Embed a YouTube video. You <b>only</b> put the video ID in between the BB code tags (<b>NOT</b> the full URL!). Embedding <b>must</b> be enabled for the video! Use Option: No Image: Important Note! A link to the YouTube video is displayed if the YouTube video fails to load. There are a variety of reasons this might occur: - You didn't properly enter the video ID between the BB code tags. - You don't have the latest version of Flash. - You are using Firefox and have a conflicting extension (AdBlock, NoScript, a Greasemonkey script, etc). - The video doesn't allow embedding. - You have some other problem on your end (corrupt browser install, spyware, virus, etc.). - YouTube is currently having a problem. Show Your Support
|
|||||||||||||||||||||||||
| Благодарность от: | ||
| Perrier Sophie | ||
| Comments |
|
#2
|
|||
|
|||
|
Members simply paste what they see in the browser URL. How can I change it to accept full URL instead of just ID?
|
|
#3
|
|||
|
|||
|
You'll need another (fancier) mod if you want to do this. Given vB3's current BBCode system, a simple BBCode can't achieve that unfortunately. Just tell your members how to properly use this BBCode.
|
|
#4
|
|||
|
|||
|
My members just had to be edumacated. But they soon learned how it works.
|
|
#5
|
|||
|
|||
|
thnx man
|
|
#6
|
|||
|
|||
|
Thank you!
|
|
#7
|
|||
|
|||
|
Why i saw white page if url put....?
|
|
#8
|
|||
|
|||
|
I don't understand. Copy/paste the [youtube] command you were trying.
|
|
#9
|
|||
|
|||
|
installed - many thanks - any way of getting the icon to show in quick reply - typing the text works so it is ok from there.
|
|
#10
|
|||
|
|||
|
Quote:
And its saws lucky its sould be when i put [YOYTUBE]xxxxxxxxxxxxxxxxxxx[/YOUTUBE] |
![]() |
|
|