PDA

View Full Version : BB Code Enhancements - YouTube BB Code (W3C-compliant!)


Fangs404
14 Jan 2009, 03:03
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: <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: zlfKdbWwruY
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: http://www.vbulletin.org/forum/attachment.php?attachmentid=88410&stc=1&d=1250542951

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.

cooltechie
18 Jan 2009, 19:09
Members simply paste what they see in the browser URL. How can I change it to accept full URL instead of just ID?

Fangs404
20 Jan 2009, 03:14
Members simply paste what they see in the browser URL. How can I change it to accept full URL instead of just ID?
You'll need another (fancier) mod if you want to do this. Given vB3's current BBCode system, a simple BBCode can't achieve that unfortunately. Just tell your members how to properly use this BBCode.

JackRock
21 Jan 2009, 05:08
My members just had to be edumacated. But they soon learned how it works.

Aliraqis
21 Jan 2009, 07:47
thnx man

jesus likes pie
25 Jan 2009, 15:52
Thank you!

RedHacker
31 Jan 2009, 04:45
Why i saw white page if url put....?

Fangs404
31 Jan 2009, 17:41
I don't understand. Copy/paste the [youtube] command you were trying.

tony adams
31 Jan 2009, 19:47
installed - many thanks - any way of getting the icon to show in quick reply - typing the text works so it is ok from there.

RedHacker
31 Jan 2009, 22:51
I don't understand. Copy/paste the command you were trying.

If i put [YOYTUBE]http://www.youtube.com=xxxxxxxxxxxxxxxxxxx saws white screen...

And its saws lucky its sould be when i put [YOYTUBE]xxxxxxxxxxxxxxxxxxx[/YOUTUBE]

dmknights
02 Feb 2009, 23:40
*Installed*
thank you

Fangs404
04 Feb 2009, 01:55
I actually just checked YouTube's dimensions for regular and HQ, and it's 644x390 (HD is 858x508 for comparison). I went ahead and changed it. :)

RedHacker
04 Feb 2009, 01:58
Cant work with full url from Youtube....?

Fangs404
04 Feb 2009, 05:18
Cant work with full url from Youtube....?
Nope, as I said earlier, it's not possible with a simple BBCode mod. At least not until the vB3 team builds in a way to use PHP or something fancier than what we have available.

james-76
04 Feb 2009, 21:27
This is great TY :)

Will this affect my bandwidth much?

Fangs404
05 Feb 2009, 07:23
This is great TY :)

Will this affect my bandwidth much?
Not at all. It loads directly from YouTube. There's absolutely no strain on your server because of this BBCode.

Martin9887
05 Feb 2009, 08:37
Just put these in. I hope it's ok to ask this question here, on the editor bar is there anyway to arrange the order of the buttons?:

https://www.vbulletin.org/forum/

I want it: Normal, HQ, HD.

Fangs404
05 Feb 2009, 22:33
Just put these in. I hope it's ok to ask this question here, on the editor bar is there anyway to arrange the order of the buttons?:

http://i312.photobucket.com/albums/ll336/Martin_Sherwood/youtubes.png

I want it: Normal, HQ, HD.
The order is determined based on the order in which you add the BBCodes to the BBCode manager. So, remove HD and then readd it and it should appear after HQ.

Fangs404
06 Feb 2009, 22:59
I don't know if you guys knew this, but if you want to make the video autoplay, you can do something like this:

zlfKdbWwruY&autoplay=1

Just add &autoplay=1 to the end of the video ID.

lgnd
08 Feb 2009, 12:36
Installed! Thank You!

Alien
08 Feb 2009, 23:48
Just installed all three, thanks so much for the code that can validate!

P.Cahill
08 Feb 2009, 23:54
gonna tag this for future reference =) i dont need this on my board just yet but it'll be handy to add in if people feel the need to post youtube links

RedHacker
09 Feb 2009, 03:00
Youtube HQ and HD where found....?

Fangs404
09 Feb 2009, 05:51
Youtube HQ and HD where found....?
I don't understand your question.

jesus likes pie
10 Feb 2009, 03:07
Okay this is confusing to me:

Mod is working fine for me and most members but a few of them have the same videos that show up fine for me, show up as "BORKED" for them. Any ideas??

They have flash installed...normal youtube works fine and the tag is set up properly since I can see the videos that they cannot.

It's really quite bizarre.

They also cleared cache/refreshed (CTRL + F5)

Fangs404
10 Feb 2009, 04:31
Okay this is confusing to me:

Mod is working fine for me and most members but a few of them have the same videos that show up fine for me, show up as "BORKED" for them. Any ideas??

They have flash installed...normal youtube works fine and the tag is set up properly since I can see the videos that they cannot.

It's really quite bizarre.

They also cleared cache/refreshed (CTRL + F5)
Well, it's definitely something on their end then. What browser are they using? If they're using FF, find out what extensions they have installed. Adblock, NoScript, and Greasemonkey are the most likely culprits for problems.

Nightmare-GameZ
16 Feb 2009, 05:08
Woot found a good one at last. =P Installed!

RedHacker
19 Feb 2009, 13:09
The videos HD from my forum are: We're sorry this video in no longer available...

Why....?

Vaupell
19 Feb 2009, 20:30
All good, Hd's something fail, but then again HD is only in testing phase

ewen though it appears availible youtube stated serveral times that its only in
testing for now.

so 100% compability should not be exspected at the moment.

Lovely though

RedHacker
19 Feb 2009, 21:41
Some message from Youtube HD

Tagert
20 Feb 2009, 00:26
thanks!

Suiram
20 Feb 2009, 03:35
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,

RedHacker
20 Feb 2009, 05:28
What happen with Youtube HD..!!!If go Youtube Homepage saw normal but from forum not saw....

james-76
20 Feb 2009, 14:48
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/showthread.php?t=88

Is it just me or is it happening for everybody else?

RedHacker
20 Feb 2009, 17:17
Same problem... :mad:

RedHacker
21 Feb 2009, 09:00
http://www.instict.net/showpost.php?p=270&postcount=1

Look this.... :(

james-76
21 Feb 2009, 12:05
The videos now work again using Firefox but still white boxes with Internet Explorer :s

Suiram
21 Feb 2009, 12:23
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 ?

james-76
21 Feb 2009, 21:04
not working in firefox again now :(

Fangs404
23 Feb 2009, 01:05
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.

RedHacker
23 Feb 2009, 09:29
Fangs404 do you know anything to my problem...?

james-76
23 Feb 2009, 15:40
Why is no video showing ? there is a white box the size of the usual video.
This video was working fine and it seems me and RedHacker have the same problem that suddenly happened on the same day.

http://www.birdiechance.co.uk/forums/showthread.php?t=88

Fangs404
23 Feb 2009, 17:36
Fangs404 do you know anything to my problem...?

Why is no video showing ? there is a white box the size of the usual video.
This video was working fine and it seems me and RedHacker have the same problem that suddenly happened on the same day.

http://www.birdiechance.co.uk/forums/showthread.php?t=88

Both of your sites are working just fine for me. I don't see where the problem is. Can you take a screenshot?

james-76
23 Feb 2009, 20:05
I get this in IE and Firefox. Firefox did start working again for a few hours the day it happened but nothing again now. Instead of the video loading and play button showing it comes up with a white box the same as in the screenie below for every video on my forums. I looked at RedHackers forum and I also got the white boxes.

click on image to see it full size.
http://img205.imageshack.us/img205/9678/youtubes.png

Thanks for your help :)

Fangs404
24 Feb 2009, 02:03
Oh, that's very weird. Here's what I see:

https://www.vbulletin.org/forum/external/2009/02/36.png

What this means is that the script (and YouTube) is working just fine. I honestly have no idea what's causing this, but it's not a problem with the script.

james-76
24 Feb 2009, 15:42
I just checked now and they are working fine in both IE and firefox :s no idea whats was wrong or if it will happen again. If it does I will let you know :)

Thanks for your help.

RedHacker
25 Feb 2009, 08:43
https://www.vbulletin.org/forum/

Fangs404
26 Feb 2009, 02:19
http://img5.imageshack.us/img5/5673/80197475.jpg
Ah, ok. This one's not working because the video doesn't have an HD option. It doesn't even have a HQ option. You have to use the regular [youtube] tag. Be sure to check that the video has the HD or HQ option before using those tags.

Deadman_014
01 Mar 2009, 21:33
Nevermind, sorry.

odln018
02 Mar 2009, 01:43
Unfortunately, this isn't working for me. It only displays the same line that I placed in.

ex. 4bvyk0VF50k

** Disregard, Idiot Boy goofed something.

Love the mod!

itsheinz
05 Mar 2009, 07:07
installed,thanks

salvador21
05 Mar 2009, 09:28
Hi, I'm new here and would like to install this. But I'm not seeing a download option in the first post. Is there somewhere else to get this? Thanks

itsheinz
05 Mar 2009, 15:50
Hi, I'm new here and would like to install this. But I'm not seeing a download option in the first post. Is there somewhere else to get this? Thanks
You dont have to download anything,you just have to add bbcode.
Just read the instruction buddy...
Goodluck!

odln018
05 Mar 2009, 18:11
Another question, the youtube image is appearing in the reply menu, but the HQ and HD image is not.

Any ideas?

Fangs404
06 Mar 2009, 20:05
Another question, the youtube image is appearing in the reply menu, but the HQ and HD image is not.

Any ideas?
Not sure why. If you install it properly, all of them will. Make sure you have 3 different image files on your server and that the BBCodes correctly point to each different image file.

DaninMS
11 Mar 2009, 19:14
Installed. Thx !

orion808
13 Mar 2009, 18:50
Nice and simple. Thank you. Installed.

Tannerman
25 Mar 2009, 19:48
Has anyone noticed in the last week or so while using this modification that HQ videos are no longer defaulting in HQ mode when embedded? The HQ button is there, but it's no longer the default when the video starts. Did something change on the parameter level?

Fangs404
26 Mar 2009, 03:21
I'm actually not convinced that it's necessary anymore to have 3 different YouTube tags now that YouTube has enabled the HQ and HD buttons in the embedded player. I can still see having the HD tag because it's actually a different size than the regular and HQ.

What do you guys think?

forumsonsuz
28 Mar 2009, 20:26
thank you

Fangs404
29 Mar 2009, 03:32
I just removed the HQ YouTube tag (youtubehq). It's no longer necessary since the embedded player now has a HQ button built in. The embedded player actually also has an HD button if HD is enabled for the video, but I'm leaving the HD tag (youtubehd) because it's a physically larger player.

Fangs404
31 Mar 2009, 06:28
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.

Fangs404
02 Apr 2009, 20:43
Per james-76's suggestion, I changed the BORKED text to something with a little more meaning that will hopefully help solve any problems with this plugin in the future. Here's the new text:

Something went wrong. Please make sure you added the video correctly. Click <a href="misc.php?do=bbcode">here</a> to see how YouTube videos should be embedded. There could also be a technical issue that's not your fault. Click <a href="http://www.youtube.com/watch?v={param}">here</a> to view the video on YouTube's site. If this link doesn't work, you did something wrong.

obmob
03 Apr 2009, 18:11
Hmm... but the new youtube player already has an HD button if available o.

Fangs404
03 Apr 2009, 21:36
Yes, it does, but I include both options because the HD videos are physically larger than the standard/HQ videos. It's completely up to you if you want to use both. Another option is just to increase the size of the standard player to the HD size.

OmaniMan
12 Apr 2009, 22:14
Installed and thanks ..

obmob
13 Apr 2009, 20:56
AHHH... now i got the idea, thanks ^^,

iForce
20 Apr 2009, 19:29
Can this be changed so that user needs to enter full URL text between BB code tags?

It is easier to copy full URL.

Fangs404
22 Apr 2009, 14:04
Can this be changed so that user needs to enter full URL text between BB code tags?

It is easier to copy full URL.
This question has been asked and answered several times in this thread. The answer is no.

mvmu
26 Apr 2009, 05:29
Hello, I wanted to know if anyone had this issue:

The youtube HD code works fine when I preview it in the replacement window in the admin control panel, however in posts, it doesn't display, I just see the "zlfKdbWwruY". The Youtube Regular & HD code works fine however. My apologies if this was already covered. Thank you.

Fangs404
28 Apr 2009, 01:42
Hm, I just tried that on my forum and it worked just fine. If you see zlfKdbWwruY in the post, that means you did something wrong setting up the BBCodes. Make sure you didn't misspell youtubehd. Take a screenshot of your admin area if you're still having troubles.

mvmu
07 May 2009, 15:31
Thank you for your help Fangs, I reinserted the information just to doublecheck, and I still get the same error. It shows up fine in the admin panel, but not in posts. I have images here for you to look at. (I took them while at work, so youtube is blocked period, but on my home station, youtube regular & HQ works in posts, but not youtube HD).
Thanks again for your help.

mattcaswell
11 May 2009, 22:55
Installed.. works Great! Thanks!

Fangs404
13 May 2009, 03:25
Thank you for your help Fangs, I reinserted the information just to doublecheck, and I still get the same error. It shows up fine in the admin panel, but not in posts. I have images here for you to look at. (I took them while at work, so youtube is blocked period, but on my home station, youtube regular & HQ works in posts, but not youtube HD).
Thanks again for your help.
Hm, I'm really not sure why it's working for you in the admin panel and not working in posts. Does it work fine on your BB Code FAQ page? Make sure you have those last 3 options checked (disable smilies, word-wrapping, etc).

dirtyboxing
13 May 2009, 20:36
Fantastic...Thank you!

mvmu
17 May 2009, 01:32
Hm, I'm really not sure why it's working for you in the admin panel and not working in posts. Does it work fine on your BB Code FAQ page? Make sure you have those last 3 options checked (disable smilies, word-wrapping, etc).

Hey Fangs, I checked those last three options. It does work in my BB Code FAQ, but it still doesnt show up in posts. I've gone through everything I can think of and I can't quite figure it out. I appreciate any additional help you can provide. Thank you.

Frondy
20 May 2009, 09:58
nice work, thank You

Fangs404
26 May 2009, 10:11
Hey Fangs, I checked those last three options. It does work in my BB Code FAQ, but it still doesnt show up in posts. I've gone through everything I can think of and I can't quite figure it out. I appreciate any additional help you can provide. Thank you.
Gosh, I'm all out of ideas. The only thing I can think of is that there's something weird going on with your theme that's breaking it, but I don't have the foggiest idea what it could be. Does it work if you use the stock default vB3 theme?

FlynnUK
04 Jun 2009, 20:43
Really nice mod. Nice one.

josefebus
05 Jun 2009, 01:37
Thank you so much!

Sam Wiltshire
05 Jun 2009, 01:43
Doesn't work for me :S

Fangs404
05 Jun 2009, 05:26
Doesn't work for me :S
Just so you know, YouTube's been having massive problems the last 2 days. Try again soon.

xTerMn8R
05 Jun 2009, 13:49
You Tubes been having massive problems for Years...Last week my videos looked great and were rendered in HQ, this week NO HQ vids look like crap. Both made the exact same way @ 780x480 NTSC. Exactly why I stopped using it a year ago. Whats with the BIG Love for Flash? It sucks...

xT

AndrewRich
06 Jun 2009, 20:09
Installed. Thanks!

ski diva
09 Jun 2009, 11:59
Simple and works great! Thanks!

DNG
12 Jun 2009, 23:16
thanks for this !

Shadow09
13 Jun 2009, 10:42
How to solve this position problem?

Fangs404
14 Jun 2009, 06:07
How to solve this position problem?
You'll need to edit your theme or use a larger resolution. The size of the video is hardcoded. Your theme determines where to put the video.

LieuR
18 Jun 2009, 13:04
Can anyone please explain were to put the code ?

Little unsure thanks

mickknutson
19 Jun 2009, 13:08
I want to be able to wrap text around the video. How can I modify the bbcode to allow for this?

mickknutson
19 Jun 2009, 13:41
I actually found the solution:
<div style="float:left;margin:0 10px 5px 0;"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></div>

However, I want to add an optional option {option} for justifying left or right.

By default, it would be nice to justify left, but allow to override to justify right with the {option} tag.

How do I accomplish this? where {option} defaults to left. but can be set to right

<div style="float:{option};margin:0 10px 5px 0;"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></div>

example uses:

Default:
n20K3-AEOPY

With optional justification:
n20K3-AEOPY

Fangs404
23 Jun 2009, 21:54
Can anyone please explain were to put the code ?

Little unsure thanks

Open up your admin panel and then go to Custom BB Codes.

Sirb13
25 Jun 2009, 15:20
Having the little icon is very professional!

Thank you!! installed on my site!

kiwinz
02 Jul 2009, 06:47
Works Perfect Thanks :)

Suiram
18 Jul 2009, 06:11
Has anyone noticed in the last week or so while using this modification that HQ videos are no longer defaulting in HQ mode when embedded? The HQ button is there, but it's no longer the default when the video starts. Did something change on the parameter level?

i too just noticed that on my site hd videos now play in standard quality. the hd button is available on the video and once pressed, it plays the video in hd. but this is not how i want it. if i use the hd code i want to force the showing of hd video. is this a temporary youtube screw up or a permanent change from youtube?

the regular quality plays as it should in regular quality, and the hq stays/plays in hq. it seems only the hd got screwed up fairly recently. :mad:

DrkEgl
20 Jul 2009, 18:12
Thank you

massi64
22 Jul 2009, 03:35
thanks works perfectly , there is anyway to set the code for a default center ?

Fangs404
24 Jul 2009, 09:43
thanks works perfectly , there is anyway to set the code for a default center ?
Try simply adding <center> and </center> around the rest of the code.

massi64
29 Jul 2009, 04:06
Try simply adding <center> and </center> around the rest of the code.

thanks , a work perfectly

ricardoNJ
05 Aug 2009, 18:11
I have AME CP, it could be any problem with it?

kmohamed
07 Aug 2009, 07:21
great codes installed ... but if u can add those feature it will be even better for me and i think for others

1.just like u add the images and urls in vb i want the same option for youtube ..
2.how can i elimnate the view of any Related Videos after i finished watching the videos (please_)

ricardoNJ
09 Aug 2009, 00:02
Installed!... thanks!

Fangs404
12 Aug 2009, 04:53
great codes installed ... but if u can add those feature it will be even better for me and i think for others

1.just like u add the images and urls in vb i want the same option for youtube ..
2.how can i elimnate the view of any Related Videos after i finished watching the videos (please_)
I don't understand your first question. As for your second question, I don't think that's possible (but I may be wrong).

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.

Fangs404
17 Aug 2009, 21:05
OK, HD videos will work again. I had to change &fmt=22 to &hd=1.

Faizan
19 Aug 2009, 03:49
Thank you....

Abbsta
19 Aug 2009, 09:39
Thank you.

segwayon
30 Aug 2009, 15:18
I noticed that when viewing a thread with this BBcode embedded YouTube video that the "Thread Tools"/"Search this Thread"/"Rate Thread"/"Display Mode" drop-down menus get covered up by the video when those menus are clicked on. All I can see are the first two menu drop-down options. (Most of our embedded videos are contained in their own threads, so the videos are always in post #1 of each of the video-forum threads. If the videos were only within posts #2 or greater then this issue wouldn't happen, since the thread menu links are immediately above post #1.)

Is there a way to make sure that the YouTube video doesn't get placed on the top-most layer of the thread?

Fangs404
08 Sep 2009, 01:33
I noticed that when viewing a thread with this BBcode embedded YouTube video that the "Thread Tools"/"Search this Thread"/"Rate Thread"/"Display Mode" drop-down menus get covered up by the video when those menus are clicked on. All I can see are the first two menu drop-down options. (Most of our embedded videos are contained in their own threads, so the videos are always in post #1 of each of the video-forum threads. If the videos were only within posts #2 or greater then this issue wouldn't happen, since the thread menu links are immediately above post #1.)

Is there a way to make sure that the YouTube video doesn't get placed on the top-most layer of the thread?
Hm, good question. I don't know how this would be done offhand. The JavaScript for the pop-up menu would probably have to be altered to make sure it stays on top. I don't know what changes you'd need to make offhand.

segwayon
08 Sep 2009, 01:41
Does the same behavior happen on your forum? We do use a custom skin.

Fangs404
10 Sep 2009, 14:12
Does the same behavior happen on your forum? We do use a custom skin.
Yes, it does, but I never even noticed it because my resolution is set to 1920x1200.

phonexpo
10 Oct 2009, 13:13
Installed, working perfectly.

Thanks

-Patrick

manofphat
18 Feb 2010, 03:33
I'm looking for a way to convert the YouTube posts generated by this mod on my 3.8.0 forum to the new vBulletin 4.0 media embedding system. Any suggestions?

Fangs404
23 Feb 2010, 03:00
I'm looking for a way to convert the YouTube posts generated by this mod on my 3.8.0 forum to the new vBulletin 4.0 media embedding system. Any suggestions?
I don't have vB4, so I'm afraid I can't help you right now.

salvador21
23 Feb 2010, 07:01
I think you would do a search (in the database?) for [YOUTUBE] tags, replace with [VIDEO] and aff the youtube full URL.

Not something I would like to try.

cayne
26 Feb 2010, 00:35
Installed the code and it works like a charm. Thanks for your work!

But I got a question, it has only partly something to do with your code, but I'm sure you can point me into the right direction.

You gracefully included the YouTube buttons, but I don't know how I can make them appear on my forum, when I go to "advance reply" like it is done on this board:

https://www.vbulletin.org/forum/

What option do I have to edit in order to make the button show up there?

Thanks in advance!

Fangs404
28 Feb 2010, 08:27
Installed the code and it works like a charm. Thanks for your work!

But I got a question, it has only partly something to do with your code, but I'm sure you can point me into the right direction.

You gracefully included the YouTube buttons, but I don't know how I can make them appear on my forum, when I go to "advance reply" like it is done on this board:

http://f.imagehost.org/0130/youtube.jpg

What option do I have to edit in order to make the button show up there?

Thanks in advance!
When you add the BB Code, just make sure "Button Image" is set to the correct path.

AllinJac
01 Apr 2010, 19:47
I think you guys were referring about this:

When you have a video and you have other Javascript items there is an issue because the window for the video will appear OVER the window of any other item you have on the page and it looks off...

I know exactly how to fix it if you use HTML... I also know for sure that we could create some kind of CSS addition that would allow for this to be done across the board as apposed to having to change the code each and every time...

<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/afktJyLhO7Y&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="transparent"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/afktJyLhO7Y&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340" wmode="transparent"></embed></object>

The key is wmode="transparent and that if used as HTML will make it go behind the page or be transparent behind other we items...

If anyone is capable of doing a CSS addition that we could have this wmode="transparent automatically work with the [youtube] video embed that would be just awesome!!!

THANKS

AllinJac
02 Apr 2010, 04:17
I noticed that when viewing a thread with this BBcode embedded YouTube video that the "Thread Tools"/"Search this Thread"/"Rate Thread"/"Display Mode" drop-down menus get covered up by the video when those menus are clicked on. All I can see are the first two menu drop-down options. (Most of our embedded videos are contained in their own threads, so the videos are always in post #1 of each of the video-forum threads. If the videos were only within posts #2 or greater then this issue wouldn't happen, since the thread menu links are immediately above post #1.)

Is there a way to make sure that the YouTube video doesn't get placed on the top-most layer of the thread?


YES I got it fixed I had the exact same issue and I was trying to figure out where to put the code to take care of it globaly... And silly me did not think of looking in the BB Code in the ADMIN CP

So for sure this works

<object width="425" height="350"><param name="wmode" value="transparent"><param name="movie" value="http://www.youtube.com/v/JFwCCL0Vh6U"></param><embed src="http://www.youtube.com/v/JFwCCL0Vh6U" type="application/x-shockwave-flash" width="425" height="350" wmode="transparent"></embed></object>

Just go to the BB Code in Admin CP and edit the page...

Place the above text in there and you are GOLDEN!

Wow this is cool this is the first time I have actually helped someone fix something rather then crying and looking for someone to repair my bad fixes LOL!!!

Hope this helps!!!

LOKIN510051
17 Dec 2010, 03:54
muy bueno gracias

Suiram
27 Dec 2010, 09:34
OK, HD videos will work again. I had to change &fmt=22 to &hd=1.

cool, so i can finally (again) have youtube clips that are high-def, automatically play @720. but is there a specific code that plays the clip @1080? (yes, obviously the clip would have that resolution). just for kicks, i tried &hd=0 & &hd=2 and that just plays them @360.

in fact, is there a specific number or code for all available resolutions? ie: is there one for 480?

thanks,

Bulent Tekcan
30 Apr 2011, 10:30
How to disable youtube in quote ? Because many user quote some messages and every where show youtube video.

hayaldunya
19 May 2011, 07:30
Very Thanks. Super W3C-compliant!

BASHEER
09 Nov 2011, 23:47
thanks :D

Fangs404
15 Dec 2011, 20:46
How to disable youtube in quote ? Because many user quote some messages and every where show youtube video.

This is a fundamental problem in vBulletin (not unique to this BB code). Any BB code will show up in a quote. You'd need to find a mod that removes BB codes from quotes or edit whatever PHP code handles quotes to specifically filter youtube videos.