• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

User roles

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody,
I'm new in the jforum community and i wood like to integrate it with another application. I began learning jforum but istill not understanding something:
*firstly: what are roles and how can I add new custom roles.
*secondly: what is the difference between role_type column and role_value column in both jforum_roles and jforum_role_values.
*thirdly can I set user roles permission directly without adding the user to a goup.

I tried to find documentation about those things and tried to understand the code but I still not understand the concept of role and permission in jforum.
Could any body help on that please.

[originally posted on jforum.net by napilioni]
 
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
1) Each role represents a security key - something an user can or cannot do. You create new roles by editing the file WEB-INF/config/permissions.xml

2) role_type equals 1 means the user can do the thing specified by the role; equals 0, it can't. role_value contains a helper value - for example, for forum id or category id.

role_type will not exist anymore in starting from JForum 2.1.7

3) No, you can't.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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

napilioni wrote:Hi everybody,
I'm new in the jforum community and i wood like to integrate it with another application. I began learning jforum but istill not understanding something:
*firstly: what are roles and how can I add new custom roles.
*secondly: what is the difference between role_type column and role_value column in both jforum_roles and jforum_role_values.
*thirdly can I set user roles permission directly without adding the user to a goup.

I tried to find documentation about those things and tried to understand the code but I still not understand the concept of role and permission in jforum.
Could any body help on that please.


good
[originally posted on jforum.net by jimmy_yang]
 
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

jimmy_yang wrote:

napilioni wrote:Hi everybody,
I'm new in the jforum community and i wood like to integrate it with another application. I began learning jforum but istill not understanding something:
*firstly: what are roles and how can I add new custom roles.
*secondly: what is the difference between role_type column and role_value column in both jforum_roles and jforum_role_values.
*thirdly can I set user roles permission directly without adding the user to a goup.

I tried to find documentation about those things and tried to understand the code but I still not understand the concept of role and permission in jforum.
Could any body help on that please.


good

bad
[originally posted on jforum.net by jimmy_yang]
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic