RSS Feeds Expire

jstenner

Joined: 2003-05-18
Posts: 5
Posted: Thu, 2008-02-28 00:43

I have created RSS feeds for particular albums in my Gallery and would like to pull data from these feeds into another portion of my site. Some of these albums are updated regularly and others are not, but I would like each feed to always include the several most recent contributions to that particular album. My problem is that the feeds expire after some predetermined time and are no longer included in the feed. I dug around, searched the forums, and see that others have had this problem. I also noticed that on the RSS Module wiki, a request for a solution to this problem is included in the "Requested Features" list (Replace the hard-coded "days old" value that is used to determine if an item is included in the feed with a configurable value determined by the user.) http://codex.gallery2.org/Gallery2:Modules:rss

I have searched the codebase for "days old" and any combination of terms, as well as looked through things to see if I can find where and expiration date is referenced and can't find it. Can someone suggest how I might set these feeds to simply ALWAYS list the most recent content rather than expire after some period of time? Evidently they only remain "new" for a set period.

TIA,
Jack

 
insan_art
insan_art's picture

Joined: 2007-02-15
Posts: 39
Posted: Fri, 2008-04-04 21:12

Hi Everyone, I'm also having the same issue and I'm wondering how to set the feed so it will not expire/always show the newest updates...

Thank you in advance for any advice...

- Sarah

http://www.insanart.com

 
jstenner

Joined: 2003-05-18
Posts: 5
Posted: Sat, 2008-04-05 13:06

I fixed this by modifying modules->rss->classes->RssHelper.class Around line 455, I changed $newDays to some number of days in the future (3 years, in my case).

HTH,

 
insan_art
insan_art's picture

Joined: 2007-02-15
Posts: 39
Posted: Wed, 2008-04-09 21:52

Cool....thank you I will try that!

- Sarah

http://www.insanart.com

 
insan_art
insan_art's picture

Joined: 2007-02-15
Posts: 39
Posted: Tue, 2008-04-15 13:58

Hi I just wanted to say thank you again for the assistance! I finally got around to checking out that class file last night, changed it to 3 years and what do you know - this morning, I'm seeing the last updates I did a few weeks ago in my feed! Thank you so much for your help, I never would've been able to figure that out on my own!

- Sarah

http://www.insanart.com

 
pdbrown

Joined: 2006-07-04
Posts: 14
Posted: Fri, 2008-04-25 19:30

There is a setting under RSS General Settings that says "Maximum age for items in feeds". You should be able to set that to a sufficiently large number rather than hacking the code....

 
kentr

Joined: 2009-03-03
Posts: 1
Posted: Tue, 2009-03-03 07:44
pdbrown wrote:
There is a setting under RSS General Settings that says "Maximum age for items in feeds". You should be able to set that to a sufficiently large number rather than hacking the code....

With RSS plugin v1.1.0, there is no such general setting. According to the docs for the plugin (at http://codex.gallery2.org/Gallery2:Modules:rss), this setting is controlled by the New Items plugin (which I believe is not installed by default).

In the settings for the New Items plugin, use a high value (for example, 36500 days - which comes to 100 years).