As previously noted, the currently available RSS module (1.0.6) is incompatible with the Siriux theme for Gallery (2.1.2). I wanted to be able to offer a feed (photocast) for an album in my own gallery, but finding a hack for the code was only half of the problem. For some reason defining a feed in Gallery is very non-intuitive. Here's how it's done, step-by-step.
There are perfectly valid reasons why you might want to offer a web (RSS) feed for a dynamic album on your website. In our case, as we explore and photograph Wellington ourselves, those with an interest in Project Koru can visually explore with us via a photocast/ photostream. If they subscribe to the photo feed, they go where we go.

Hack the RSS module
To improve compatibility with the Siriux theme, you need to edit Callbacks.inc, located in /gallery2/modules/rss/. As described here, make the following PHP edit:
if (isset($blocks)) {
foreach ($blocks as $block) {
if ($block[0] == 'rss.RssBlock') {
$params = $block[1];
break;
}
}
}
Define a feed
Using the instructions I found here as a basis, with a bit of trial-and-error, the following steps proved successful. This assumes you have the RSS module installed and activated, and that the Item actions block is already set to display on album pages. First you need to add the RSS Feeds block:
- Login to your Gallery as administrator;
- Edit the Album for which you want to display a feed;
- Add the List of RSS Feeds block to show on album (and/or photo) pages and Save.
Now go to Site Admin to set up the allowed feed types:
- From the main menu, under Export choose RSS;
- Uncheck Allow Simple RSS Feed to be used and check Allow configurable RSS feeds to be used;
- Also check Allow RSS feeds of photos inside an album then Save Settings.
Go back to the album for which you want to generate a feed:
- From the album actions drop-down menu, choose Configure RSS Feeds;
- Add a new feed, giving it a name and description;
- For Type of feed, choose Items in this album;
- Set other feed options to suit and save.
If successful, each page in your album should offer a clickable link to your new feed, together with a link to all feeds (if there are more) available via your Gallery installation:

Update 30.12.07: The above edit is not necessary for Siriux version 1.1.3 as included with Gallery 2.2.4.











0 responses to Fixing feeds for the Siriux Gallery theme