[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!
Ideas Centre
jeremyotten
Registered User
Posts: 145
Joined: Fri Mar 15, 2002 1:54 pm
Location: The Netherlands
Contact:

Re: [RC] Easy RSS Atom mod for phpBB3

Post by jeremyotten »

Does this mod support HTTP authentication so you can read none public RSS feeds
polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

Re: [RC] Easy RSS Atom mod for phpBB3

Post by polov »

This mod uses phpBB authentication - access rules to the rss feeds are checked against the phpBB forum rights.
jeremyotten
Registered User
Posts: 145
Joined: Fri Mar 15, 2002 1:54 pm
Location: The Netherlands
Contact:

Re: [RC] Easy RSS Atom mod for phpBB3

Post by jeremyotten »

I understand but whill it work with http authentication and a desktop reader like for example newsgator?
polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

Re: [RC] Easy RSS Atom mod for phpBB3

Post by polov »

It will work with any rss reader.
Necromancyr
Registered User
Posts: 11
Joined: Wed Jul 23, 2008 4:08 pm

Re: [RC] Easy RSS Atom mod for phpBB3

Post by Necromancyr »

Hrm...actually his question is how do you pass the information for the login to PHP so that it grabs the correct posts. In a non-public forum it shows nothing if not logged in - I'm assuming it uses cookie information to grab the listings.

Basically...is there a way to call Phpbb that logs you in or authenticates?

So, http://name:Pass:forums.com/rss.php
polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

Re: [RC] Easy RSS Atom mod for phpBB3

Post by polov »

I personaly use browser as rss reader (Opera), haven't touch the problem with authentication yet (in rss.php yet). But if somebody will need it, I can spend a couple of time on it...
Necromancyr
Registered User
Posts: 11
Joined: Wed Jul 23, 2008 4:08 pm

Re: [RC] Easy RSS Atom mod for phpBB3

Post by Necromancyr »

I think for private forums it's basically a necessity...I was looking over the coding and am not totally sure how you would do it securely...possibly pass the username and password as a argument but that would really be insecure...
polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

Re: [RC] Easy RSS Atom mod for phpBB3

Post by polov »

I think there is no way to do it different way than put it inside URL.
berthaboy
Registered User
Posts: 2
Joined: Mon Feb 23, 2009 3:06 pm

Re: [RC] Easy RSS Atom mod for phpBB3

Post by berthaboy »

Could you use $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] to grab http auth credentials (presented by many feed readers) and use these within the script to log the user on?

I've got the problem at the moment that most of my users use RSS readers such as Feedreader - that can't cope with phpBB3's cookie-based authentication (nor should it have to). However, it can deliver http auth credentials that your script could prompt for (send a WWW-Authenticate: Basic header first), then intercept and use to log the user on in order to generate the RSS.

I'm afraid I don't have the expertise to do this (I've just tried, and I'm getting pretty hopelessly lost), but it would be great if someone else out there could help!
Necromancyr
Registered User
Posts: 11
Joined: Wed Jul 23, 2008 4:08 pm

Re: [RC] Easy RSS Atom mod for phpBB3

Post by Necromancyr »

Should be fairly straightforward I would think to pass them to the site...but I think it would still need to be done plaint text and cause that security issue.
berthaboy
Registered User
Posts: 2
Joined: Mon Feb 23, 2009 3:06 pm

Re: [RC] Easy RSS Atom mod for phpBB3

Post by berthaboy »

Anyone using http auth on a non-https server should be well aware that the "security" is little more than a veil to a dedicated snooper, but the point is that RSS readers on the whole can't use cookie-based authentication, which severely limits the usefulness of this mod on boards that have user permissions for different forums - if you're forced to do RSS through your browser then you may as well just click on "View latest posts"...

I've tried doing something like (can't remember the exact syntax at the moment):

Code: Select all

$auth->login($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'], false, 0, 0);
I'd be glad if someone might have the time and expertise to get this working.
User avatar
Pouzy
Registered User
Posts: 35
Joined: Wed Dec 29, 2004 9:56 am
Location: France
Contact:

Re: [RC] Easy RSS Atom mod for phpBB3

Post by Pouzy »

When I launch the rss page, my mysql charge explodes, and the site freeze, I have to reboot the mysql server...

Did anyone ever faced that ?

Thanks !
sudanese online
Registered User
Posts: 48
Joined: Sat May 02, 2009 1:58 am
Location: Rochester, MN

Re: [RC] Easy RSS Atom mod for phpBB3

Post by sudanese online »

Since Last Night Rss.php is not working anymore
Last edited by camm15h on Sat May 02, 2009 12:28 pm, edited 1 time in total.
Reason: Removed large font.
polov
Registered User
Posts: 27
Joined: Tue Feb 12, 2008 8:50 am

Re: [RC] Easy RSS Atom mod for phpBB3

Post by polov »

sudanese online wrote:Since Last Night Rss.php is not working anymore
It means blank page? Error message displayed?....
sudanese online
Registered User
Posts: 48
Joined: Sat May 02, 2009 1:58 am
Location: Rochester, MN

Re: [RC] Easy RSS Atom mod for phpBB3

Post by sudanese online »

polov wrote: It means blank page? Error message displayed?....

Error message displayed
Internet Explorer cannot display this feed

This feed contains code errors.
http://www.sudaneseonline.org/forum/rss.php
Locked

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