![]() |
YouTube BB Code (W3C-compliant!)
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/external/2009/01/66.jpg 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. |
yes working thanks
|
thanks a lot i try it
|
Thanks a lot. Perfectly valid XHTML transitional. I have tried many bb codes for youtube, but this is the only one I have found that works with XHTML! Thank you very much!!!
|
bro, works perfrectly! finally someone who can easily explain how to do this! A+++++++
|
yap the same as iam useing in my codes ,,,,
https://vborg.vbsupport.ru/showthread.php?t=189497 thanks , |
Good stuff, works a treat :)
Thanks |
Quote:
|
Very nice :D
Two times smaller than my previous code and your BORKED note is good to know too. |
cool ta ;)
|
Quote:
|
Thanks a lot men :)
|
Thanks :D
|
I just updated this to include a new tag (youtubehd) which enables embedding YouTube's new HD mode.
|
And I just updated it once more to add support for HQ mode (which is better than regular but worse than HD).
|
Thank you. :D
|
Installed the HQ version so far. Not sure I have ever seen an HQ video yet
|
Most of the HD videos I see on youtube are at 1280x720. The HD tag embeds at 630x380. Changing the size in the embed code seems to work, but is there anything else to change to get the full size in an embed?
|
BREAKING NEWS:
I don't know if YouTube did any tweaking or not, but if you put the embed code from a youtube video between [Youtube] embed code [/YouTube] now, it embeds the video perfectly as well. One of our member just did it and I was shocked. Just wanted to let you guys know ;). I have double checked the fact that my html IS turned off. |
Installed and working, except when using the "botton" feature it adds spaces around
the video id, so you manually have to remove the extra spaces for it to work. makes this [youtubehd] bIgslPPC1BA [/youtubehd] instead of [youtubehd]bIgslPPC1BA[/youtubehd] Tx again. But nice and installed. . |
Would this work with other video sites, just setting the {param} differently?
|
does anyone know if this draws on your server bandwidth to run the youtube videos like this just curious thanks
|
Quote:
Quote:
Quote:
Quote:
|
Does this, or any, embedded YouTube code make it so that "mature content" videos either can't be screened or have it so that the end user has to confirm that they are of age?
|
Quote:
Excellent. I think I'll do this rather than the passive hack. See if I can get people used to it by disabling the other hack in other forums... |
I just tested it, and it appears that this does get by the age filter. The video I tried played just fine and didn't ask for an birthday or anything.
|
I always can NOT drop down the Thread Tools Menue ever when a post has been made with a Video in it ;S
IS that a bug? had to uninstall it, because of that ;S |
That's definitely not a bug with my BBCode. It's just a simple object HTML. It sounds like a browser bug on your end or maybe a bug with your template.
|
Hi,
Thanks a lot, it works great! |
Having problems with the youtube button image in the post a reply box. It works if I use a url from another site, but can't get it to link from my site (probably doing something wrong).
Also in FireFox it just shows the text and not a button (wrap [youtube] tags around text). Probably because there's a prob with the image button. Anyway, help!!! |
Such a small enhancement, but so useful. Makes things easier!
|
Quote:
Also, please hit "Mark as Installed" to let me know that you're actually using it. |
I feel a little noob-ish on this, but where do I actually enter that code? I've installed other mods before, but had never had to do one like this, and I'm delving into VB for the first time in earnest as an admin.
|
Quote:
|
Quote:
|
can someone please explain to me the whole "BORKED" thing?
|
Quote:
|
thanx alot mate cool mod
|
Quote:
|
Quote:
|
All times are GMT. The time now is 07:46 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:
|