« Why OLPC is a good idea: | Main | Material Connexion »

YouTube Badge

I finally set up YouTube to take videos directly from my mobile phone, so I wanted to automatically embed my most recent video on this blog (find it in the sidebar above the Flickr photos). I couldn't find anything exactly like what I wanted (i.e. plain and simple), so I threw together a little PHP script to do the job. Here's the source. After changing the username, width, height, and optionally the API key (get yours from YouTube), either paste the source directly into your template files or save it to its own separate file and include it. In either case, your site must run on PHP for this to work. No guarantees on this one, it's just thrown together, but it works for me. Good luck.

TrackBack

TrackBack URL for this entry:
http://jamesnsears.com/mt-tb.cgi/111

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Verification (needed to reduce spam):

Music

Where am I?

Recent Photos

Powered by
Movable Type 3.35