[RC] Easy RSS Atom 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!
Get Involved
Locked
polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

[RC] Easy RSS Atom mod for phpBB3

Post by polov » Tue Feb 12, 2008 9:45 am

Hi all,

maybe you will find it usefull. Not too far when I was looking about some easy install rss mod for phpBB3 but no works well or was too complicated to install. This motivate me to do easy mod by myself.

I takes the latest messages on board and put into rss. should be valid. There are two files in zip - .php one that should go to phpbb root and .html one that should go to your styles/tempates directory. In .php file there is some settings like board URL, count of news put to rss or image size. Feel free to set it up, it is not hard to understand what means what.

It uses only phpBB3 functions, checks if user has rights to read the news, and works for me for more then month without problem. Feed should be valid Atom, if I havent do some bug lately :)

So no warranty from me, files are on http://www.operacesky.net/rss_mod-20090502.zip

2009-05-02
Added possibility to fetch only first post of the topic - good for any news topics where it is not needed to fetch also comments for the news...Parameter name is 'firstonly' and it is intended to work the same way as parameter 'forums'.

2008-08-04
Should be fixed bug regarding   marks as stated in http://www.phpbb.com/community/viewtopi ... &e=6487155 .

2008-07-22
Fixed sql query, should ork again.

2008-05-30
fixes presented in that topic included

2008-02-16
fixed MySQL exception, thanks to jaymcgavren
- http://www.phpbb.com/community/viewtopi ... 5#p4322065

2008-02-14
fixed $topic_id bug ($HTTP_SERVER_VARS issue)

2008-02-12
forums parameter added
- syntax rss.php?forums=1 or rss.php?forums=1,2,3 for more than one forum
- if there is no parameter, it takes all forums

2008-02-11
initial version
Last edited by polov on Sat May 02, 2009 3:07 pm, edited 13 times in total.

ecwpa
Registered User
Posts: 107
Joined: Thu Sep 25, 2003 2:13 am
Contact:

Re: [BETA] Easy RSS/Atom mod

Post by ecwpa » Tue Feb 12, 2008 3:02 pm

wow, really nice and easy to use! thanks


my only request would be the hability to choose wich forums to be part of the feeds, apart of that, its great!
carefull, not english speaker native here

polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

Re: [BETA] Easy RSS/Atom mod

Post by polov » Tue Feb 12, 2008 3:18 pm

ok. stay tuned, maybe i will add it today evening ;-) I have not supposed it is so iportant feature.

ghettowboy
Registered User
Posts: 216
Joined: Tue Jun 12, 2007 3:53 pm

Re: [BETA] Easy RSS/Atom mod

Post by ghettowboy » Tue Feb 12, 2008 4:19 pm

can we get some screen shots of how this looks?

User avatar
Raimon
Former Team Member
Posts: 12089
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [BETA] Easy RSS/Atom mod

Post by Raimon » Tue Feb 12, 2008 5:04 pm

I suggest to change the

Code: Select all

$HTTP_SERVER_VARS
MODs doc wrote: 3.4.1. User input

request_var($var_name, $default, $multibyte = false, $cookie = false)

PhpBB3 introduces a new way for reading variables from the request: therequest_var function. The function ensures that the read variable is of the right type and applies the appropriate treatment to ensure a secure use. So, instead of using the old php arrays like $HTTP_POST_VARS and $HTTP_GET_VARS, the function request_var should be used. It is permissible to use -- for instance -- $_POST to check whatever or not a var was submitted by a given method, but such parameters should never be assigned directly. Every string returned is already stripslashed (if needed) and htmlspecialchars run on it.
It's not very safe to use the HTTP_POST_VARS ;)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

Re: [BETA] Easy RSS/Atom mod

Post by polov » Tue Feb 12, 2008 6:27 pm

it is running on operacesky.net forum: http://www.operacesky.net/forum/rss.php

ecwpa
Registered User
Posts: 107
Joined: Thu Sep 25, 2003 2:13 am
Contact:

Re: [BETA] Easy RSS/Atom mod

Post by ecwpa » Tue Feb 12, 2008 7:25 pm

just noticed, replies are shown as "Re: Topic title" always, even if you decide to change the reply subject
carefull, not english speaker native here

polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

Re: [BETA] Easy RSS/Atom mod

Post by polov » Tue Feb 12, 2008 10:05 pm

ecwpa wrote:just noticed, replies are shown as "Re: Topic title" always, even if you decide to change the reply subject
Yes. It is easier for orientation in topics.

User avatar
Andrew Clarkson
Registered User
Posts: 244
Joined: Wed Dec 10, 2003 6:05 pm
Location: Morecambe, England, UK
Contact:

Re: [BETA] Easy RSS/Atom mod

Post by Andrew Clarkson » Wed Feb 13, 2008 1:27 pm

polov wrote:ok. stay tuned, maybe i will add it today evening ;-) I have not supposed it is so iportant feature.
I too would really appreciate that, we have parts of the forum that are largely irrelevant to the them of the forum, and to be able to syphon those out would be great, thanks!

Cool mod, easy to install, thanks!
Andrew Clarkson

Titanic Titanic

polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

Re: [BETA] Easy RSS/Atom mod

Post by polov » Wed Feb 13, 2008 1:55 pm

forums selection has been added, check the first post...

User avatar
Andrew Clarkson
Registered User
Posts: 244
Joined: Wed Dec 10, 2003 6:05 pm
Location: Morecambe, England, UK
Contact:

Re: [BETA] Easy RSS/Atom mod

Post by Andrew Clarkson » Wed Feb 13, 2008 2:03 pm

polov wrote:forums selection has been added, check the first post...
Right - I'm trying just to use my new forum for the feed, however, it doesn't seem to be working right, it's still pulling all of the forum into the feed.

I want to use the following;

http://www.titanic-titanic.com/forum/rss.php?forums=48

TYIA!
Andrew Clarkson

Titanic Titanic

ecwpa
Registered User
Posts: 107
Joined: Thu Sep 25, 2003 2:13 am
Contact:

Re: [BETA] Easy RSS/Atom mod

Post by ecwpa » Wed Feb 13, 2008 2:28 pm

polov wrote:
ecwpa wrote:just noticed, replies are shown as "Re: Topic title" always, even if you decide to change the reply subject
Yes. It is easier for orientation in topics.
yeah , but some forums have topics constantly updating, with diferent post subjects, ie a topic called mIRC, then a reply called mIRC 3.5 released!
carefull, not english speaker native here

dicks
Registered User
Posts: 75
Joined: Wed Jun 01, 2005 8:01 am

Re: [BETA] Easy RSS/Atom mod

Post by dicks » Wed Feb 13, 2008 9:01 pm

Hi, works really well and totally easy to install. Looking foward to further releases.

DickS


PS: Whats the issue with the HTTPS mentioned earlier?

donjulio
Registered User
Posts: 6
Joined: Fri Feb 03, 2006 11:38 am
Contact:

Re: [BETA] Easy RSS/Atom mod

Post by donjulio » Thu Feb 14, 2008 12:07 pm

Hi, nice mod. Works well. I've been using it with RRS bandit aggregator.

Is there a way to make the RSS icon appear in the address bar and allow users to subscribe to the feed via this?

Thanks

polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

Re: [BETA] Easy RSS/Atom mod

Post by polov » Thu Feb 14, 2008 1:18 pm

donjulio wrote: Is there a way to make the RSS icon appear in the address bar and allow users to subscribe to the feed via this?
Put inside <head></head>

Code: Select all

<link rel="alternate" type="application/rss+xml" title="Prohlížeč Opera česky" href="URL_TO_YOUR_RSS" />

Locked

Return to “[3.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 24 guests