altPWA – plugin for WordPress
This is the page for altPWA plugin. I wrote this plugin last year, and use it from than on several of my websites and on my friends website. It’s so easy to use! I decided in the end to make it available to everyone, in sign of my gratitude for WordPress and WordPress community.
My plugins:
Now jump to download, screenshots and demo, installation and usage, configuration, help.
Hey, you don’t have to believe me! See the screenshots. In the first screenshot you see a page which list all the albums from a Picasa account. I just wrote in that page
[altpwa user=manastur1vest]

In this second screenshot, you can see just one album, after I click on that album in the list you’ve seen it above. But I can easily embed only one album if I want, using
[altpwa user=manastur1vest album=PrimaImpartasanieDeRusalii]

Now it’s time to see some photo. If the design is thin, maybe you will prefer to use Lightbox.

But there is always the option to have the picture inside the page, as below.

And finally, take a look at the administration page. There are several useful option here.

If you want to see the plugin in action, than I recommend you some sites which use it:
- Photo albums of a Parish (it’s a page)
- Just a photo album from the same Parish (it’s a post)
- Photo albums of an Eparchy (it’s a page)
- Just a photo album from the same Eparchy (it’s a page)
1. Download the zip file
2. Unpack the zip. You should have a directory called `altpwa`, containing several files and folders
3. Upload the `altpwa` directory to the `wp-content/plugins` directory on your WordPress installation. It is important you retain the `altpwa` directory structure
4. Activate plugin
To use it just to that. If you want to have a page to list and show all your albums from Picasa Web Albums, wrote in a blank page
[altpwa user=...]
and instead of … indicate your Google username from Picasa Web Albums.
If you want to show only one album, in a post for example, wrote in a blank post
[altpwa user=... album=...]
where of course the … are replaced with your username and the album. For example, I have an album like that
http://picasaweb.google.com/foto.capan/BratislavaZiuaI
Than to embed it on a post I will use
[altpwa user=foto.capan album=BratislavaZiuaI]
That’s all!
From the configuration page (see the screenshot above) you can choose for example the number of rows and columns when an album is shown. You can also choose different size for the images. You have
- the big image, with possible sizez 576,640,720,800 (limitation by Picasa)
- the thumbnail (of the album or of the images in the album)
- the little thumbnails below the big image, with possible sizes 32,48,64,160 (cropped squared) and 144,200,288,400,512 (original ratio)
You can also opt in configuration page if to use Lightbox or not.
For Romanian readers:
Aceasta este pagina pentru pluginul altpWA. În curând va fi şi un text în limba română.
| For donations: | USD | EURO |




Leonaut.com a scris:
11 Aug 08 @ 6:50 amaltPWA…
altPWA is a plugin that will allow you to easily embed a Picasa Web Album in your pages….
samubra a scris:
24 Aug 08 @ 9:06 pmI am sorry, I still did not understand [altpwa user =...] is to put where, to their own can be a more detailed description by?
Waiting for you!
radu.capan a scris:
24 Aug 08 @ 9:11 pmIn a blank post or page. Is that simple. Is your Picasa username samubra? If so, go to Admin area of WordPress. Write a new Page and write there
[altpwa user=samubra]
That’s all! Save the page and you will see there the list of your albums.
Do you have an album named “My trip to Zoo”? Than write a Post (not a Page) with the content:
[altpwa user=samubra album=mytriptozoo]
You will have in that post the pictures from that specific album.
samubra a scris:
25 Aug 08 @ 9:56 amlike this?
pict
radu.capan a scris:
25 Aug 08 @ 9:59 amYes. If your Picasa username is that and if you have activated the plugin, than you should see in that page the list of your albums.
http://picasaweb.google.com/samubra do not exists, so your Picasa username is not samubra (but samubrapeng?). So use [altpwa user=samubrapeng]
Dan a scris:
19 Sep 08 @ 7:02 pm***I am using the alpwa on two posts, they are two different users (picasa) One displays as 9 thumbs, the other displays a large image with 6 small thumbs under it, I don’t know what would make them display differently? The one that display the 9 thumbs, when you click thumb it throws fatal error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24 bytes) in /home/hidden/public_html/wp-content/plugins/altpwa/alt-pwa.php on line 327
The thumbs of the album are displayed, the error occurs when clicking a thumb to expand it.
*** ok – the issue is intermittent, so is probably not the alpwa, but something else. Any ideas:) ? Also lightbox feature doesn’t work – so a conflict for sure somewhere. Thanks for nice pluggin !
radu.capan a scris:
19 Sep 08 @ 7:14 pm1. Please write me at cnet@cnet.ro indicating the exact links with those 2 situations. As far as I’ve seen here (your site probably), the error may came from a veeeery large album. I think. I usualy have at most 100 pictures in an album, but I think you have more, hundreds, and that JSON retrieving is with errors from time to time because of the too-many-pictures. Let me know if it is so (when you try with different albums).
2. About the lightbox… Sorry… I made it to work with many of my websites, but for each is a specific case depending on the theme, plugins used, other libraries…
Dan a scris:
20 Sep 08 @ 12:56 amYou are absolutely correct – the album with error is not mine but one I am displaying and it contains 495 images. I will ask them to split it into several smaller albums. THANKS!
Tarnya a scris:
20 Sep 08 @ 1:10 pmGetting an error. Can you help please?
Thank you
Warning: file_get_contents(http://picasaweb.google.com/data/feed/api/user/acconz2?alt=json&thumbsize=144) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/acconz/public_html/wp-content/plugins/altpwa/alt-pwa.php on line 234
Fatal error: Call to undefined function: json_decode() in /home/acconz/public_html/wp-content/plugins/altpwa/alt-pwa.php on line 235
radu.capan a scris:
20 Sep 08 @ 1:51 pmIt’s easy: you don’t have JSON support in your PHP instalation. Check if you can change your PHP to 5 (some servers allows to change from 4 to 5). Without PHP5 and JSON support, this plugin do not work.
Quasi.dot a scris:
17 Nov 08 @ 12:01 pm[...] altPWA – plugin for WordPress | CNET.ro This is the page for altPWA plugin. I wrote this plugin last year, and use it from than on several of my websites and on my friends website (tags: wordpress plugin picasa photo) [...]
Andy a scris:
22 Nov 08 @ 10:12 pmHello,
Thanks very much for the great plugin!
Echoing the prior comment, I too ran into the problem of my host not allowing file_get_contents().
To work around this, I modified your code to use CURL instead. It was a very small change really. I simply added this function:
// function to replace file_get_contents()
function file_get_the_contents($url) {
$ch = curl_init();
$timeout = 10; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
return $file_contents;
}
and then changed each reference to file_get_contents () to file_get_the_contents().
You can get all the changes here: http://blog.miloco.com/download/altpwa-CURL.zip
In accordance with the GPL, I’ve also made the changes available on my site in this post: http://blog.miloco.com/2008/11/more-picasa-goodness.html
I thought you may want to integrate these into your fantastic plugin. I think it will make it more accessible to additional folks! Thanks again for your work – its top notch.
God’s best to you,
Andy
radu.capan a scris:
22 Nov 08 @ 11:04 pmThank you very much!
Diddle a scris:
18 Dec 08 @ 3:11 amJust wanted to point out that when using the script:
[altpwa user=username]
…on a blank page and WP 2.6, it does nothing. If I add even “ ” to it, it works. If I make the tag:
[altpwa user=username album=]
…it works properly for the full album list as expected. Weird glitch but great script! It works exactly as needed. Now if only there were some way to customize a frame around the photos…
Next up, testing it with 2.7!
Carolin a scris:
19 Dec 08 @ 9:17 pmI was wondering how to get the text to be spaced away from the images. I’ve looked at the script and at all the options available, and can’t find where to add a border. All I want is about 2 or 5 pixels to give the image some space to breathe. Thanks.
radu.capan a scris:
19 Dec 08 @ 11:10 pmThere is, already, a spacing option.
Brian Brigg a scris:
27 Dec 08 @ 12:50 pmI like your plugin but I would like to remove the album dates. I’ve tried to look at the PHP but my skills just aren’t up to it. Any suggestions? Thanks.
WordPress « blog.marc-it-up.com a scris:
04 Ian 09 @ 12:27 am[...] altPWA [...]
Steve Koll a scris:
08 Ian 09 @ 8:30 amExcellent plugin! I have even extended my Picasa storage space now
Is it possible to include titles or metatags from the images in the lightbox? Thx.
ivan a scris:
13 Ian 09 @ 2:54 pmCan i get more than 800px???
radu.capan a scris:
13 Ian 09 @ 2:56 pmNo. It’s a limit of the Google API for Picasaweb.
Wordpress Plugins for Photo Galleries - Photoblogging Part II : Web Design Resources Blog & Graphics Blog with Lists of Web Site Design Tools a scris:
14 Ian 09 @ 5:31 am[...] AltPWA [...]
dSyre a scris:
19 Ian 09 @ 5:56 pmCould you kindly advise, what I am doing wrong? I installed according to your instructions and it is not working ;-(((
And from looking at your screenshots, it is exactly what I want. When I make a post, it just shows the text as entered, no matter whether I add or delete the
tags, etc... Could you please help me to get your beautiful plugin running?Thanks
dSyre
radu.capan a scris:
19 Ian 09 @ 6:16 pmIf what you see is [altpwa user...] it means just one thing: the plugin was not activated. Check back to plugins page in admin area and see if altPWA is shown as active or inactive. For more, write me on cnet@cnet.ro.
marc a scris:
04 Feb 09 @ 10:29 pmI am having trouble with the Lightbox plugin and altpwa. altpwa works fine, but if I activate Lightbox, I get a black box filling the top half of the screen. Also, if I click on a picture thumbnail, the Lightbox frame pops up and gets super huge, and only shows the spinning “wait” symbol. I am using WP 2.7, with a Lightbox 2 plugin certified for WP2.7. Thanks.
radu.capan a scris:
05 Feb 09 @ 11:06 amThis is (high probability) because altPWA already includes a Lightbox plugin, so you have activated 2.
TiiKii a scris:
11 Feb 09 @ 2:09 pmUnlucky that there is not a slideshow option
Is it possible to generate a link that will show a cooliris slideshow just like other picasa plugins?
11 Photoblogging Plugins for WordPress | (Anti) Social Development a scris:
25 Feb 09 @ 1:12 pm[...] Altpwa – If you use Picasa web albums, this plugin will allow you to embed the albums into your WordPress site. Does anyone use Picasa web albums? I use Picasa to organize my photos but use flickr for online images storage. [...]
Stephan a scris:
27 Feb 09 @ 4:55 pmThis plugin is absolutely fantastic. Thank you so much for it! Two thumbs up!
Carl a scris:
12 Mar 09 @ 12:13 pmHi Radu,
your plugin is fantastic, but I am having trouble getting the text to display below each thumbnail and below each picture in lightbox…
It seems the text is displayed in the top of the webpage instead…
How can I fix this?
Have a look here: paintshooter.dk/artworks
Best regards, Carl
15 plugins para fotoblogs con Wordpress : césar cerón :: FOTOBLOG a scris:
12 Mar 09 @ 10:07 pm[...] Altpwa: si usas Picasa este plugin te permite embeber tus álbumes en tu blog. [...]
John Healy a scris:
21 Apr 09 @ 3:35 amFYI I have modified the altpwa 1.1.2 WordPress plugin so that it validates for XHTML 1.0. Edited the alt-pwa.php file for html bugs and syntax corrections.
Let me now if you’d like a copy of my modified file.
danny a scris:
27 Mai 09 @ 1:13 pmHi.
Could you add a new feature?
- Ability to go to original Picasa photo when I display a 800 x 640 preview inmy site (lightbox disabled).
nin a scris:
01 Iul 09 @ 2:47 amHello,
I really love this plugin. I’ve been experimenting with other plugins to work with my Picasa photos, and this one addressed my issues. Just one question, though. How can I make each photo to be displayed at the upper middle part of the dim background? Currently, each photo appears at the lower portion of a page.
Again, great work!
Lao Mayer a scris:
02 Iul 09 @ 10:41 pmHello!
I tried using your plugin as a test on my WP 2.7 blog, but it doesn’t work. Is there any problem with 2.7 version of Wordpress or do I need another plugin for this to work?
I must admit it would be the plugin I was looking for, because I have a Picasa web album I could use in the blog.
Multumesc.
radu.capan a scris:
03 Iul 09 @ 7:42 amThis plugins works in 2.7, and also in 2.8.
Lao Mayer a scris:
03 Iul 09 @ 10:22 amWell, it doesn’t work for me. And another thing I noticed was that I can’t change the Lightbox and the Link to Picasa options to No. As soon as I touch the Update Options button they revert to Yes. I was thinking maybe there’s a problem with the Lightbox option.
Don’t know what to do.
peak a scris:
11 Iul 09 @ 2:01 pmHi, Thank you very much for your good plugin!
I’m wondering can altPWA suport UNLISTED albums in picasa. If yes, please tell me how to do that?
Thanks,
Paweł Skonecki a scris:
03 Aug 09 @ 12:14 pmHi,
I have checked some gallery plug-ins. Your is most interesting. I have some problems with integration with my Wordpress.
1.I do not have lightbox options. I have installed Lightbox Gallery 0.4.7, but I do not have admin panel for altPWA (for active lightbox option, I have changed 2 line var lightbox_path = ‘http://’+jas-i-malgosia.skonecki.eu+’/wp-content/plugins/lightbox-gallery/’; )
2.Where could I manage options of altPWA
Thank, you for any help.
Joe Miller a scris:
12 Aug 09 @ 8:21 pmHi,
Your plugin is wonderful, but it has a conflict with the most recent version of wordpress
the widget conflicts with my other widgets. When I remove yours, all the others show up again.
Any ideas?
Guven a scris:
27 Aug 09 @ 7:12 pmThis plugin is great plugin. I search long time. But plugin and lighbox2 not working ie8. Plugin is god working firofox and safari. Why not working together on ie8?
abobier a scris:
15 Sep 09 @ 11:48 pmI’ve made a French .po and .mo file for your incredible plugin.
If you want it, send me an email
Abobier
Johannes Grimm a scris:
06 Oct 09 @ 12:54 pmThank you, very nice an easy to use.
Even though I wonder wether it is possible to remove the lightbox-part from the plugin and to have the images handled by other lightbox-plugins? i tried for myself to add a “Class=’lightview’”-Tag to every image, but it would not work!
Maybe you could give advise.
Thank you so much for this plugin!
Hugh a scris:
05 Dec 09 @ 1:38 amHi, Can’t get this to work at all…just breaks the page, it’s blank, nothing there, everything below the header has disappeared.
http://www.mulucaves.org/wordpress/?page_id=2
WP 2.8.6, php5
Would love to use this but it just ain’t working! (and the markup code’s so simple that even I can’t get that wrong!!)
???
z1ider a scris:
06 Dec 09 @ 2:37 pmHi, great plugin.
I tried to use this for my website, but there seems no way to be able to display private galleries, so I made my galleries public and Picasa suspended my account!
Is there any way to keep galleries private in Picasa, but allow display on my blog pages?
Thanks,
z