Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
youtubeHD BB code Details »»
youtubeHD BB code
Version: 1.00, by OUTL4W OUTL4W is offline
Developer Last Online: Apr 2020 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.2.1 Rating:
Released: 11-22-2013 Last Update: Never Installs: 7
Re-useable Code  
No support by the author.

I see many bb codes for youtube and vb4 has the default video code button...but this mod embeds the hd version of the video without user manually selecting the hd version.

Also not sure if anyone else has this issue but when clicking the default video button and the window pops up:



unable to scroll horizontally to click ok....so I have to hit ctrl and minus key to shrink window down enough to click ok....which is why I created the YT bb code on my vb4 forum. Also when using the default video button will play 360p version by default so I created the custom yt BB code below that will play hd version of the video if available by default.

Add a new bbcode (AdminCP > Custom BB Codes > Add New BB Code)

Title: YoutubeHD
BB Code Tag Name: ythd

replacement:
Code:
<iframe width="600" height="400" src="http://www.youtube.com/embed/{param}?hd=1&vq=hd1080&rel=0" frameborder="0" allowfullscreen></iframe>
remember just copy the alpha-numeric characters that follow the "v="
Code:
http://www.youtube.com/watch?feature=player_embedded&v=578nd9swh7E
example: [ythd]578nd9swh7E[/ythd]

this will play the hd version if available by default without having member manually select it.....1080p by default but if 1080p isn't available then it will play the 720p by default. It also won't show relative videos when done playing but if you want to show relative videos then remove "&rel=0"

this should work on all vB versions....

please mark as installed....thanks

if wanting to add pic for button

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-23-2013, 07:54 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's something wrong with your templates. The standard built-in video code text box should not look like that.

Also, as far as I know, whether or not the embedded video plays in regular or HD depends on the original video, not on the native BBCode.
Reply With Quote
  #3  
Old 11-23-2013, 08:07 PM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
There's something wrong with your templates. The standard built-in video code text box should not look like that.

Also, as far as I know, whether or not the embedded video plays in regular or HD depends on the original video, not on the native BBCode.
when I embed this video url
http://www.youtube.com/watch?feature...&v=578nd9swh7E
into the default video code...it plays @ 360p by default but when I [YTHD]578nd9swh7E[/YTHD] will play the 1080p version by default.
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 08:07 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.05999 seconds
  • Memory Usage 2,231KB
  • Queries Executed 19 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete