RSS backend.php and backendforums.php

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   RSS backend.php and backendforums.php
lumax
CZ Super Newbie
usa.gif alaska.gif
Gender: Male
Status: Offline
Joined: Nov 14, 2003
0.01 posts per day
Posts: 60
Points: 3,953
   
I have successfully linked to my backend.php file on other sites but am having problems getting the backendforums.php to work. The forums will display in a block but the links to the forum postings yield a 404 page.

This is my backendforums.php file:

<?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/ftopic$topic_id.html</link>\n";
         echo "</item>\n\n";
        }
   echo "</channel>\n";
        echo "</rss>";
    }

?>


My site is at [ Register or login to view links on this board.]

Any ideas?


Back to top Reply with quote
#2   re: RSS backend.php and backendforums.php
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Are you using Google Tap? This is what you have for your links

$nukeurl/ftopic$topic_id.html


If not then you will need to change that to

$nukeurl/modules.php?name=Forums&file=viewtopic&t=$topic_id




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: RSS backend.php and backendforums.php
lumax
CZ Super Newbie
usa.gif alaska.gif
Gender: Male
Status: Offline
Joined: Nov 14, 2003
0.01 posts per day
Posts: 60
Points: 3,953
   
Another fix........thanks Teli! Was able to link to backendforums.php successuflly however, when I bring it up on my own site I get this:


The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

A semi colon character was expected. Error processing resource 'http://alaskandog.com/ipw-web/portal/cms/backendforums.php'. Line 16, Position 76

<link>http://alaskandog.com/ipw-web/portal/cms/modules.php?name=Forums&file=viewtopic&t=251</link>
---------------------------------------------------------------------------^



Should I be concerned?



Back to top Reply with quote
#4   re: RSS backend.php and backendforums.php
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
What semicolon does it see? I dont see it can you paste where the error is.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum