Picasa RSS autoimport
Last updated on
30 April 2025
I created a set of scripts that imports Picasa album RSS feed and creates nodes from it. Albums are displayed with SimpleViever.
The attached package consists of:
- SimpleViever instance (album/ subdirectory and album/gallery.swf file). In order to make dfGallery working you have to set php.ini setting allow_fopen_url=on.
- a script that generates dfGallery config XML on the fly, based on an Picasa album id received as HTTP GET variable
- a script (album/picasa_sync.inc.php, files/imported.inc.php) which downloads the Picasa Gallery RSS feed and creates a node from the items that haven't been imported yet. It adds the 'Album' taxonomy term to each created node. The imported.inc.php file must be writable by the web server, it contains the ids of the imported albums.
You have to configure your Picasa gallery name in both the picasa_sync.inc.php and the album/df/gallery.php files.
A typical use case is to create a view, that presents all nodes with 'Album' tag, and add the importer script to the header of this view:
<?php
include('albums/picasa_sync.inc.php');
?>
This way every visit of this view will trigger the sync with the Gallery RSS feed. (The sync is one way: if you delete an album on Picasa it won't be deleted from your Drupal site.)
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion