RSS feed creation for whole Phorum

Posted by Brian Moon 
Re: RSS feed creation for whole Phorum
November 08, 2004 03:30PM
Hi,
I like this feature very much.
As I'm not so familiar with RSS, maybe it's wrong what I'm thinking:

Don't you need an encoding-attribute in the first line of the feed like

<?xml version="1.0" encoding="ISO-8859-1"?>

For my phorum it works better, because there are many german umlauts, which are displayed as ? in Thunderbird, when the encoding is missing.

Also I added nl2br to the following line:

$data.="      <description><![CDATA[".nl2br(htmlspecialchars($item['description']))."]]></description>\n";

The text is more readable when there are linebreaks, especially when forum messages contain quotes.

--
Clemens Weiß
Webplain.de
Re: RSS feed creation for whole Phorum
November 08, 2004 04:27PM
> The text is more readable when there are
> linebreaks, especially when forum messages contain
> quotes.

What are you using to read it that does not respect the newlines?

Brian - Personal Blog
Re: RSS feed creation for whole Phorum
November 09, 2004 02:45AM
Thunderbird 0.9

--
Clemens Weiß
Webplain.de
Re: RSS feed creation for whole Phorum
November 10, 2004 06:44PM
ts77 Wrote:
-------------------------------------------------------
> open it i.e. in firefox and that will tell you
> whats wrong

Okay, now it says: "Warning: Invalid argument supplied for foreach() in /www/mysite/html/board/rss.php on line 46"

This is line 46:
foreach($rows as $key => $row){

Re: RSS feed creation for whole Phorum
November 11, 2004 04:31AM
so how are you calling the script? it gets no data for the arguments supplied.


Thomas Seifert
Re: RSS feed creation for whole Phorum
November 14, 2004 10:17PM
ts77 Wrote:
-------------------------------------------------------
> so how are you calling the script? it gets no data
> for the arguments supplied.

Hmm, for that particular error, I used IE. When I open the link in Firefox it says "this XML file does not appear to have any style information associated with it." but it displays the document tree.

Here is the link: [christiantolkienfans.com]
Re: RSS feed creation for whole Phorum
November 15, 2004 02:13AM
the forums are not readable for unregistered users so the rss-script gets no data.


Thomas Seifert
Re: RSS feed creation for whole Phorum
November 15, 2004 10:13AM
Hi,

i get an error, if the forum only for registered users:
Warning: Invalid argument supplied for foreach() in /home/web/phorum/rss.php on line 46

See here:
[spec-f.de]

Click the rss button, please and see.


Best Regards,

Stoebi
Re: RSS feed creation for whole Phorum
November 15, 2004 10:16AM
yeah, you can't read the messages if you are not logged in, therefore the rss-script can't read it too.

thats the same I posted 2 posts above in this same thread.


Thomas Seifert
Re: RSS feed creation for whole Phorum
November 15, 2004 10:21AM
Yes, i understand it, but i think, the warning should not displayed, it should be fixed, please.


Regards, Stoebi



Edited 1 time(s). Last edit at 11/15/2004 10:23AM by Stoebi.
Sorry, only registered users may post in this forum.

Click here to login