May I suggest one thing: Please consider renaming the rss.php to rss-media.php by default, so it would be easier to use this new one as an addition to the standard rss feed. The media rss is not suitable as a substitute since it does not show any images in my feed reader (NetNewsWire on Mac, so a fairly commonly used one).
I also hacked up a PicLens feed for ZenPhoto (the instructions on the PicLens site are very straightforward) but had trouble making it work as a standard news feed also. I had a quick look around for an example that works for both, but haven't found one yet.
Since the media rss is a special yahoo invention and therefore this is not right in line with the official rss 2.0 standard: http://cyber.law.harvard.edu/rss/rss.html#extendingRss In fact I first heard about Media RSS when someone mentioned it here, so there is no problem in having two feeds for separate uses since the files are really small.
Another pointer, if anyone else is implememting this... For a PicLens slideshow, you really want the RSS feed to include the whole album/search/whatever, not limited to the number of images specified by the stored feed_items option which would be appropriate for a news feed. To get this you need to remove the "LIMIT $items" field from the MySQL query. (I found a reference to using LIMIT ALL, but that's only supported in other dialects of SQL)
Using melon's php file I was able to get piclens to work with zenphoto, but I have a problem now where the amount of feed items are limited to 47. I can change the feed items limit in the zenphoto control panel but I still only get 47 feeds. Does anyone have an idea where to search for this problem?
I have already increased the timout for the php scripts to 60secs and increased the memory allocation to 128mb with no success. I was unable to find any reference to rss limits in the rss.php file except for the reference to options that is set in the zenphoto admin panel. Any ideas would be greatly appreciated. Thanks.
Some possibilities: 1. You don't have more than 47 images. 2. You falsly selected an album feed instead of the gallery feed. 3. Some images are not published 4. Some albums are password protected. 5. It's a piclens problem.
The zenphoto installation in is xampp 0.7.1 with defaults.
Piclens is working fine with google images and other reference sites with upwards of 3000 photos.
1. My gallery contains two albums each with about 500 images a piece in jpg format.
2. Is the selection of the album feed vs gallery feed in zenphoto admin?
3. All images are published to the gallery and refreshed
4. No albums have passwords
5. Piclens doesn't have problems with any other sites that support media rss feeds.
I'm not really that good with php but I can find my way around, if you could point me in the right direction to look that would be really helpful. Thanks.
Let me first mention that media rss is considered a "third party hack" and therefore not officially supported.
If you are within an album you get a feed for that album. If you want to have a full gallery feed, you have to change the rss link within the head of your theme files. Please see the functions guide on our user guide page for how to do it.
Comments
In fact I first heard about Media RSS when someone mentioned it here, so there is no problem in having two feeds for separate uses since the files are really small.
I have already increased the timout for the php scripts to 60secs and increased the memory allocation to 128mb with no success. I was unable to find any reference to rss limits in the rss.php file except for the reference to options that is set in the zenphoto admin panel. Any ideas would be greatly appreciated. Thanks.
1. You don't have more than 47 images.
2. You falsly selected an album feed instead of the gallery feed.
3. Some images are not published
4. Some albums are password protected.
5. It's a piclens problem.
The zenphoto installation in is xampp 0.7.1 with defaults.
Piclens is working fine with google images and other reference sites with upwards of 3000 photos.
1. My gallery contains two albums each with about 500 images a piece in jpg format.
2. Is the selection of the album feed vs gallery feed in zenphoto admin?
3. All images are published to the gallery and refreshed
4. No albums have passwords
5. Piclens doesn't have problems with any other sites that support media rss feeds.
I'm not really that good with php but I can find my way around, if you could point me in the right direction to look that would be really helpful. Thanks.
If you are within an album you get a feed for that album. If you want to have a full gallery feed, you have to change the rss link within the head of your theme files. Please see the functions guide on our user guide page for how to do it.
i've managed to get the file in question to work, by trial and error and by comparing the original rss file with the one from melon (thanks again!)
i've noticed that there was something missing in this bit:
"if(!checkAlbumPassword($albumcheck['folder'])) {" >>> melon-file
and i replaced it with this:
"if(!checkAlbumPassword($albumcheck['folder'], $hint)) {" >>>original rss
i also played around with the melon-file and "commenting-off" some of the "$output" entries.
maybe all that has nothing to do with it, but it seems to work. i'm using zenphoto 114 and some albums are protected.
i have updated the file to work with Zenphoto 1.1.6
Enjoy