View Full Version : YouTube BBCode added
rappo
06-17-2008, 09:20 PM
I've added another custom BBCode alongside the spoiler code, this time it's for embedding videos from YouTube. All you have to do is put the YouTube video ID between the youtube tags and you'll have an embedded video in your post. There is also a new button on the advanced and quick editors for automatically putting the YouTube tags into your post. Here's an example:
Video I want to use: http://youtube.com/watch?v=qmcFHNOLt0Q
Video ID: qmcFHNOLt0Q
BBCode: qmcFHNOLt0Q
Produces:
qmcFHNOLt0Q&autoplay=1
Enjoy! But remember that all of our forum rules apply to videos, too. If a video you embedded has absolutely nothing to do with the thread at hand, that is equivalent to posting off-topic/thread derailing.
With great power comes great responsibility.
Also you should add "fmt=18" to the end of the code for extra super sexy quality!
rappo
06-17-2008, 09:34 PM
I thought about it, Jay, but I'm not sure if everybody wants the high quality versions. To be honest, most of the things you view on YouTube are not for aesthetic purposes and it doesn't really matter what sort of quality they are in. Most people just watch silly videos that they want to have load quickly. I figure if you're really looking for the high quality version you can click the video, go to YouTube, and do it from there.
Another option I was considering was having something like VideoID where a styled box would appear around the video with the caption, but I figured it's not really necessary since we can just type whatever we want about the video and then embed it :P
Edit: since there have been multiple requests, I've added a poll about the high quality bit.
I voted yes but I'm happy either way at least now I can just embed aside from linking
also test:
1p1FzAK8CJk
----------------
Now playing: Billy Talent - Line & Sinker (http://www.foxytunes.com/artist/billy+talent/trac k/line+%26+sinker)
via FoxyTunes (http://www.foxytunes.com/signatunes/)
ah just video number then eh?
Danke
billyboy_999
06-17-2008, 09:57 PM
It wouldn't be too hard to add an option to have high quality in the tag would it?
I saw it about three minutes ago and was wondering about it.
Test:
LKY5vvDC7Bc
Edit: Awesome! It worked perfectly.
Shadow Conception
06-17-2008, 10:27 PM
With the poll, I don't think high quality should be forced. It's a luxury that many don't have the patience/connection to appreciate.
If you're interested in high quality, just go to the actually YouTube page and watch it in HQ. This is a forum that should be optimized for viewing across the kbps spectrum.
Also someone can really rape us if they link like a hundred YouTube vids in one post...
Yeah, limit the amount of videos per post to like 1.
:/ I already made a post with 2 videos, they were nothing close to spam though, they were proof for something.
rappo
06-17-2008, 11:05 PM
Yeah, limit the amount of videos per post to like 1.
vBulletin doesn't have fancy options like this...
On the other hand, I don't see how putting 100 videos in one post will "rape" anybody. The videos don't load until you click them. All that loads is YouTube's FLV player and the default image. There may be 100 images (all with very low file sizes) that load but that's it... I really think someone can do more destruction with images than YouTube videos.
X-reS
06-17-2008, 11:22 PM
Nice thanx rappo I thought this was the coolest thing in a while Spoiler tag<youtube.
Finally, no more Rickrolling!
Legham
06-18-2008, 02:50 AM
I accidentally voted high quality :( so take one off yes and add 1 to no.
5tatic
06-18-2008, 05:12 AM
I voted yes but I'm happy either way at least now I can just embed aside from linking
also test:
1p1FzAK8CJk
----------------
Now playing: Billy Talent - Line & Sinker (http://www.foxytunes.com/artist/billy+talent/trac k/line+%26+sinker)
via FoxyTunes (http://www.foxytunes.com/signatunes/)
dx ftw
I'm going to have to say yes to high quality.
Slim Trashman
06-18-2008, 01:56 PM
Finally! I had wanted this for a long time, but was only aware of the "official" BBCode for it only available to vBulletin customers.
rappo
06-18-2008, 02:46 PM
I think I'm going to try and incorporate the "official" one because this one can be abused with autoplay.
And I believe the official ones allows you to disable it somehow someway...
Edit: Alright, so the official one is overly complicated (as it supports tons of unnecessary websites and file formats). I just went ahead and took their main function, which is playing the videos through an FLV player, and made that. Now the videos should be safe from autoplay, but I don't think it's possible to do the high quality versions like this, you'll just have to go to YouTube for those.
EndriT
06-19-2008, 03:26 PM
This is awesome. Good job adding this. :)
Glanerd
06-19-2008, 06:08 PM
dx ftw
+rep
Nice job rappo.
nice idea, I always wondered when gtagaming would allow embed on youtube vids :P the clan forum I use has had it forever