View Full Version : YouTube BBCODE tests
Chruser
2007-08-09, 02:51 PM
Use with embed URL. 425x350 px preset. Does anyone know if any YouTube videos are shown in another resolution?
http://www.youtube.com/v/7oXx0qwe0wc
Lenny
2007-08-09, 02:57 PM
I don't know for sure, so it's just a thought, but what about 320x240?
Chruser
2007-08-09, 03:06 PM
320x240 has an aspect ratio of 4/3, while 425x350 has an aspect ratio of 17/14. If anyone knows any standards for YouTube, let me know. In the hypothetical situation that there are just two of them (e.g. 425x350 px and 320x240 px), I guess [youtube425] and [youtube320] could work.
Hmm, I haven't been able to use PHP in BBCODE. WETWIIIRED!
WetWired
2007-08-09, 06:18 PM
Well duh, that'd be a huge security hole.
Awesome. Now I'll acctually click on YouTube threads without being tricked into it.
Chruser
2007-08-09, 10:06 PM
Well duh, that'd be a huge security hole.
I didn't imply something like echo "Hello!";, I mean using PHP for determining the outcome of the BBCODE. E.g. by allowing users to enter a width parameter in BBCODE, and then having PHP divide the user-entered width by an aspect ratio constant (e.g. 4/3) to determine the height of the movie clip automatically.
http://www.youtube.com/v/7oXx0qwe0wc would thus display a hypothetical 400x300 px YouTube movie clip.
Dual parameter BBCODE would also come in handy...
vBulletin® v3.8.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.