20 May 2007 - 20:29Forum Youtube Linker makes youtube links more useful
I wrote a little script that generates bbcode for linking to Youtube videos. It was inspired by the way GTalk and Orkut take Youtube URLs and show a screenshot and description etc.
It spits out forum bbcode that’ll look like this:
Yoji Biomehanika clip @ Sensation Black 2004
Yoji drops a sick track @ sensation black 2004Dark By Design – Blackout (yoji biomehanika mix)
http://www.youtube.com/watch?v=YfIPt5Ai5P0
It was basically a way for me to teach myself regular expressions in php. A few of my friends have already found it useful, so give it a shot if you post on any bbcode-enabled forums.
You can also set up a bookmarklet and point it to javascript:(window.location = ‘http://portfolio.itas.ca/~mackenzied/uchoob.php?url=’+location.href);
or drag this into your bookmarks/toolbar: Link to this Youtube video
2 Comments | Tags: code, video, web



21 May 2007 - 11:45
Very nicely done, would be quite handy. You will have to give me some details later. I need to get going on some code stuff.
06 Jun 2008 - 16:48
Nevermind, I worked it out.
javascript:(window.location%20=%20′http://www.dmack.ca/uchoob.php?url=’+location.href);