Forum Moderators: coopster

Message Too Old, No Replies

script for "updated today" blogroll?

         

ajsinclair

1:39 pm on Jan 16, 2004 (gmt 0)

10+ Year Member


Hi all - I'm new to PHP and I'm trying to make a page of blog links that show (1) the most recent posts for each blog, and (2) whether that blog was updated recently.

I am happy to say I've accomplished objective #1 by using the magpie XML parser, and I now have a php page that links to the most recent blog posts from several blogs.

My issue is with objective #2. I've seen some scripts that create blogrolls using blo.gs to show recency, but I don't want a whole blogroll - I just want a simple script that says something like "if the blog was updated today, do this, otherwise, do that".

Is anyone familiar with such a script? Or do people have other ideas of how to do this?

ajsinclair

3:16 pm on Jan 16, 2004 (gmt 0)

10+ Year Member


Never mind, I got this working.

If anyone else is trying such a feat, all I did was create a second "foreach" to display new headlines, (the code is available in the magpie cookbook). Then I modified it to display my "updated" image and I stopped the loop after the first headline by using "break 1".