FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Display only one item (new) per day View next topic
View previous topic
Post new topicReply to topic
Author Message
charleyhankins



Joined: 28 Aug 2006
Posts: 12

PostPosted: Wed Nov 15, 2006 12:49 am Reply with quoteBack to top

Ok. That seems to work ok. Monday's feed went out well, but Tuesday returned Friday's feed.

The feed is here: http://www.eldoradopublicschools.com/content/rssmesh/rssMesh.php?CONFIGFILE=cafeteria3.php

Think you could take a look?

Thanks,
CH
View user's profile
charleyhankins



Joined: 28 Aug 2006
Posts: 12

PostPosted: Wed Nov 15, 2006 12:53 am Reply with quoteBack to top

... and here is my code for RSS Mesh.

Code:
<?PHP

$useOutputCaching = 1;

$outputCacheTTL = 3600;

$XMLTemplate = "rssMesh_Template.xml";

$sortOutputByPubDate = 0;

$feedList = Array(

// Entry #1
Array("fileURL" => "http://www.eldoradopublicschools.com/cafeteria3.xml",
      "itemCount" => "6",
      "feedTTL" => "3600"

      )
);

?>

View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Wed Nov 15, 2006 6:43 am Reply with quoteBack to top

charleyhankins wrote:
... and here is my code for RSS Mesh.

Code:
<?PHP

$useOutputCaching = 1;

$outputCacheTTL = 3600;

$XMLTemplate = "rssMesh_Template.xml";

$sortOutputByPubDate = 0;

$feedList = Array(

// Entry #1
Array("fileURL" => "http://www.eldoradopublicschools.com/cafeteria3.xml",
      "itemCount" => "6",
      "feedTTL" => "3600"

      )
);

?>



I think I have fixed the problem and emailed you a newer version of rssMesh.php.

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
charleyhankins



Joined: 28 Aug 2006
Posts: 12

PostPosted: Wed Nov 15, 2006 10:05 am Reply with quoteBack to top

Thanks Jim. But, Friday's feed is still displaying.

http://www.washington-middleschool2.com/pages/index.php

I appreciate your help with this.
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Wed Nov 15, 2006 10:14 am Reply with quoteBack to top

charleyhankins wrote:
Thanks Jim. But, Friday's feed is still displaying.

http://www.washington-middleschool2.com/pages/index.php

I appreciate your help with this.


How long has it been since you tried the updated version? Since you have $useOutputCaching = 1; it will take 1 hour for the changes to show up.

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Wed Nov 15, 2006 11:14 am Reply with quoteBack to top

charleyhankins wrote:
Thanks Jim. But, Friday's feed is still displaying.

http://www.washington-middleschool2.com/pages/index.php

I appreciate your help with this.


Something else funny is going on, because when I look at the page I see the HTML the makes up the output for the menu.

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Wed Nov 15, 2006 11:31 am Reply with quoteBack to top

charleyhankins wrote:
Thanks Jim. But, Friday's feed is still displaying.

http://www.washington-middleschool2.com/pages/index.php

I appreciate your help with this.


Lets start from scratch here.

* You have a feed http://www.eldoradopublicschools.com/cafeteria3.xml
* You want to show the current day's menu on your webpage

If you are only displaying the HTML for the current days menu and don't supply access to the XML all you need is rss2html.php. That will convert your RSS feed to html that can be included into the page. You can also right in there limit to only 1 item and to not display items in the future. Where ever you have it installed you can use the buildURL utility to help, rss2html.php?buildURL

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
charleyhankins



Joined: 28 Aug 2006
Posts: 12

PostPosted: Fri Nov 17, 2006 11:19 am Reply with quoteBack to top

Jim,
Hi! Thanks for all your input. I've started using RSS2HTML and I think it's great! When I set my limit to 1 it still displays Monday (today is Friday). Am I missing a setting somewhere?

Output: http://www.eldoradopublicschools.com/rss/rss2html.php?XMLFILE=http://www.eldoradopublicschools.com/cafeteria3.xml&TEMPLATE=http://www.eldoradopublicschools.com/rss/sample-template.html&MAXITEMS=1&NOFUTUREITEMS=1

RSS2HTML: http://www.eldoradopublicschools.com/rss/rss2html.php
XML File: http://www.eldoradopublicschools.com/cafeteria3.xml
Template File: http://www.eldoradopublicschools.com/rss/sample-template.html

Thanks again for all your help!
CH
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Fri Nov 17, 2006 11:24 am Reply with quoteBack to top

charleyhankins wrote:
Jim,
Hi! Thanks for all your input. I've started using RSS2HTML and I think it's great! When I set my limit to 1 it still displays Monday (today is Friday). Am I missing a setting somewhere?

Output: http://www.eldoradopublicschools.com/rss/rss2html.php?XMLFILE=http://www.eldoradopublicschools.com/cafeteria3.xml&TEMPLATE=http://www.eldoradopublicschools.com/rss/sample-template.html&MAXITEMS=1&NOFUTUREITEMS=1

RSS2HTML: http://www.eldoradopublicschools.com/rss/rss2html.php
XML File: http://www.eldoradopublicschools.com/cafeteria3.xml
Template File: http://www.eldoradopublicschools.com/rss/sample-template.html

Thanks again for all your help!
CH


But, this is easy to fix.
Quote:
Maximum items: (Use negative numbers for the last X items)


http://www.eldoradopublicschools.com/rss/rss2html.php?XMLFILE=http://www.eldoradopublicschools.com/cafeteria3.xml&TEMPLATE=http://www.eldoradopublicschools.com/rss/sample-template.html&MAXITEMS=-1&NOFUTUREITEMS=1

That should work just fine.

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
charleyhankins



Joined: 28 Aug 2006
Posts: 12

PostPosted: Fri Nov 17, 2006 12:42 pm Reply with quoteBack to top

Yep. That seems to be a beautiful thing.

Thanks for all your work!!
CH
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