Page 1 of 13

[ABD]simple rss mod for phpbb3

Posted: Wed Feb 06, 2008 5:35 pm
by manchumahara
MOD Title: Simple RSS mod for phpBB3

MOD Description: Will enable you to put a RSS feed on your phpBB3 Forum.
This rss2 feed mod show only those posts that the viewer have read authentication for.
That means you do not need to think about the posts of yours that has no access for normal user and bot etc.

MOD Version: 1.0.5 [updated 20.09.08]
Installation Level: Easy
Installation Time: 1 minutes
phpBB Version: 3.0.0 Gold or later
Styles: prosilver
Translations: English
MOD Format: MODX and MOD
MOD Download: download link

Change log:20.09.08
  1. Fixed for feed validation error for relative path problem.
  2. Fixed for xml compatible issue for inline java script (Feed validation error)

Re: simple rss mod for phpbb3

Posted: Wed Feb 06, 2008 7:34 pm
by Paul
Hello,

Please edit your topic title with a prefix as outlined in Modifications Development Forum Rules, section 3.a. This will allow people to see the development status of your modification at a glance.

Thank you,
The phpBB Modifications Team

Re: simple rss mod for phpbb3

Posted: Wed Feb 06, 2008 9:30 pm
by PatPatten
Hi,

Works on my forum, but in the http://feedvalidator.org/ it gives quite some errors. Maybe you can iron out the errors in the file using this feed validator.


- Patricia

Re: [Dev]simple rss mod for phpbb3

Posted: Thu Feb 07, 2008 6:46 pm
by manchumahara
Some validation error are for unicode . As I have converted the date and time of my forum into my local language...Actually I can see the feed clearly using google reader and even in wordpress. So Any one can use it in his/her forum without any tension.

Re: [Dev]simple rss mod for phpbb3

Posted: Tue Feb 19, 2008 1:10 am
by pinkfloyd_360
Hi,

I installed the file and when I point to it I get only the header with no listing. I was reading the code and I saw a call to $auth->actl_get('f_read',$forumid)). I assume that this call is to check the permission set on each forum before fetching the data from the database.

If this is correct, then the problem that I have is my forums can't be viewed unless a user is logged on. How can I get the RSS feed to work in this case?

For example, if I negate the previous call (added a "!"), I can see the latest items listed in the feed page.

Thanks in advance.

Re: [Dev]simple rss mod for phpbb3

Posted: Tue Feb 19, 2008 4:32 am
by manchumahara
pinkfloyd_360 wrote:Hi,

I installed the file and when I point to it I get only the header with no listing. I was reading the code and I saw a call to $auth->actl_get('f_read',$forumid)). I assume that this call is to check the permission set on each forum before fetching the data from the database.

If this is correct, then the problem that I have is my forums can't be viewed unless a user is logged on. How can I get the RSS feed to work in this case?

For example, if I negate the previous call (added a "!"), I can see the latest items listed in the feed page.

Thanks in advance.
I think u r wrong. My mod shows posts from the forum in which any one have at least read access. That means if any guest can see post of any forum then the rss mod will give feed from this. I think there is no forum in your board which has guest access, am I right ? that means if any one want to see any post in your site then he has to register and login. In that case My mod will not work. :(.

Re: [Dev]simple rss mod for phpbb3

Posted: Tue Feb 19, 2008 12:42 pm
by NeXur
Great and simple! just copy it to forumroot and browse to it...
Ran it in the validater linked above and fixed it for validation on my site.

1. ACP/General/Board Settings/Date Format : D, d M Y g:i O
2. Edit aprss2main.php :
Find:

Code: Select all

<rss version=\"2.0\">
Replace with:

Code: Select all

<rss version=\"2.0\"  xmlns:atom=\"http://www.w3.org/2005/Atom\">
Find:

Code: Select all

<managingEditor>".$config['board_email']."</managingEditor>
Replace with:

Code: Select all

<managingEditor>".$config['board_email']." (".$config['sitename']." Admin)</managingEditor> 
<atom:link href=\"".$base_url."aprss2main.php\" rel=\"self\" type=\"application/rss+xml\" />
(if you renamed the aprss2main.php file also rename it on the last editline)
http://www.mybikegarage.com/phpBB3/rss.php :mrgreen:

Re: [Dev]simple rss mod for phpbb3

Posted: Wed Feb 20, 2008 8:49 pm
by NeXur
One more edit to get rid of the "Feeds should not be served with the "text/html" media type" recommendation from http://feedvalidator.org
Find:

Code: Select all

$rss_result = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
Before add:

Code: Select all

header('Content-type: application/rss+xml; charset=UTF-8');

Re: [Dev]simple rss mod for phpbb3

Posted: Fri Feb 22, 2008 4:52 am
by manchumahara
Thanx NeXur.
Actually I am not getting much time to work on it but it's 100% sure that this mod will work.
Thanx again.

Re: [Dev]simple rss mod for phpbb3

Posted: Fri Feb 22, 2008 12:07 pm
by NeXur
No problems manchumahara.
I found this one very simple to implement and it worked as a threat right on!
If you want, i can make a modx file package for you and PM it...

Re: [Dev]simple rss mod for phpbb3

Posted: Mon Feb 25, 2008 8:42 am
by manchumahara
NeXur wrote:No problems manchumahara.
I found this one very simple to implement and it worked as a threat right on!
If you want, i can make a modx file package for you and PM it...
wow. it will be great. if u have time then u can make a modx version for this. i have no problem. thanx in advance NeXur.

Re: [Dev]simple rss mod for phpbb3

Posted: Tue Feb 26, 2008 3:41 am
by raymond4000
Thanks!

This worked great. Only problem I have now is I am using the phpbb3 seo and all my links are .html

It would be nice if I can find a way to keep the links in .html format from the feed. Anyone know how I can do this? Any input appreciated.

Raymond

Re: [Dev]simple rss mod for phpbb3

Posted: Wed Feb 27, 2008 11:53 pm
by darylt
Is there a way to add an RSS link and image in the menu at the top of the forum?

Re: [Dev]simple rss mod for phpbb3

Posted: Thu Feb 28, 2008 12:10 am
by NeXur
darylt wrote:Is there a way to add an RSS link and image in the menu at the top of the forum?
Offcourse there is!
save this image to styles/prosilver/theme/images/icon_rss.gif (rigth-click/save picture as)
Image

open:
styles/prosilver/templates/overall_header.html
find:

Code: Select all

<ul class="linklist rightside">
After add:

Code: Select all

<li><a href="aprss2main.php" title="RSS Feed"><img src="{T_THEME_PATH}/images/icon_rss.gif"> RSS</a></li>
Note: if you have/going to rename rename aprss2main.php then replace with the same name here

Re: [Dev]simple rss mod for phpbb3

Posted: Thu Feb 28, 2008 8:25 am
by darylt
Thats great thanks!