Allows you to display images from your public PicasaWeb albums on your blog.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
You can't use this to show stuff from private albums yet. Perhaps someday I'll add support for that.
From anywhere in your WordPress template, call the function "picasaWeb(...)", which takes the following parameters (all parameters, except username, have default values) you can pass in either a named array of parameters or pass the parameters in order as follows:
a)username: your picasaweb username - REQUIRED b)albumid: picasaweb assigns each album an id; provide this if you want to show a specific albums thumbnails. - OPTIONAL c)random: true/false – set to true if you want to display a random set of thumbnails – OPTIONAL default=false d)num: the number of thumbnails you want to display. Set to 0 if you want to show all thumbnails returned - OPTIONAL default=0 e)size: the dimensions you want the thumbnails in selected from the following options: 144, 160, 288, 576, or 720. NOTE: no other sizes are supported by picasaweb. - OPTIONAL default=160 f)showRandomAlbum: true/false this is ignored if an albumid is provided. If set to true then will randomly select an album from the users available albums to show thumbnails from. - OPTIONAL default=false g)LinkToAlbum: true/false – if true the thumbnail will link to the images containing album; else it links to a full size version of the image. - OPTIONAL default=false h)LinkToSourceImage: true/false - Only used if LinkToAlbum is false; if LinkToSourceImage is true then the link will go to a large version of the image - HOWEVER, clicking on the link will load a 404 error and require the user to click in the address bar and then hit enter becuase Google doesn't allow this kind of linking. While this seems useless perhaps someone will have use for access to this url. FILTER USAGE [!--picasaweb:username:=bill.rawlinson,albumid:=5206150637658041777,random:=false,num:=5,showRandomAlbum:=false,linkToAlbum:=false,size:=144--] TEMPLATE USAGE <? picasaWeb(array( "username"=>"bill.rawlinson", "albumid"=>"=5206150637658041777", "random"=>false, "num"=>3, showRandomAlbum=>false, linkToAlbum=>false, "size"=>144)); ?>
Make sure the album you're trying to reference is public. To get the "albumid" click on the "share" link of the albums sidebar, and then get the aid value from the address loaded in the address bar. For Example: http://picasaweb.google.com/lh/emailAlbum?uname=bill.rawlinson&aid=5206150637658041777 the albumid in this url is: 5206150637658041777