Thread: [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 |
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! > > > |
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 |
From: Jeremy A. <ash...@13...> - 2004-08-20 15:50:15
|
If you are passing HTML in an RSS/RDF feed, You usually either encode the HTML by translating any special characters (<,>,&,etc) when generating the feed. If you use Atom, you set the content type attribute of the content tag and just place HTML within. Atom parsers are supposed to be smart enough to parse out the HTML. I don't mind having mulitple feed types, as it is common across alot of sites. I like to give endusers flexibility in what they can do. I know that I don't like to be limited to one way of doing things. :) Jim Hu wrote: > 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 >>> >>> >>> . >> |
From: Jim Hu <ji...@ta...> - 2004-08-24 18:25:13
|
Is anyone else having problems with the user admin stuff? I'm trying to figure out 1) how to make adding a new blog stop adding all the users in the user list to every new blog. 2) why the add/delete users to blog_acl isn't working the way I expect. I'm also having more trouble than usual navigating my way through the code...probably due to my lack of expertise in javascript. Jim |
From: Jason B. <ja...@bu...> - 2004-08-24 18:38:20
|
Jim, I also ran into some funky javascript problems recently when trying to create that new 'private' blog for my wife. In the end, I created the blog manually with some SQL statements then used the Admin UI to finish it up. The user ACL javascript stuff is definitely crufty and in need of some fixups. -jason Jim Hu wrote: > Is anyone else having problems with the user admin stuff? I'm trying > to figure out > > 1) how to make adding a new blog stop adding all the users in the user > list to every new blog. > 2) why the add/delete users to blog_acl isn't working the way I expect. > > I'm also having more trouble than usual navigating my way through the > code...probably due to my lack of expertise in javascript. > > Jim > > > > ------------------------------------------------------- > 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:412b886a137221429143427! > |
From: Jeremy A. <ash...@13...> - 2004-08-25 05:55:01
|
ya, there is some JS i need to fix. It is indescriminately selecting all users in the list (left over from an old version of th admin interface). It needs to be based on the type selected. I'm working on correcting it for the 0.9.1 maintenence release. Jason Buberel wrote: > Jim, > > I also ran into some funky javascript problems recently when trying to > create that new 'private' blog for my wife. In the end, I created the > blog manually with some SQL statements then used the Admin UI to > finish it up. > > The user ACL javascript stuff is definitely crufty and in need of some > fixups. > > -jason > > Jim Hu wrote: > >> Is anyone else having problems with the user admin stuff? I'm trying >> to figure out >> >> 1) how to make adding a new blog stop adding all the users in the >> user list to every new blog. >> 2) why the add/delete users to blog_acl isn't working the way I expect. >> >> I'm also having more trouble than usual navigating my way through the >> code...probably due to my lack of expertise in javascript. >> >> Jim >> >> >> >> ------------------------------------------------------- >> 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:412b886a137221429143427! >> |
From: Jason B. <ja...@bu...> - 2004-08-25 14:06:27
|
How soon might that be coming up? I've got some time that I could spend trying to get some of the recent fixes (from myself RE: security, from Jim, etc.) submitted to CVS. Want me to take a shot at that? -jason Jeremy Ashcraft wrote: > ya, there is some JS i need to fix. It is indescriminately selecting > all users in the list (left over from an old version of th admin > interface). It needs to be based on the type selected. I'm working > on correcting it for the 0.9.1 maintenence release. > > Jason Buberel wrote: > >> Jim, >> >> I also ran into some funky javascript problems recently when trying >> to create that new 'private' blog for my wife. In the end, I created >> the blog manually with some SQL statements then used the Admin UI to >> finish it up. >> >> The user ACL javascript stuff is definitely crufty and in need of >> some fixups. >> >> -jason >> >> Jim Hu wrote: >> >>> Is anyone else having problems with the user admin stuff? I'm >>> trying to figure out >>> >>> 1) how to make adding a new blog stop adding all the users in the >>> user list to every new blog. >>> 2) why the add/delete users to blog_acl isn't working the way I expect. >>> >>> I'm also having more trouble than usual navigating my way through >>> the code...probably due to my lack of expertise in javascript. >>> >>> Jim >>> >>> >>> >>> ------------------------------------------------------- >>> 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:412c29c163872044317020! > |
From: Jeremy A. <ash...@13...> - 2004-08-25 15:42:04
|
I started on fixing the JS last night and have all of the little fixes from 0.9.1 already checked in. I'll finish up the JS fix(hopefully today as i'm not real busy at work at the moment), release 0.9.1, then we can sit down and figure out what to work on next. Jim Hu wrote: > Jeremy, > > I was thinking along the same lines - with your new kid etc., I'm sure > you're swamped! How can we help? Not that I should be spending a lot > of time on this now that the semester is about to start...but I enjoy > coding as a recreational distraction from the other stuff in my life. > Would either of you like me to send an archive of my installation that > has my mods in it (I'm still clueless about the CVS)? > > Jim > > On Aug 25, 2004, at 9:06 AM, Jason Buberel wrote: > >> How soon might that be coming up? I've got some time that I could >> spend trying to get some of the recent fixes (from myself RE: >> security, from Jim, etc.) submitted to CVS. Want me to take a shot at >> that? >> >> -jason >> >> Jeremy Ashcraft wrote: >> >>> ya, there is some JS i need to fix. It is indescriminately >>> selecting all users in the list (left over from an old version of th >>> admin interface). It needs to be based on the type selected. I'm >>> working on correcting it for the 0.9.1 maintenence release. >>> >>> Jason Buberel wrote: >>> >>>> Jim, >>>> >>>> I also ran into some funky javascript problems recently when trying >>>> to create that new 'private' blog for my wife. In the end, I >>>> created the blog manually with some SQL statements then used the >>>> Admin UI to finish it up. >>>> >>>> The user ACL javascript stuff is definitely crufty and in need of >>>> some fixups. >>>> >>>> -jason >>>> >>>> Jim Hu wrote: >>>> >>>>> Is anyone else having problems with the user admin stuff? I'm >>>>> trying to figure out >>>>> >>>>> 1) how to make adding a new blog stop adding all the users in the >>>>> user list to every new blog. >>>>> 2) why the add/delete users to blog_acl isn't working the way I >>>>> expect. >>>>> >>>>> I'm also having more trouble than usual navigating my way through >>>>> the code...probably due to my lack of expertise in javascript. >>>>> >>>>> Jim >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> 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:412c29c163872044317020! >>> >> >> >> ------------------------------------------------------- >> 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 >> > |
From: Carlos G. <car...@us...> - 2004-08-22 17:35:19
|
Hi! If you need get content of your blog in HTML, you can make a copy of blog.php, and make your own HTML output. Jim Hu wrote: > 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. |