Topic: rss.php problems

I have put together a suite of applicaitons that require rss feeds. PunBB is perfect for the suite but I can not find a way to get the feed to work. I am using phpBB instead... not my first choice... but after lurking this board for many months hoping for a solution, it does not seem to come up.

When I run the file I get a parse error on line 90. Is there anyone working on rss for PunBB? Any help would be appreciated. There is a demo of the suite at www.backchannel.ca.
Thanks

Re: rss.php problems

So... what's the issue with the RSS that you're having?

Re: rss.php problems

simply to set up an rss feed that can be linked to by RSSOwl. phpBB has a file that when placed in the root provides the feed. When I try to use the script that is on this board and save it etc. I can not get it to run.... there seems to be an error on lin 90 which is a series of symbols.

Re: rss.php problems

You mean with extern.php?

Re: rss.php problems

no with rss.php... should I be linking to extern,php?

Re: rss.php problems

PunBB has no file called rss.php: extern.php outputs rss. Check out the sourcecode of it.

Re: rss.php problems

This is pretty amazing. The source that I had found on the board searching rss feed was:
"**
  * BLOG:CMS: PHP/MySQL Personal Content Management System
  * http://blogcms.com/
  * http://forum.blogcms.com/
  *
  * 2003-2004, (c) Radek HULAN
  * http://hulan.info/
  *
  * 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, or (at your option) any later version.
**/


which was really frustrating me. I still went ahead and recommended punBB on our www.zedfiles.com site as one of the two forums for our complulation.

If this works it is good news... the less than good news is that I willl have to tear the whole thing apart since it was launched yesterday... but it would be worth it. Did you have time to see the site????

8

Re: rss.php problems

extern.php can output an rss feed:

Output the 15 most recently active topics:
http://host.com/extern.php?action=active&type=RSS

Output the 15 newest topics from forum with ID=2:
http://host.com/extern.php?action=active&type=RSS&fid=2

rss.php was a mod made by Radek Hulan, I don't know if it works with PunBB 1.2.1 but it might.

9 (edited by Smartys 2005-02-23 01:13)

Re: rss.php problems

Yeah, it looks good.
I just took a look at what you're talking about. The fix is:

Change line 90 to

        $entities_decimal     = array(" ","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","¬","­","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É"," ","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","\"","&","<",">","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","'");

The guy didn't escape a " properly: that line has it fixed

10

Re: rss.php problems

ridgewood,

Interesting project you got going on, this is for Intranets?

You're using the same projects that I've standardized on.

When can I get a CD?

Re: rss.php problems

Well the first thing now is to tear it apart and get punBB in. I thought that I had it baked sad

I saw NuPusi for the first time tonight. It is amazing that one can work at something ang then one day the same thing pops up. Anyhow, it is for intranets and for Private Networks and runs on WAMP...  The ZedFiles was the first project... has all of the library... it all started because we are a charity and this was a way to get good technology into the hands of folks that do not have hi-speed. If you have the zedfiles then you could pick something like Mambo and run it as a whole portal or whatever.... the major thing is that everything is preconfigured so you just frag and drop from the cd and start the services.

Email me off line and we can work out getting you a complete cd.

I really appreciate your help... now I need to figure out which rss file to use... Smartys fix really did fix it.

Re: rss.php problems

hehe, syntax highlighting is a great tool for debugging smile

Re: rss.php problems

really cool.... especially when you have notepad2.... what a quick fix.... thank you

Re: rss.php problems

No problem smile

15

Re: rss.php problems

I'm confused. What does rss.php do that PunBB's built-in RSS generator (extern.php) doesn't do?

Re: rss.php problems

I think it is about simplicity. Last night I spent a fair bit of time linking RSSOwl and the extern.php. There is no doubt that it is much more flexible and for boards that have large volumes it helps cut down on a lot of unwanted feeds. Unless I am missing something (which is possible since they could use my head for a tank trap when it comes to coding) getting the right url feed is very difficult. With the rss.php feed in phpBB it is a simple link.

That being said, the rss.php file that we were working on last night still is buggy. The parsing failure began to cascade .... started with line 90 and now it is 96 or something like that... I have not seen a line so long in a php file before.... I suspect it is over 256 characters... or something like that...I had to delete some segments to get notepad2 to see the end of the line, and then paste back in.

Later today I will try to work on it and get back to the board before I leave tonight.

Re: rss.php problems

Spent a lot of time and had some great input from others.

It will depend on the objectives of the "site" pun is used on. If it is high traffic, syndicaiton may not be a high priority... other than as a front page summary... if it is used for dialogue especially on an internal net then it is a different story.

Anyhow, the rss.php script found on the board through using "rss syndication" as a search term brings up a file that is not part of core for punBB. So, that is where the confusion is. Until there is an alternative Justine, I would suggest that you focus on extern.php.

18

Re: rss.php problems

The rss.php file now works with PunBB 1.2.1:
http://punbb.org/forums/viewtopic.php?pid=35560#p35560