Since I didn't see anything else here about creating a feed for digital picture frames, I thought I'd share how I got mine to work. The Kodak W1020 frame wanted the <media:content> tag in order to display the picture. Here is how to add the tag to the rss_lastadded.php feed.
I used the v1.8.0-dev version of feedcreator.class.php. This version changes the encoding from ISO-8859-1 to utf-8. It also adds a GUID tag by default. I'm not sure if these make a difference for the frame, but I tried quite a few things, so once I got it working, I left it alone.
Edit feedcreator.class.php, class RSSCreator091, function createFeed(), change:
$feed.= "<rss version=\"".$this->RSSVersion."\">\n";
to
$feed.= "<rss version=\"".$this->RSSVersion."\"";
if ( isset ($this->media) ){
$feed.= " xmlns:media=\"http://search.yahoo.com/mrss/\"";
}
$feed.= ">\n";
I got this bit of code from
http://www.bitweaver.org/cvs-repo/_bit_rss/feedcreator.class.php?revision=1.10&view=markupEdit feedcreator.class.php, class RSSCreator091, function createFeed() :
after:
$feed.= $this->_createAdditionalElements($this->items[$i]->additionalElements, " ");
Add:
if ( $this->items[$i]->media_content!=""){
$feed.= " <media:content url='".$this->items[$i]->media_content."'/>\n";
}
Edit cfrssget.php, function generateFeedFromResults:
Before this line:
$this->rss->addItem($item);
Add:
$item->media = '';
$item->media_content=''.$this->cpm->cpm_getConfigEntry('cpg_url').$this->cpm->urlEncodeImagePath($this->cpm->getImageToUse($data['pFilepath'],$data['pFilename'], $this->cpm->cfg['_pfx'])) .'';
If anyone knows a better way to do this, please let me know. I'd like to be able to add the picture desctription at the bottom of the photo, but since the frame seems to ignore every other tag, except the media:content tag, I assume I'd have to generate the picture on the fly, adding the description text to the photo.
Jerry