• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Limit user to a single topic possible ?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic