PDA

View Full Version : RSS export feeds


joejanish
03-01-2006, 09:35 PM
OK, I've read this:
<<Every category you create in Newstopica offers an RSS feed. >>

And I feel kind of dumb but can someone explain to me how to find the RSS feed address? For example, if I want to add a category's RSS feed to My Yahoo?

I've tried using the rss.php file but that doesn't seem to grab anything.

Thanks!

tarheit
03-02-2006, 12:58 PM
It should be:
mysite.com/directory/rss.php?c=101

Where 101 in the above is the number of the category.

-Tim

joejanish
03-02-2006, 04:34 PM
excellent! thanks much!

As an FYI, I tweaked the code a bit so that it shows only the most recent 10 headlines. I was having a problem validating the feeds that had a large number of entries, and My Yahoo wouldn't accept most of my categories for the same reason.

Here's what I did (pretty simple, just added an ORDER BY and a LIMIT), around line 30 of rss.php:

}elseif($id = get_category()){
$sql = "SELECT * FROM {$tables['link']['name']} WHERE STATUS=2 AND CATEGORY_ID = $id $expire_where ORDER BY ID DESC LIMIT 10";

Not sure that it was the best way to accomplish it, but it works ... hope it helps out someone else !