vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=205783

[BB Code] YouTube Javascript Embed
by wii
18 Feb 2009 12:48

3 Attachment(s)
Show YouTube videos directly in your vBulletin forum posts.
Very easy to install and please Mark as Installed if you decide to use it, thanks.

Changes to my old YouTube embed:

1. All videos are now larger (640x480 pixels)
2. All videos are now shown in high quality and stereo sound (if available)
3. You can now embed videos in HD (if available)
4. Valid XHTML code (works in all modern browsers and operating systems).

Installation is as follows:

1. Go To AdminCP.
2. Select Custom BB Codes.
3. Add New BB Code.
4. Fill in the following:

Title: YouTube BB Code
Tag: yt
Replacement:


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


5. Upload the included javascript file to your forum root:
Change the example URL: www.yourforum.com to your own URL.

6. Edit the code above to the exact location of the javascript file you just uploaded.

Example: [yt]1EutKrKTfLk[/yt]
Description: YouTube
Use {Option}: No

When installed, use the code in your forum like this:


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

For HD use this:


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


wii 18 Feb 2009 12:53

I will upload the files now.

Stifmeister2 18 Feb 2009 20:20

Demo anywhere?

ABDALWAHID 18 Feb 2009 21:09

Thanks...

GotWalked 18 Feb 2009 22:36

terrible. couldn't get it to work

wii 19 Feb 2009 07:16

I uploaded some screenshots, the MOD works just fine, just make sure the path to the javascript file is correct.

For my own forum I use the MOD with a different movie size of 640x384 pixels (widescreen format) this way I have no borders when viewing HD widescreen movies, which we use a lot.

Also note, that this MOD forces YouTube videos into high quality at all times, which means that many tracks that are mono when viewing in YouTube are in stereo when viewing at the forum, this was kinda a surprise for me too, but it's a quite obvious difference, of course only applies when the source material is in stereo...!

newmasalaboard 19 Feb 2009 10:12

Looks Intresting !!

Let me test it ...

ByG SteAm 22 Feb 2009 21:12

Where do we find the text on a youtube video for HD. I can see where you get the regular code from.

wii 23 Feb 2009 10:20

What text ? Not sure what you mean.......

movslow 23 Feb 2009 19:28

Great mod, however are their any current hacks that conflict w/this mod?

I'm just getting a blank screen where the video should be.
:confused:

wii 24 Feb 2009 08:53

Did you check the filepath of the included file ?
Can I see an example of it where you see the blank page ?

black_bullitt 04 Mar 2009 01:52

Installed, working great, thanks!

wii 05 Mar 2009 15:12

Glad you like it...

dpetersman 05 Mar 2009 17:49

I'm kinda an idiot & it took me a few try's to get it to work. After I realized all I needed to input as the value was the specific video #, Worked like a charm :o

To save anyone else the embarrassment, here's what I mean...

typical YouTube video URL's look like this:


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

All you need is the text after the "v=" in the case of the link above, "1EutKrKTfLk" is what you would put between the [yt ][ /yt] BB code (without the "Quotes") Like this:

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



Anyway, Works Great. I love it. Thanks!

Slacker 06 Mar 2009 21:37

I would love something like there where the user could enable/disable the tag (like we can all do with IMG tags) in their User CP so people browsing at work aren't setting off alarms on the company's monitoring software. Any chance of that happening? Thanks!


All times are GMT. The time now is 13:50.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.