Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   Test Forum (http://zelaron.com/forum/forumdisplay.php?f=37)
-   -   YouTube BBCODE tests (http://zelaron.com/forum/showthread.php?t=43037)

Chruser 2007-08-09 02:51 PM

YouTube BBCODE tests
 
Use with embed URL. 425x350 px preset. Does anyone know if any YouTube videos are shown in another resolution?

BORKED

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
Code:

[youtube425]
and
Code:

[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.

kaos 2007-08-09 06:46 PM

Awesome. Now I'll acctually click on YouTube threads without being tricked into it.

Chruser 2007-08-09 10:06 PM

Quote:

Originally Posted by WetWired
Well duh, that'd be a huge security hole.

I didn't imply something like [PHP]echo "Hello!";[/PHP], 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.

[youtube=400]http://www.youtube.com/v/7oXx0qwe0wc[/youtube] would thus display a hypothetical 400x300 px YouTube movie clip.

Dual parameter BBCODE would also come in handy...


All times are GMT -6. The time now is 06:01 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.