• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

RSS Issue - Broken?

Dan~

OSNN One Post Wonder
#1
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.
 

zeke_mo

(value not set)
Staff member
Political User
#3
Dan~ said:
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.
I have always had this problem, everybody just things I'm crazy though:crosseyed:
 

SPeedY_B

I may actually be insane.
#4
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....
 

X-Istence

*
Political User
#7
SPeedY_B said:
Other sites using vNews don't seem to have the problems that we do with feeds.

What else could we use anyway?

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.
 

Electronic Punk

willalwaysbewithyou
Staff member
Political User
#8
I have customised our feed, so don't blame vnews ;)
it displays more data than default and illegal characters often slip through.
 

SPeedY_B

I may actually be insane.
#9
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 ?
 

Electronic Punk

willalwaysbewithyou
Staff member
Political User
#11
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.
 

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,017
Latest member
bettyicrewsi