Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-07-03 09:57:00

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,324
Website Mastodon

Embed code for YouTube flicks at (almost) any size

YouTube offers prefab code to embed a video in your own pages at a selection of discrete widths (480, 640, 960px).

Too bad if those do not fit your site’s column widths – it costs you a trip to the desktop calculator or any other linear equation solver to calculate correct custom height and width values.

I couldn’t stand this any longer, so I built myself a tiny tool: Tube Fittings to the rescue.

Enjoy.

Offline

#2 2010-07-03 11:27:34

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Embed code for YouTube flicks at (almost) any size

Pretty cool I must say :-) Thank you for sharing the tool, Robert.

wet wrote:

other linear equation solver

Like one of those things zombies crave for? Never knew it could calculate, but I bet it tastes delicious to zombies.

Offline

#3 2010-07-03 12:30:28

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,324
Website Mastodon

Re: Embed code for YouTube flicks at (almost) any size

Gocom wrote:

Like one of those things zombies crave for?

So you are indicating that Math-powered zombies do exist in .fi, and they live off their daily dose of y = kx + d?

Offline

#4 2010-07-03 12:55:40

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Embed code for YouTube flicks at (almost) any size

wet wrote:

So you are indicating that Math-powered zombies do exist in .fi, and they live off their daily dose of y = kx + d?

I do remember turning into zombie during math classes and drooling over the math books and calculator. Umm, does that mean zombies are math-powered, or is that just consequence from listening a monotone voice for two hours?

Last edited by Gocom (2010-07-03 13:00:25)

Offline

#5 2010-07-03 16:02:09

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: Embed code for YouTube flicks at (almost) any size

wet wrote:

YouTube offers prefab code to embed a video in your own pages at a selection of discrete widths (480, 640, 960px).

Too bad if those do not fit your site’s column widths – it costs you a trip to the desktop calculator or any other linear equation solver to calculate correct custom height and width values.

I couldn’t stand this any longer, so I built myself a tiny tool: Tube Fittings to the rescue.

Enjoy.

Nice idea. Perhaps I should add this method into arc_youtube so that people can specify a width and ratio rather than having to, as you say, take a trip to the desktop calculator to figure out the corresponding height.

Offline

#6 2010-07-03 16:49:49

maniar
Member
From: Hamilton, Ontario
Registered: 2010-01-04
Posts: 66
Website

Re: Embed code for YouTube flicks at (almost) any size

Very useful !

Better than firing up a graphics program and drawing rectangles !


اردو میں بھی دستیاب Textpattern آپ کے لیے اب

Offline

Board footer

Powered by FluxBB