I was messing around earlier, trying to create a new WordPress plugin from scratch. Basically it would allow users to easily post YouTube movies on their blogs as well as creating some kind of gallery. The current YouTube API is worthless when it comes to pulling up your favorites; it only returns the 10 most recent entries. If you want to have a gallery of more than 10, then it’d be pretty difficult. I also wanted the plugin to use the Thickbox effect as well.
I managed to get this far:
[youtube]FGvlNdtNTj4[/youtube]
You should be seeing a thumbnail image that you can click, and the Thickbox pops up with the YouTube video embeded in it. When I wrote this post, I had the YouTube video ID between some [youtube] tags. So the plugin finds that and replaces it with the image. It is REALLY in its crude stages right now. I’m having problems having multiple XML parsers in one page (basically it’s conflicting with my YouTube Videos on the sidebar), so I need more time to figure that one out.
I also managed to spruce up my favorites gallery. That one was a little bit more tricky to use. I made use of the wordpress link management system and made a SQL call to get them. So basically I’m using the link table with the YouTube ID, movie title, and movie thumbnail URL as columns. If you see the code, you’d know it was a hack job. Bleh. To that end, I added a whole bunch more videos to my favorites.
Edit: It looks like the changes I made somehow has Thickbox and Lightbox in conflict as well. Therefore the flickr plugin on my sidebar ain’t workin.