Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
YouTube BB Code (W3C-compliant!) Details »»
YouTube BB Code (W3C-compliant!)
Version: 1.3.5, by Fangs404 Fangs404 is offline
Developer Last Online: Sep 2019 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.8.x Rating:
Released: 01-13-2009 Last Update: Never Installs: 217
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:
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>
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.
Благодарность от:
Perrier Sophie

Comments
  #32  
Old 02-19-2009, 11:26 PM
Tagert Tagert is offline
 
Join Date: Sep 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks!
Reply With Quote
  #33  
Old 02-20-2009, 02:35 AM
Suiram Suiram is offline
 
Join Date: Jan 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #34  
Old 02-20-2009, 04:28 AM
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Posts: 878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What happen with Youtube HD..!!!If go Youtube Homepage saw normal but from forum not saw....
Reply With Quote
  #35  
Old 02-20-2009, 01:48 PM
james-76's Avatar
james-76 james-76 is offline
 
Join Date: Feb 2009
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #36  
Old 02-20-2009, 04:17 PM
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Posts: 878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same problem...
Reply With Quote
  #37  
Old 02-21-2009, 08:00 AM
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Posts: 878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://www.instict.net/showpost.php?p=270&postcount=1

Look this....
Reply With Quote
  #38  
Old 02-21-2009, 11:05 AM
james-76's Avatar
james-76 james-76 is offline
 
Join Date: Feb 2009
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The videos now work again using Firefox but still white boxes with Internet Explorer :s
Reply With Quote
  #39  
Old 02-21-2009, 11:23 AM
Suiram Suiram is offline
 
Join Date: Jan 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Suiram View Post
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,
say what ?
Reply With Quote
  #40  
Old 02-21-2009, 08:04 PM
james-76's Avatar
james-76 james-76 is offline
 
Join Date: Feb 2009
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working in firefox again now
Reply With Quote
  #41  
Old 02-23-2009, 12:05 AM
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Suiram View Post
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,
For your first question, I have no idea. Sounds like you copied/pasted something wrong. Double-check everything.

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.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07213 seconds
  • Memory Usage 2,332KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete