FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Start feed with second to latest post? View next topic
View previous topic
Post new topicReply to topic
Author Message
Phoebe



Joined: 10 Aug 2015
Posts: 2

PostPosted: Mon Aug 10, 2015 10:51 pm Reply with quoteBack to top

This is probably a very stupid question as it seems like it should have a very simple answer but I'm stumped. I think part of the problem is that I don't know the correct terminology for what I'm trying to do so my searches don't bring up the right info (as it seems likely someone has asked this question before but I couldn't find it).

Anyway, I have the rss2html script working on my html test site and its all going well. The only thing I want to change is that the second to latest post starts the feed rather than the latest post (as the latest post is already featured elsewhere on the page). So if the latest post is n, the feed shows n-1, n-2, n-3, but excludes n itself.

I would be most grateful if anyone could point me in the right direction.
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Tue Aug 11, 2015 11:42 am Reply with quoteBack to top

We haven't really run into that question before.

Here is something that might work:

In the rss2html.php file find line number 972. It currently reads:

for ($x = 0; $x < $loop_limit; $x++) {

Try changing it to:

for ($x = 1; $x < $loop_limit; $x++) {

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Phoebe



Joined: 10 Aug 2015
Posts: 2

PostPosted: Tue Aug 11, 2015 8:15 pm Reply with quoteBack to top

Thank you!!!!!

That did the trick. It's perfect.
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme