Member
Member
melon   2008-02-12, 18:18
#1

If you are interested i have created a working rss.php file that will produce a media rss feed for use with PicLens.

IF you wish to download it, get it here

http://www.studiolounge.net/2008/02/12/zenphoto-and-piclens

Administrator
Administrator
acrylian   2008-02-12, 18:25
#2

I will add it to our hacks page on zenphoto.org with a link to your site.

Member
Member
melon   2008-02-14, 00:00
#3

Great thanks

Administrator
Administrator
acrylian   2008-02-14, 09:41
#4

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).

Member
Member
jlang   2008-02-14, 23:00
#5

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.

Administrator
Administrator
acrylian   2008-02-15, 10:22
#6

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.

Member
Member
jlang   2008-02-15, 11:56
#7

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)

Member
Member
alterxerxes   2008-02-18, 18:20
#8

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.

Administrator
Administrator
acrylian   2008-02-18, 19:01
#9

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.
Member
Member
alterxerxes   2008-02-18, 21:24
#10

Thanks for the quick response.

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.

Administrator
Administrator
acrylian   2008-02-19, 10:19
#11

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.

Member
Member
tiolon   2008-02-19, 14:34
#12

first of all i don't have any expertise whatsoever in php, css, html - in fact i even think they're difficult to pronounce!

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.

Member
Member
melon   2008-05-26, 21:11
#13

http://www.studiolounge.net/2008/02/12/zenphoto-and-piclens

i have updated the file to work with Zenphoto 1.1.6

Enjoy

Member
Member
gsvalentine   2010-02-24, 01:53
#14

Any plans to update this to work with Zenphoto 1.2.8??

Administrator
Administrator
acrylian   2010-02-24, 10:44
#15

The standard rss feed does support media rss. Look at the options.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.