From: Jason B. <ja...@bu...> - 2004-08-20 15:03:24
|
That seems like a reasonable thing to do, IMO. Carlos Garces wrote: >Hi! >This is my first post in this list! > >I need to generate diferents RSS feeds by category to integrate simplog feeds >with other aplication. > >I have modify rss2.php, in line: >[code] > //now grab the last 20 entries from that blog. > blogEntries = $blogInfo->getLastNEntries(20); >[/code] >I put this new code >[code] >if(isset($_REQUEST['blogid']) && isset($_REQUEST['cid'])) { > //Get entries by category > $blogEntries = $blogInfo->getBlogEntriesByCriteria($_REQUEST['keyw'], >$_REQUEST['pid'], $_REQUEST['cid'], $date, $_REQUEST['eid']); >}else{ > // now grab the last 20 entries from that blog. > $blogEntries = $blogInfo->getLastNEntries(20); >} >[/code] > >Now I can get one category with this URL >http://localhost/simplog/rss2.php?blogid=1&cid=2 > >Any comments to this code? > >Un saludo >Carlos Garces > > >. > > > > >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >Simplog-devel mailing list >Sim...@li... >https://lists.sourceforge.net/lists/listinfo/simplog-devel > >!DSPAM:4125bbc569932749824780! > > > |