[RC1]simple rss mod for phpbb3

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!

[RC1]simple rss mod for phpbb3

Postby manchumahara » Wed Feb 06, 2008 5:35 pm

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

Re: simple rss mod for phpbb3

Postby Paul » Wed Feb 06, 2008 7:34 pm

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
Donate to me
Contact me in private for reasonable rated custom jobs.
User avatar
Paul
Support Team Member
Support Team Member
 
Posts: 11149
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.

Re: simple rss mod for phpbb3

Postby PatPatten » Wed Feb 06, 2008 9:30 pm

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

Re: [Dev]simple rss mod for phpbb3

Postby manchumahara » Thu Feb 07, 2008 6:46 pm

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

Re: [Dev]simple rss mod for phpbb3

Postby pinkfloyd_360 » Tue Feb 19, 2008 1:10 am

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

Re: [Dev]simple rss mod for phpbb3

Postby manchumahara » Tue Feb 19, 2008 4:32 am

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

Re: [Dev]simple rss mod for phpbb3

Postby NeXur » Tue Feb 19, 2008 12:42 pm

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

Postby NeXur » Wed Feb 20, 2008 8:49 pm

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

Re: [Dev]simple rss mod for phpbb3

Postby manchumahara » Fri Feb 22, 2008 4:52 am

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

Re: [Dev]simple rss mod for phpbb3

Postby NeXur » Fri Feb 22, 2008 12:07 pm

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

Re: [Dev]simple rss mod for phpbb3

Postby manchumahara » Mon Feb 25, 2008 8:42 am

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

Re: [Dev]simple rss mod for phpbb3

Postby raymond4000 » Tue Feb 26, 2008 3:41 am

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

Re: [Dev]simple rss mod for phpbb3

Postby darylt » Wed Feb 27, 2008 11:53 pm

Is there a way to add an RSS link and image in the menu at the top of the forum?
darylt
Registered User
 
Posts: 142
Joined: Mon Jul 12, 2004 10:00 pm

Re: [Dev]simple rss mod for phpbb3

Postby NeXur » Thu Feb 28, 2008 12:10 am

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

Re: [Dev]simple rss mod for phpbb3

Postby darylt » Thu Feb 28, 2008 8:25 am

Thats great thanks!
darylt
Registered User
 
Posts: 142
Joined: Mon Jul 12, 2004 10:00 pm

Next

Return to [3.0.x] MODs in Development

Who is online

Users browsing this forum: ^[GS]^, Balsa, jrolson, MatteoMWP, novanilla, RMcGirr83, Samanthavv, soumik, trickymicky and 31 guests