Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

FeedReader

edited December 2006 in Vanilla 1.0 Help
FeedReader

Comments

  • any way that this could handle multiple feeds?
  • +1 multiple feeds

    It also crashes a lot whenever odd UNICODE is present - any chance this could be redone using Magpie RSS?
  • Is there a way to make those feeds being seen by non signed-in users ?
  • Indeed, I removed the condition && $Context->Session->UserID > 0 in defaut.php line 314 - so everybody can see the feeds :)
  • The feedreader renders escaped HTML.

    All of those *escaped* HTML characters render as code.

    http://www.crazyontap.com/rss.php
    <item> <title><marquee>OK so script probably doesn't make it through</title> <link>http://www.crazyontap.com/topic.php?TopicId=21750&Posts=7</link> <description><![CDATA[<strong>muppet: </strong>So assuming they got THAT right, does THIS work? <br /> <br />Hmm..]]></description> <pubDate>15 Aug 07 12:37:52 GMT</pubDate> </item> <item> <title><script language="Javascript">alert("eat me blah!")</script></title> <link>http://www.crazyontap.com/topic.php?TopicId=21748&Posts=11</link> <description><![CDATA[<strong>arg!: </strong>BOO-YA!]]></description> <pubDate>15 Aug 07 11:27:37 GMT</pubDate> </item> <item> <title>It's time to go to bed.</title> <link>http://www.crazyontap.com/topic.php?TopicId=21747&Posts=0</link> <description><![CDATA[<strong>Ward: </strong>Just got home from Oregon about 20 minutes ago.&nbsp; Gotta be at work in 4 hours, can't sleep in today.&nbsp; Oh well, the Oregon coast is a blast.]]></description> <pubDate>15 Aug 07 11:20:03 GMT</pubDate> </item> <item> <title><span style="font-size: 84pt;">Good morning Blah!</title> <link>http://www.crazyontap.com/topic.php?TopicId=21746&Posts=26</link> <description><![CDATA[<strong>muppet: </strong>How's it shakin?]]></description> <pubDate>15 Aug 07 11:18:33 GMT</pubDate> </item>
  • That is, angle brackets are & lt ; (no spaces) and the HTML renders in the feed.
  • Thanks to Stash for the pointer - my code now looks like the real thing - notice the escaped HTML. This escaped HTML renders in feedreader and actually displays maruqees and javascript popups on my messageboard.
  • Here's a helpful little utility for creating escaped HTML.

    P.S. the text area isn't coloured white...
  • :: any way that this could handle multiple feeds? Yahoo Pipes.
  • This seems to work for multiple feeds...

    //seperate feeds with a |
    $Context->Dictionary["FeedReader.URI"] ="http://myfeed.com/feed1.rss|http://myfeed.com/feed2.rss"


    Line 318
    /****************************************************************************** ATTACH LIST
    ******************************************************************************************/
    if (in_array($Context->SelfUrl, array("categories.php", "index.php", "post.php")) && $Context->Session->UserID > 0) {
    $uris = $Context->GetDefinition("FeedReader.URI");
    $uris = explode('|',$uris);
    foreach ($uris as $uri){
    $frr = new FeedReaderRender($uri, $Context->GetDefinition("FeedReader.CacheTTL"));
    $frr->attachToList();
    }
    }
Sign In or Register to comment.