![]() |
YouTube BB Code (W3C-compliant!)
1 Attachment(s)
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: https://vborg.vbsupport.ru/attachmen...1&d=1250542951 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. |
Members simply paste what they see in the browser URL. How can I change it to accept full URL instead of just ID?
|
Quote:
|
My members just had to be edumacated. But they soon learned how it works.
|
thnx man
|
Thank you!
|
Why i saw white page if url put....?
|
I don't understand. Copy/paste the [youtube] command you were trying.
|
installed - many thanks - any way of getting the icon to show in quick reply - typing the text works so it is ok from there.
|
Quote:
And its saws lucky its sould be when i put [YOYTUBE]xxxxxxxxxxxxxxxxxxx[/YOUTUBE] |
*Installed*
thank you |
I actually just checked YouTube's dimensions for regular and HQ, and it's 644x390 (HD is 858x508 for comparison). I went ahead and changed it. :)
|
Cant work with full url from Youtube....?
|
Quote:
|
This is great TY :)
Will this affect my bandwidth much? |
Quote:
|
Just put these in. I hope it's ok to ask this question here, on the editor bar is there anyway to arrange the order of the buttons?:
https://vborg.vbsupport.ru/ I want it: Normal, HQ, HD. |
Quote:
|
I don't know if you guys knew this, but if you want to make the video autoplay, you can do something like this:
Code:
[youtubehd]zlfKdbWwruY&autoplay=1[/youtubehd] |
Installed! Thank You!
|
Just installed all three, thanks so much for the code that can validate!
|
gonna tag this for future reference =) i dont need this on my board just yet but it'll be handy to add in if people feel the need to post youtube links
|
Youtube HQ and HD where found....?
|
Quote:
|
Okay this is confusing to me:
Mod is working fine for me and most members but a few of them have the same videos that show up fine for me, show up as "BORKED" for them. Any ideas?? They have flash installed...normal youtube works fine and the tag is set up properly since I can see the videos that they cannot. It's really quite bizarre. They also cleared cache/refreshed (CTRL + F5) |
Quote:
|
Woot found a good one at last. =P Installed!
|
The videos HD from my forum are: We're sorry this video in no longer available...
Why....? |
All good, Hd's something fail, but then again HD is only in testing phase
ewen though it appears availible youtube stated serveral times that its only in testing for now. so 100% compability should not be exspected at the moment. Lovely though |
Some message from Youtube HD
|
thanks!
|
thanks for the code.....
1.) i can not see the youtube picture button. it doesn't even show in the admincp under the button image heading. i placed the picture on my site and it's there. i can type in a browser's url and it shows up. any idea ? i don't use any forum mods. 2.) also seems most HD clips don't have a hq version. i have several hd youtube clips. you can view them in regular quality OR in hd, but not hq. but i would like to have one clip that i can use as an example for all three qualaties. so i want to embed the same clip thrice for each quality and show that as my tutorial. not sure if it's possible ?? anyone has a clip that can be viewed in regular, hq and hd ??? the way i figured it out is this: if you upload a clip below hd quality it will have 2 versions: regular and hq if you upload a hd clip it will have two versions: regular and hd (but not hq) (unless i'm wrong) thanks, |
What happen with Youtube HD..!!!If go Youtube Homepage saw normal but from forum not saw....
|
from the videos working perfectly on firefox and IE all of a sudden today they are showing as white boxes and not loading in both.
http://www.birdiechance.co.uk/forums...hread.php?t=88 Is it just me or is it happening for everybody else? |
Same problem... :mad:
|
|
The videos now work again using Firefox but still white boxes with Internet Explorer :s
|
Quote:
|
not working in firefox again now :(
|
Quote:
For your second question, look at the examples I gave. I use the same video 3 times. It has all 3 qualities. For those of you that're experiencing issues with this not loading, there's nothing wrong with my script or your browsers or servers. It's just YouTube having issues. Give it time, and they'll straighten things out again. |
All times are GMT. The time now is 05:28 PM. |
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:
|