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

  #61  
Old 30 Mar 2009, 09:49
james-76's Avatar
james-76 james-76 is offline
 
Join Date: Feb 2009
This is not working with firefox from today but works fine with IE.
http://www.birdiechance.co.uk/forums...read.php?t=601

Do you have any idea what the issue could be?
__________________
Interested in Golf? If so join our forum.
BirdieChance.co.uk
Reply With Quote
  #62  
Old 31 Mar 2009, 06:02
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
It's working just fine for me. It's an issue on your end. Check that you have the latest version of Flash and that you have no conflicting FF extensions (check AdBlock or NoScript).
Reply With Quote
  #63  
Old 31 Mar 2009, 06:27
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
I just modified both BB codes so that the full screen button is now available. I didn't realize it was missing until someone just told me yesterday.
Reply With Quote
  #64  
Old 31 Mar 2009, 20:48
james-76's Avatar
james-76 james-76 is offline
 
Join Date: Feb 2009
I have an idea that you might like to add

How you have "Borked"

I have changed it to "Video Error - Check here to make sure you have added it correctly."

This takes them to the FAQ so they can see the example etc.

Ok heres my idea I hope you are able to do it.

Instead of "Borked" could you make it so its an actual link to the correct video on youtube that opens in a new window? This way if the embedding fails on a site like it has mine a few times then it would show a link to video instead.

Thanks a lot
__________________
Interested in Golf? If so join our forum.
BirdieChance.co.uk
Reply With Quote
  #65  
Old 01 Apr 2009, 16:49
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
Originally Posted by james-76 View Post
I have an idea that you might like to add

How you have "Borked"

I have changed it to "Video Error - Check here to make sure you have added it correctly."

This takes them to the FAQ so they can see the example etc.

Ok heres my idea I hope you are able to do it.

Instead of "Borked" could you make it so its an actual link to the correct video on youtube that opens in a new window? This way if the embedding fails on a site like it has mine a few times then it would show a link to video instead.

Thanks a lot
I like that idea a lot.
Reply With Quote
  #66  
Old 02 Apr 2009, 08:07
james-76's Avatar
james-76 james-76 is offline
 
Join Date: Feb 2009
Maybe you could have it as:

"If no video is showing it could have been added incorrectly or there could be a technical issue.
Click here to view the video on youtube's site. (links to youtube and the correct video)

If you have added this video click here to make sure you have added it correctly. " (links to FAQ about youtube tag and example)
Of course the above would all be worded how you wish as I am just giving rough examples

It says a lot more than one word but it would stop us all coming back here asking whats the problem especially for human error.
I would think you could do this pretty easily but what do I know
Thanks for saying you liked the idea I hope at some point in the future you have some time to give it a try.

Regards,
James
__________________
Interested in Golf? If so join our forum.
BirdieChance.co.uk
Reply With Quote
  #67  
Old 02 Apr 2009, 20:40
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
OK, here's what I changed it to.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks for the recommendation. Hopefully this'll save some headaches.
Reply With Quote
  #68  
Old 02 Apr 2009, 21:22
james-76's Avatar
james-76 james-76 is offline
 
Join Date: Feb 2009
Thit is perfect Thanks very much for your time.

I altered it a little on my site so itgoes straight to the youtube bbcode instead of all bb codes.

<a href="misc.php?do=bbcode#youtube" target="_blank">

Also I made both links open in seperate windows as this suits me but may not suit others

Thanks once again.




Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Interested in Golf? If so join our forum.
BirdieChance.co.uk
Reply With Quote
  #69  
Old 12 Aug 2009, 04:56
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
Unfortunately, it appears that YouTube has removed the ability to embed HQ and HD videos using the &fmt=22 trick. As a result, I'm going to remove the youtubehd tag from my script.
Reply With Quote
  #70  
Old 17 Aug 2009, 21:06
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
OK, HD videos will work again. I had to change &fmt=22 to &hd=1.
Reply With Quote
  #71  
Old 11 Oct 2009, 03:37
GuyUltimate GuyUltimate is offline
 
Join Date: Apr 2009
where do u install it?
how?

please leave a little bit of installation guide...
thanks!
Reply With Quote
  #72  
Old 12 Oct 2009, 22:40
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
Originally Posted by GuyUltimate View Post
where do u install it?
how?

please leave a little bit of installation guide...
thanks!
Just like every other BB code. Go into the admin console, and go to the BB code section.
Reply With Quote
  #73  
Old 22 Oct 2009, 05:46
the stig's Avatar
the stig the stig is offline
 
Join Date: Sep 2008
hey fangs, I have your old version where it said "borked". I see that you've done a lot of changes to the code and it's very nice now. If I were to replace old codes for the new ones, will my old embed work properly?

thanks.
Reply With Quote
  #74  
Old 24 Oct 2009, 20:13
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
Originally Posted by the stig View Post
hey fangs, I have your old version where it said "borked". I see that you've done a lot of changes to the code and it's very nice now. If I were to replace old codes for the new ones, will my old embed work properly?

thanks.
Yes, the old embeds will continue to work properly.
Reply With Quote
  #75  
Old 26 Oct 2009, 08:31
the stig's Avatar
the stig the stig is offline
 
Join Date: Sep 2008
Originally Posted by Fangs404 View Post
Yes, the old embeds will continue to work properly.
You're full of awesomeness. I wish you had a "Donate" button.
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 08:50.

Layout Options | Width: Wide Color: