RSS feed creation for whole Phorum

Posted by Brian Moon 
Re: RSS feed creation for whole Phorum
January 11, 2005 12:34PM
hi
for me, it doesn't work, i have this message :

Warning: fopen(/tmp/tpl-eugenol-footer-b43d6b9e02da8ac3a73a24a765ddaa56.php): failed to open stream: Permission denied in /home/hoderaz/public_html/forum/include/templates.php on line 188

could you help me ?
Re: RSS feed creation for whole Phorum
January 12, 2005 04:16PM
Odd, the rss script does not include the footer. Not sure where that came from.

Brian - Personal Blog
Re: RSS feed creation for whole Phorum
January 13, 2005 02:15AM
I get this error message when i try to browse rss.php (for troubleshooting reasons):

XML Parsing Error: xml processing instruction not at start of external entity
Location: [happymtb.org]
Line Number 2, Column 1:
<?xml version="1.0" ?>
^


RSS readers can not load the feed.

The Phorum uses mod_rewrite to get url:s like http://happymtb.org/forum/list.php/1 instead of http://happymtb.org/forum/list.php?1 and I suspect this is why it doesn't work?

I used the rss.zip from the first post.

I have not attached the example.php code to my footer.tpl yet.
Re: RSS feed creation for whole Phorum
January 19, 2005 11:39PM
How to convert Phorum bbCode to html?
It isn't suitable to read Phorum feeds with [ b ]'s [ img ]'s [ quote ]'s etc...

Thanks!
Re: RSS feed creation for whole Phorum
January 20, 2005 02:45PM
jomper Wrote:
-------------------------------------------------------
> I get this error message when i try to browse
> rss.php (for troubleshooting reasons):
>
> XML Parsing Error: xml processing instruction not
> at start of external entity
> Location:
> Line Number 2, Column 1:
> <?xml version="1.0" ?>
> ^

You have a newline at the first of your document that is generated. Check our source for some errant newline.

Brian - Personal Blog
Re: RSS feed creation for whole Phorum
January 20, 2005 02:50PM
Hi - wanted to let you know that the code worked perfectly here - just dropped right in. The only thing I noticed, an admittedly obscure case, was that I get an error "Notice: Undefined variable: items in c:\apache\htdocs\asite\phorum\rss.php on line 89" if I try to pull the RSS feed for a completely empty forum. Thanks for sharing the nice work!
Sep
Re: RSS feed creation for whole Phorum
March 06, 2005 04:52AM
Nice module, works very well. Just one question - how hard would it be to make it parse forum code into html - like links made with [ url ]-tag, images and such?
Re: RSS feed creation for whole Phorum
March 07, 2005 10:26AM
Just call phorum_format_messages(). Let us know if that works out.

Brian - Personal Blog
Sep
Re: RSS feed creation for whole Phorum
March 10, 2005 05:24AM
I replaced this:

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

With this:

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

I also tried it with format messages inside htmlspecialchars - doesn't seem to work - I'm php challenged, so I might've gotten that worng...
Re: RSS feed creation for whole Phorum
March 10, 2005 06:49AM
phorum_format_messages requires an array to work with.


Thomas Seifert
Sorry, only registered users may post in this forum.

Click here to login