aspose file tools*
The moose likes JForum and the fly likes Exclude forums from recent topics and RSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Exclude forums from recent topics and RSS" Watch "Exclude forums from recent topics and RSS" New topic
Author

Exclude forums from recent topics and RSS

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi,

It would be very nice if you could configure per forum if its topics should or shouldn't be included in the "recent topics" listings and rss feeds. A simple checkbox would be perfect.

We've defined a few closed forums, but all topic headers are still visible to everyone through the "recent topics" page.

Any way to quick-fix this? Otherwise I think it would be a nice feature to have.

[originally posted on jforum.net by inzide]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
This is always a problem with trying to combine a secure site with an unsecure protocol. Ideally the RSS code should do a check to see if a user id is available (e.g. the call is being made inside jForum). Then do a security check. If it's outside, then check rights using the anonymous user. But then you've got answers that change depending on context and that can confuse users. E.g., my RSS reader didn't show a new article!

Anyway, a quick fix might be to edit the underlying query used to generate the topic list to exclude the forum id's you want to. The query for all topics is PostModel.selectHotForRSS and can be found in either the generic_queries.sql or your db specific queries.sql file under the config directory.
[originally posted on jforum.net by monroe]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exclude forums from recent topics and RSS
 
Similar Threads
How to put JFrom in my site???
RSS feed for recent topics
RSS feeds of author contributions
RSS for Recent Topics
rss for recent topics