[ABD]simple rss mod for phpbb3

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
manchumahara
Registered User
Posts: 65
Joined: Sun Jul 15, 2007 2:07 pm
Location: Bangladesh

[ABD]simple rss mod for phpbb3

Post 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)
Last edited by manchumahara on Sat Sep 20, 2008 6:36 am, edited 9 times in total.
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28851
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Re: simple rss mod for phpbb3

Post 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
User avatar
PatPatten
Registered User
Posts: 56
Joined: Thu Dec 07, 2006 10:29 pm
Location: Sittard - Netherlands

Re: simple rss mod for phpbb3

Post 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
StarTrekGuide Forum Moderation Team Member
phpBB3 MODs and Styles Development - Olympus MOD Database - phpBB programming Academy
User avatar
manchumahara
Registered User
Posts: 65
Joined: Sun Jul 15, 2007 2:07 pm
Location: Bangladesh

Re: [Dev]simple rss mod for phpbb3

Post 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.
pinkfloyd_360
Registered User
Posts: 1
Joined: Tue Feb 19, 2008 1:03 am

Re: [Dev]simple rss mod for phpbb3

Post 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.
User avatar
manchumahara
Registered User
Posts: 65
Joined: Sun Jul 15, 2007 2:07 pm
Location: Bangladesh

Re: [Dev]simple rss mod for phpbb3

Post 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. :(.
User avatar
NeXur
Registered User
Posts: 23
Joined: Wed Jan 16, 2008 8:41 am

Re: [Dev]simple rss mod for phpbb3

Post 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:
User avatar
NeXur
Registered User
Posts: 23
Joined: Wed Jan 16, 2008 8:41 am

Re: [Dev]simple rss mod for phpbb3

Post 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');
User avatar
manchumahara
Registered User
Posts: 65
Joined: Sun Jul 15, 2007 2:07 pm
Location: Bangladesh

Re: [Dev]simple rss mod for phpbb3

Post 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.
User avatar
NeXur
Registered User
Posts: 23
Joined: Wed Jan 16, 2008 8:41 am

Re: [Dev]simple rss mod for phpbb3

Post 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...
User avatar
manchumahara
Registered User
Posts: 65
Joined: Sun Jul 15, 2007 2:07 pm
Location: Bangladesh

Re: [Dev]simple rss mod for phpbb3

Post 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.
raymond4000
Registered User
Posts: 1
Joined: Tue Feb 26, 2008 3:35 am

Re: [Dev]simple rss mod for phpbb3

Post 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
darylt
Registered User
Posts: 151
Joined: Mon Jul 12, 2004 10:00 pm

Re: [Dev]simple rss mod for phpbb3

Post by darylt »

Is there a way to add an RSS link and image in the menu at the top of the forum?
User avatar
NeXur
Registered User
Posts: 23
Joined: Wed Jan 16, 2008 8:41 am

Re: [Dev]simple rss mod for phpbb3

Post 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
Last edited by NeXur on Sat Mar 01, 2008 10:47 am, edited 1 time in total.
darylt
Registered User
Posts: 151
Joined: Mon Jul 12, 2004 10:00 pm

Re: [Dev]simple rss mod for phpbb3

Post by darylt »

Thats great thanks!

Return to “[3.0.x] Abandoned MODs”