vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - youtubeHD BB code (https://vborg.vbsupport.ru/showthread.php?t=304938)

OUTL4W 11-22-2013 11:00 PM

youtubeHD BB code
 
1 Attachment(s)
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:

http://i155.photobucket.com/albums/s...8.png~original

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
https://vborg.vbsupport.ru/external/2013/11/21.png

djbaxter 11-23-2013 07:54 PM

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.

OUTL4W 11-23-2013 08:07 PM

Quote:

Originally Posted by djbaxter (Post 2463174)
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.


All times are GMT. The time now is 01:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01054 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete