File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes Limit user to a single topic possible ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Limit user to a single topic possible ?" Watch "Limit user to a single topic possible ?" New topic
Author

Limit user to a single topic possible ?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I'm a newbie to jForum who would like to have a forum pagelet in one of my own webpage. I wonder if this is possible using jForum ?

The forum pagelet must only allow features that pertains a single topic. The user can post, reply and does anything to that particular topic only. He cannot go a level up to other forums or to other topics. I think I should call it a "topic" pagelet rather than a forum pagelet.

The user arrives to the current topic by clicking on a link on my own webpage.

I wonder if the above can be realized using jForum ?

Any info would be very much appreciated.
[originally posted on jforum.net by kenlohwh]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
No, it isn't. JForum does not have a funcionality like this (restrict users to single topic only). You an create new security roles for that, but then you'll need to change JForum's source code.

The roles are defined in the file WEB-INF/config/permissions.xml, which then is automatically processed when you edit permissiosn through the Admin Panel. As for example, you can add a permission sections like



and then, in the class net.jforum.view.forum.ForumAction.java, in methods like list() and show(), you use the class SecurityRepository, calling the method canAccess(String) (passing the role name) to see if the user can do the action..

The basic idea is something like this ;)

Rafael
[originally posted on jforum.net by Rafael Steil]
 
jQuery in Action, 2nd edition
 
subject: Limit user to a single topic possible ?