I just tested it,
http://www.bushwoodworking.com/zenphoto/page/latest
and it works fine with SVN rev 418 (latest version on the repo)
so it should be just fine. I'm sure there is some tweaking that can be done.
I'll put my code up as a ticket attached to the 1.1 milestone, in case Tristan can utilize it for his RSS work.
I think the major issue with the current code, is everything is hardcoded, it is placed within the theme (i.e. not universal to all themes) and it requires it's own database username/password parameters, which shouldn't be necessary. Maybe Tristan can take a look and maybe make some suggestions.
You'll need to change the title, url, and link for the rss channel and image tags, and hardcode the links under the item tag for your specific install:
`<?php
if (!defined('WEBPATH')) die();
header ('Content-Type: application/xml');
require ('customfunctions.php');
?>
<?php echo "<?xml version="1.0" ?>n"; ?>
<rss version="2.0" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
<title>Latest Images</title> <link>http://www.bushwoodworking.com/zenphoto</link>
<description>Latest Images From Bushwood</description>
<copyright>Copyright <?php echo date("Y"); ?> Bushwoodworking.com</copyright> <creativeCommons:license>http://www.creativecommons.org/licenses/by-nc-nd/2.5</creativeCommons:license>
<language>en-us</language>
<image>
<title>Bushwoodworking RSS Feed for Latest Images</title> <url>http://www.bushwoodworking.com/zenphoto/themes/effervescence/images/rss.png</url> <link>http://www.bushwoodworking.com/zenphoto</link>
<width>16</width>
<height>16</height>
</image>
<?php $iw = $cw = 300;
$ih = $ch = 300;
$user="yourDBuserhere"; $password="yourDBpasswordhere";
$database="yourDBhere";
mysql_connect("localhost",$user,$password);
mysql_select_db($database) or die( "Unable to select database");
$sql = "SELECT * FROM ". prefix("images") ." ORDER BY id DESC LIMIT 5";
$result = mysql_query($sql);
while($r = mysql_fetch_array($result)) {
$id=$r['albumid'];
$sql="SELECT * FROM ". prefix("albums") ." WHERE id = $id";
$album = mysql_query($sql);
$a = mysql_fetch_array($album);
?>
<item>
<title><?php echo $r['title'] ?></title>
<link><?php echo '<![CDATA[http://www.bushwoodworking.com/zenphoto/index.php?album='.$a['folder'].'&image='.$r['filename'] . ']]>';?></link>
<description><?php echo '<![CDATA[<a title="'.$r['title'].' in ['.$a['title'].']" href="http://www.bushwoodworking.com/zenphoto/index.php?album='.$a['folder'].'&image='.$r['filename'].'">[img]http://www.bushwoodworking.com/zenphoto/zen/i.php?a='.$a['folder'].'&i='.$r['filename'].'&w='.$iw.'&h='.$ih.'&cw='.$cw.'&ch='.$ch.'[/img]</a>
' . $r['desc'] . '
]]>';?> <?php if($exif['datetime']) { echo '<![CDATA[Date: ' . $exif['datetime'] . '
]]>'; } ?> <![CDATA[<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/">[Image:
http://i.creativecommons.org/l/by-nc-nd/2.5/88x31.png]</a>]]> </description>
<guid><?php echo '<![CDATA[http://www.bushwoodworking.com/zenphoto/index.php?album='.$a['folder'].'&image='.$r['filename'] . ']]>';?></guid>
</item>
<?php } ?>
</channel>
</rss>`