Thread: RSS Feed ?
View Single Post
  #2  
Old 2006-01-20, 07:14 PM
bpurvis bpurvis is offline
 
Join Date: Mar 2005
Re: RSS Feed ?

The php page that creates the rss feed is just broken. there is (most likely) a missing character in the php code right after the </rss> tag and the last portion of the page is not getting rendered right, hence you can see the actual php code. a moderator needs to fix this.
i.e.
</item>
</channel>
</rss> "\t\t<dc:creator><![CDATA[" . $thread['postusername'] . "]]></dc:creator>\r\n";
echo "\t</item>\r\n";
break;
case 'RSS2':
echo "\r\n\t<item>\r\n";
echo "\t\t<title>$thread[title]</title>\r\n";
echo "\t\t<link>$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;goto=newpost</link>\r\n";
echo "\t\t<pubDate>" . gmdate('D, d M Y H:i:s', $thread['dateline']) . " GMT</pubDate>\r\n";
echo "\t\t<description><![CDATA[". htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($thread['preview'], false, true), $vboptions['threadpreview'])) ."]]></description>\r\n";
echo "\t\t<category domain=\"$vboptions[bburl]/forumdisplay.php?forumid=$thread[forumid]\"><![CDATA[" . htmlspecialchars_uni($thread['forumtitle']) . "]]></category>\r\n";

# this bit is obtuse
echo "\t\t<author><![CDATA[[email protected] (" . $thread['postusername'] . ")]]></author>\r\n";
echo "\t\t<guid isPermaLink=\"false\">$vboptions[bburl]/showthread.php?t=$thread[threadid]</guid>\r\n";
echo "\t</item>\r\n";
break;
}
}
}

switch($_REQUEST['type'])
{
case 'RSS1':
echo "</rdf:RDF>";
break;
default:
echo "</channel>\r\n";
echo "</rss>";
}
}

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 15:50, Fri Jan 13th 2006
|| # CVS: $RCSfile: external.php,v $ - $Revision: 1.53.2.7 $
|| ####################################################################
\*======================================================================*/
?>
Reply With Quote Reply with Nested Quotes