Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
YouTube BB Code (W3C-compliant!) Details »
YouTube BB Code (W3C-compliant!)
Mod Version: 1.3.5, by Fangs404 (Coder/Designer) Fangs404 is offline
Developer Last Online: Jan 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (14 votes - 4.79 average) Installs: 80
Released: 22 Oct 2008 Last Update: Never Downloads: 12
Supported Re-usable Code Translations  

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:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements YouTube BBcode TheProphet vBulletin 3.7 Template Modifications 47 22 Apr 2009 17:17

  #16  
Old 15 Dec 2008, 02:06
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Real name: Jeremy
Thank you.
__________________
Global Gamers
My Modifications
Reply With Quote
  #17  
Old 25 Dec 2008, 13:19
Keesa Keesa is offline
 
Join Date: Oct 2007
Installed the HQ version so far. Not sure I have ever seen an HQ video yet
Reply With Quote
  #18  
Old 26 Dec 2008, 02:07
Daryn Daryn is offline
 
Join Date: Nov 2008
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?
Reply With Quote
  #19  
Old 31 Dec 2008, 04:39
the stig's Avatar
the stig the stig is offline
 
Join Date: Sep 2008
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.
Reply With Quote
  #20  
Old 01 Jan 2009, 12:05
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Real name: Martin
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. .
Reply With Quote
  #21  
Old 02 Jan 2009, 07:07
Phaedrus Phaedrus is offline
 
Join Date: Aug 2006
Would this work with other video sites, just setting the {param} differently?
Reply With Quote
  #22  
Old 02 Jan 2009, 22:01
Dingo14 Dingo14 is offline
 
Join Date: Dec 2007
does anyone know if this draws on your server bandwidth to run the youtube videos like this just curious thanks
Reply With Quote
  #23  
Old 11 Jan 2009, 20:31
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
Originally Posted by Daryn View Post
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.

Originally Posted by Vaupell View Post
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.

Originally Posted by Dingo14 View Post
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.

Originally Posted by Phaedrus View Post
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.
Reply With Quote
  #24  
Old 13 Jan 2009, 07:26
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
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?
__________________
"Not all those who wander are lost" - J.R.R. Tolkien
Reply With Quote
  #25  
Old 13 Jan 2009, 20:09
Phaedrus Phaedrus is offline
 
Join Date: Aug 2006
Originally Posted by Fangs404 View Post
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...
Reply With Quote
  #26  
Old 14 Jan 2009, 03:02
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
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.
Reply With Quote
  #27  
Old 14 Jan 2009, 14:52
Chrakker Chrakker is offline
 
Join Date: Jan 2009
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
Reply With Quote
  #28  
Old 14 Jan 2009, 16:06
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
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.
Reply With Quote
  #29  
Old 14 Jan 2009, 20:49
M3xital's Avatar
M3xital M3xital is offline
 
Join Date: Jan 2009
Hi,
Thanks a lot, it works great!
Reply With Quote
  #30  
Old 15 Jan 2009, 10:27
Gweebs Gweebs is offline
 
Join Date: Jan 2009
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!!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:02.

Layout Options | Width: Wide Color: