Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
cajun
Hangin' Around



Joined: Apr 26, 2005
Posts: 28

PostPosted: Sun Sep 11, 2005 4:19 pm Reply with quote

I am looking for a backend forum rss file. I can not find one. All links that I have found are broken.

Thanks
 
View user's profile Send private message
gotcha
Regular
Regular



Joined: Mar 14, 2005
Posts: 91

PostPosted: Sun Sep 11, 2005 4:40 pm Reply with quote

Found this laying around.

Code:


<?php

/************************************************************************/
/* 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 "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n\n";
   echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n";
   echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n";
        echo "<rss version=\"0.91\">\n\n";
   echo "<channel>\n";
        echo "<title>".htmlspecialchars($sitename)."- Forums</title>\n";
        echo "<link>$nukeurl</link>\n";
        echo "<description>".htmlspecialchars($backend_title)."</description>\n";
   echo "<language>$backend_language</language>\n\n";
        for ($m=0; $m < sql_num_rows($result, $dbi); $m++) {
       list($topic_id, $topic_title) = sql_fetch_row($result, $dbi);
            echo "<item>\n";
            echo "<title>".htmlspecialchars($topic_title)."</title>\n";
            echo "<link>$nukeurl/modules.php?name=Forums&amp;file=viewtopic&amp;t=$topic_id.html</link>\n";
            echo "</item>\n\n";
        }
   echo "</channel>\n";
        echo "</rss>";
    }

?>


enjoy
 
View user's profile Send private message Visit poster's website
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sun Sep 11, 2005 5:37 pm Reply with quote

I´m using a newer rss version for our forum. This file from nukedgallery.net is valid !

http://www.ravenphpscripts.com/article975.html Smile
 
View user's profile Send private message
CurtisH
Life Cycles Becoming CPU Cycles



Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI

PostPosted: Sun Sep 11, 2005 7:34 pm Reply with quote

Could you please share the code? Smile

_________________
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe 
View user's profile Send private message Visit poster's website Yahoo Messenger
cajun







PostPosted: Sun Sep 11, 2005 9:22 pm Reply with quote

Yes please share!!!!
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Mon Sep 12, 2005 2:46 am Reply with quote

Here is the one I am currently using as I have found this one the most flexible of all the ones I have looked at.
www.guildofsecurity.co.uk/rdf-nuke.txt
Simply copy the text into a file called rdf-nuke.php and upload to your nuke root directory.

With this file you can specify how many posts to view, from which forums etc simply by adding or changing the paremeters under which the file is called.
I found it particularly useful for adding feeds from individual forums for others to syndicate.
You can see how I have implemented, quite simply, a feed from each of my forums here
http://www.guildofsecurity.co.uk/modules.php?name=Forums
by inserting an small graphic with the link and appropriate paremeters in the forum description.


As an example of what can be achieved, here is an excerpt from the file itself
Quote:

You can specify the number of posts via the url parameter count:
*
* http://www.domain.com/php-nuke/rdf-nuke.php?count=50
*
* This will result in an RDF file with the latest 50 posts from
* all your forums.
*
* You can also specify to look only at a specified forum using the
* fid parameter:
*
* http://www.domain.com/php-nuke/rdf-nuke.php?fid=9
*
* This will result in an RDF file with the latest 10 posts from
* your forum with the id 9.
*
* You can also mix the paramters:
*
* http://www.domain.com/php-Nuke/rdf-nuke.php?fid=5&count=3
*
* will show you the latest 3 posts from forum 5.
*
* THIS SCRIPT WILL ONLY SHOW POSTS FROM PUBLIC FORUMS
 
View user's profile Send private message Send e-mail
Susann







PostPosted: Mon Sep 12, 2005 4:32 am Reply with quote

My modified rss file won´t work with any other forums Therefore it´s better you ask dari from nukedgallery.net
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©