Re: [Simplog-devel] diferents RSS feeds by category
Brought to you by:
f-bomb
From: Jim Hu <ji...@ta...> - 2004-08-20 15:19:30
|
I agree and have a question - when should we use rss to move content to another application vs. using a different kind of feeding? It was my sense from my limited reading about RSS that HTML tags shouldn't go along with the RSS, but that we can pass the html using other kinds of feeds. This also leads to the question of how much to allow customization of the feeds on the simplog side vs. having the receiving application process the info. For example, the magpie page describes a nice way to use array_slice() to display a subset of entries. http://magpierss.sourceforge.net/ Jim On Aug 20, 2004, at 10:03 AM, Jason Buberel wrote: > 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! >> >> > > > ------------------------------------------------------- > 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 |