1
Found this lil tidbit over at e-xoops and nuke cops. Will newbb be able to handel this puppy?
_____________________________________________________
/************************************************************************/
/* RSS Feed for PHP-Nuke phpBB2 Forums */
/* =================================== */
/* */
/* Copyright (c) 2003 by Paul Laudanski (Zhen-Xjell) */
/*
http://nukecops.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* See a copy of the GPL licensed attached in the archive. */
/************************************************************************/
include("mainfile.php");
header("Content-Type: text/xml");
$result = sql_query("SELECT t.topic_id, t.topic_title FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=f.forum_id and f.auth_view=0 ORDER BY t.topic_last_post_id DESC LIMIT 10", $dbi);
if (!result) {
echo "An error occured";
} else {
echo "\n\n";
echo " echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n";
echo "
\n\n";
echo "\n";
echo "".htmlspecialchars($sitename)."- Forums\n";
echo "$nukeurl\n";
echo "".htmlspecialchars($backend_title)."\n";
echo "$backend_language\n\n";
for ($m=0; $m < sql_num_rows($result, $dbi); $m++) {
list($topic_id, $topic_title) = sql_fetch_row($result, $dbi);
echo "- \n";
echo "".htmlspecialchars($topic_title)."\n";
echo "$nukeurl/postt$topic_id.html\n";
echo " \n\n";
}
echo "\n";
echo "";
}
?>
_____________________________________________________
http://nukecops.com/forums.htmlThis is smokin...