RSS Issue - Broken?

Discussion in 'Site Problems & Feedback' started by Dan~, Dec 24, 2005.

  1. Dan~

    Dan~ OSNN One Post Wonder

    Messages:
    4
    I've noticed this problem for ages so I went to investigate why, I thought maybe the RSS for Software url had changed, but it's completly broken, When I click RSS on the site I just get an error.
     
  2. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    Thread title edited to be more specific.
     
  3. zeke_mo

    zeke_mo (value not set) Staff Member Political User Folding Team

    Messages:
    1,984
    Location:
    Placerville, CA
    I have always had this problem, everybody just things I'm crazy though:crosseyed:
     
  4. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Our RDF feed is crap.

    Can't we just use the RDF for Klip's, and have a nice new sparkly (compliant) RSS 2.0 feed for everyone else?










    *cough* it's all because vNews smells....
     
  5. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA

    This is why :p.
     
  6. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Other sites using vNews don't seem to have the problems that we do with feeds.

    What else could we use anyway?
     
  7. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA

    I just wanted to get my two cents in :p. I have no clue why other sites work fine, and we don't. As far as I know it works fine, as on my blog it is still in the side bar.
     
  8. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,590
    Location:
    Copenhagen, Denmark
    I have customised our feed, so don't blame vnews ;)
    it displays more data than default and illegal characters often slip through.
     
  9. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    But it's RDF format... who uses rdf?!

    As I said before, would it not be possible to leave those feeds in place for the klip, and have a fully working, plain, compliant, no bullcrap, RSS2.0 feed for everyone else ?
     
  10. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,590
    Location:
    Copenhagen, Denmark
    Its not fully RSS2 now? :eek:
    Doesn't relate to that tho, its the silly utorrent think has that crazy u in it.
     
  11. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,590
    Location:
    Copenhagen, Denmark
    Here is the relevent code I need to add to:

    PHP:
     unset($news_data);
     
    $getdata query("SELECT news_news.id,catid,mainnews,commentcount,title,stickypost,name FROM news_news,news_category WHERE".iif($id != 0," (catid IN ($cat_ids)) AND")." (news_news.display = 1) AND (program = 0) AND news_category.id = news_news.catid ORDER BY stickypost DESC,time DESC LIMIT $backend_show");
     
    while (
    $news fetch_array($getdata)) {
    if (
    isuserallowed($cat_arr[$news[catid]][allowview])) {
     
    $news[title] = htmlentities($news[title]);
    $news[poster] = htmlentities($news[poster]);
    $news[time] = htmlentities(date($mobile_time,$news[time]-$time_offset));
     
    $newsdescriptionlength 500// Length of the news to display before cutting off
    $news[description] = iif(strlen($news[mainnews]) > $newsdescriptionlength,substr($news[mainnews],0,$newsdescriptionlength)."...",$news[mainnews]);
     
    if (
    $news[stickypost] == 2) {
    eval(
    "\$news_data .= \"".returnpagebit("backend_xml_post")."\";");
    } elseif (
    $news[stickypost] == 1) {
    eval(
    "\$sticky .= \"".returnpagebit("backend_xml_post")."\";");
    } else {
    eval(
    "\$news_data .= \"".returnpagebit("backend_xml_post")."\";");
    }
    }
    }
     
    $sitename htmlentities($sitename);
    $homeurl htmlentities($homeurl);
     
    header("Content-Type: text/xml");
    eval(
    "echooutput(\"".returnpagebit("backend_xml")."\");");
    i need to add something before or after this line:

    $news[title] = htmlentities($news[title]);

    that will strip weird characters out.
     
  12. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
  13. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,590
    Location:
    Copenhagen, Denmark
    Problem is solved anyway
     
  14. vern

    vern Dominus Political User Folding Team

    Messages:
    1,571
    Location:
    Minnesota, USA
  15. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Works fine here.
     
  16. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,590
    Location:
    Copenhagen, Denmark
    Ok, sorted that - think I am gonna have to add the few bad characters as I see em. Should be alot easier to do now.