[Simplog-devel] diferents RSS feeds by category
Brought to you by:
f-bomb
From: Carlos G. <car...@us...> - 2004-08-20 08:51:22
|
Hi! This is my first post in this list! I need to generate diferents RSS feeds by category to integrate simplog f= eeds with other aplication. I have modify rss2.php, in line: [code] //now grab the last 20 entries from that blog. blogEntries =3D $blogInfo->getLastNEntries(20); [/code] I put this new code [code] if(isset($_REQUEST['blogid']) && isset($_REQUEST['cid'])) { //Get entries by category $blogEntries =3D $blogInfo->getBlogEntriesByCriteria($_REQUEST['keyw'], $_REQUEST['pid'], $_REQUEST['cid'], $date, $_REQUEST['eid']); }else{ // now grab the last 20 entries from that blog. $blogEntries =3D $blogInfo->getLastNEntries(20); } [/code] Now I can get one category with this URL http://localhost/simplog/rss2.php?blogid=3D1&cid=3D2 Any comments to this code? Un saludo Carlos Garces =2E |