UseBB Community

The official board for UseBB help and discussion

UseBB Community » Resources & Customization » Allow guests to read RSS feed

Allow guests to read RSS feed

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: Oct 2006
Posts: 37
Hi.
I have problem with my rss feed on my forum. I can view that in browser without any problems, but when I try to validate rss feed or try parse headings in my website then I get a error that says 404.

I am sure this error is not on server. Because I already have tried to move my forum software in 2 different servers.

Here is my rss feed: http://admintalk.vaanam.dk/rss.xml

Feed validating page: http://feedvalidator.org/

I hope someone will help me on this matter.
Thank you.
_______________
"Three things cannot be long hidden: the sun, the moon, and the truth." - said by Buddha.
« Last edit by Dietrich on Mon Sep 03, 2007 8:13 pm. »
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
The RSS feed gives a 403 Forbidden header and a blank page as it is implemented to do so when you can't view the RSS feed. The simple reason for this is that you have closed down your board to guests, ofcourse including search engine bots, feed validators, etc.

Thus, this is not a bug.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Oct 2006
Posts: 37
Thanks for your reply Dietrich.
Isn't it possible to view headlines in rss feed although if the forum is closed for guests?

The problem is I have installed my forum to talk between administrators in my website and guests are not allowed to view the forum. I need the rss feed to show the latest topics in my Joomla website.

I hope you or some one will help me to modify the rss.php so I view get the rss feed to work even the forum is closed for guests.

Really sorry for my bad english.
_______________
"Three things cannot be long hidden: the sun, the moon, and the truth." - said by Buddha.
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
It makes no sense to make the RSS feed public when you are closing down the forum to unregistered visitors. If you want to show the latest topics, why don't you open the forum to guests and set the forums' permissions so that visitors can view the forum/list topics but not read them?
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Oct 2006
Posts: 37
Dietrich.
I think you have misunderstood something here. The latest topics are viewed only for the admins in the Joomla page. Not for guests. Hope you understand it..
_______________
"Three things cannot be long hidden: the sun, the moon, and the truth." - said by Buddha.
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
Everyone will be able to read the RSS feed; In fact you already posted the URL to it in the first post. You don't need Joomla! admin access for that.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Oct 2006
Posts: 37
I know that.. I can change the installation folder later when I found a way to fix that problem..
So it is not the biggest problem.

Do you have any idea to modify the code to my needs?

I will be happy if you can do that for me. Please..

Thank you.
_______________
"Three things cannot be long hidden: the sun, the moon, and the truth." - said by Buddha.
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
Comment out 160-165 in sources/page_head.php.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Oct 2006
Posts: 37
Dietrich.
I have done as what you said, commented out those lines. But rss feed url redirects me to the login page.

Any other solutions. Please.
Thank you.
_______________
"Three things cannot be long hidden: the sun, the moon, and the truth." - said by Buddha.
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
Forget the previous comment, there is a lot more to be altered to achieve this. See the patch at http://dmoerman.be/files/usebb1-public-rss.diff.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Oct 2006
Posts: 37
Thanks so far. I get this error message:

Parse error: syntax error, unexpected T_IF in /sources/functions.php on line 1319

Please look at this once.
Thanks.
_______________
"Three things cannot be long hidden: the sun, the moon, and the truth." - said by Buddha.
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
Double check your changes or apply the patch using the patch utility. The diff is correct and generated from my own working copy.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Oct 2006
Posts: 37
I am sure that I have changed exactly as what you told. But get the same error again and again.

What do you mean with patch utility? How to patch using that? Is it a function on usebb or what?

May I get the changed files? So, I don`t need to change it manually.

Thanks.
_______________
"Three things cannot be long hidden: the sun, the moon, and the truth." - said by Buddha.
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
See http://www.usebb.net/community/topic-1236.html.

The patch is correct, just tried it on 1.0.7 and recent CVS sources. Please double check your changes.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Oct 2006
Posts: 37
I think that I now have tried it 4 times but get the same error again and again.

http://www.vaanam.dk/admintalk/rss.xml

As you can see it here:
http://www.vaanam.dk/admintalk/sources/functionsphp.txt
http://www.vaanam.dk/admintalk/sources/page_headphp.txt


Sorry for the disturbance.
_______________
"Three things cannot be long hidden: the sun, the moon, and the truth." - said by Buddha.
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
You don't need to add the ! in front of the line. "!" in diff files means that a line has changed.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Oct 2006
Posts: 37
It's working finally.. Thanks for your valuable time Dietrich. :)
_______________
"Three things cannot be long hidden: the sun, the moon, and the truth." - said by Buddha.

Page: 1

UseBB Community » Resources & Customization » Allow guests to read RSS feed

UseBB Community is powered by UseBB 1 Forum Software