So I wrote my first widget for Wordpress. I was hoping to never do that, I figured I would let others do the work for me. As far as I can tell there are only two Picasa widgets, and as far as I can tell neither of them work. So I had no choice but to build my own.
I’m calling my widget Picasaed, which isn’t a particularly good name, but at least it is a name. Picasaed works pretty much the same as the Flickr Widget, but doesn’t use tables, because no one likes tables. It is all sorts of XHTML friendly, if that’s what gets your motor running. It doesn’t do anything fancy, it just displays X number of photos from a specific album. I don’t even know for sure that it will work for everyone, but it works for me. If it works for you that is awesome. If it doesn’t tell me and I might try to fix it. But no promises since I’ve wasted too much time on this thing already.
The important thing to know is that there are no styles attached to the output, that’s up to you. You can use #picasaed for the main widget and .picasaed_image for the specific images i your CSS.
It does need a proper alt tag in the <img>, but it’s got something there for now so it will validate as XHTML.
9 Comments
Desperately searching for a piece of html to do this - something I can just cut and paste. I am trying to get a horizontal strip. Believe it or not I am right now uploading photos to both Picasa and Flicr which give that I am in the middle of Thailand is taking hours. Any help - greatly appreciated. Thanks.
well, there is no html that will give dynamic images, you’ll need PHP or javascript. You can get the PHP from the widget with very little work. The code below would display a horizontal dynamic set of images from an album. You can cut and paste this, but you’ll need to past the album feed as well.
if you want pure html, then you’ll need to do the work I’m afraid to say.
Hi Jon, I’m quite happy that I have actually found a picasa widget that works for me.
Do you think, you could add something that makes the widget choose random pictures from the feed? Just instead of always showing the first x pictures of the album? That would be great :) Thanks a lot!
Lena, I was actually just thinking about how I need to update picasaed. I don’t remember what the code looks like, but I can’t imagine it would be difficult to add a random feature. It may slow down a little if there are a ton of photos in the album though. I guess we’ll have to see. Check back soon.
I’d love to see a random feature as well… not just of the albums but random within the albums. just my 2 cents, thanks!
Hey Lon, I’ve update the widget and added a random function— you’re actually looking at an older post.
check out:
Picasaed, the WordPress Picasa Widget has Been Updated
The download link here does point to the newest version though.
I’m trying to figure out how to get the RSS feed from Picasa. Any hints would be appreciated.
Okay found the feed but the pics are not thumbnails, argh.
A. Mercer,
The latest update to Picased (v0.4) uses thumbnails instead of the larger image. The RSS feed is located at the bottom of every album.