Version: 1.3.5, by Fangs404
Developer Last Online: Sep 2019
Category: BB Code Enhancements -
Version: 3.7.x
Rating:
Released: 10-21-2008
Last Update: Never
Installs: 80
Re-useable Code Translations
No support by the author.
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:
Example: [youtube]zlfKdbWwruY[/youtube] 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
This modification may not be copied, reproduced or published elsewhere without author's permission.
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?
I checked the size that YouTube actually uses (which isn't easily done since YouTube has a really complicated embedding scheme involving JavaScripts - I just took a screenshot and measured it), and it's actually not true 720p. YouTube displays at 858x508 for some odd reason, so that's what I'll alter the script to use.
Quote:
Originally Posted by Vaupell
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. .
I don't see this problem. When I hit the button, it just displays , no spaces or new lines. Glad you like it, though.
Quote:
Originally Posted by Dingo14
does anyone know if this draws on your server bandwidth to run the youtube videos like this just curious thanks
No, it doesn't use any bandwidth from your server.
Quote:
Originally Posted by Phaedrus
Would this work with other video sites, just setting the {param} differently?
It's not quite that straightforward, but most video sites have embedding code. Just alter the URL before/after the {param} and it should work. I've already modified the same code for Vimeo.
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?
It's not quite that straightforward, but most video sites have embedding code. Just alter the URL before/after the {param} and it should work. I've already modified the same code for Vimeo.
Well, yeah, and you'd have to use different tags, but I can see what you mean.
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 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.
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.