[Logo]
JForum permissions manual  XML del.icio.us HEMiDEMi funP 收進你的MyShare個人書籤 新增到udn共享書籤 plurk twitter 分享
Forum Index » JForum中文社群 JForum Chinese Users Community
Author Message
acer123

九級學員

Joined: 2009-09-10 14:45:53
Messages: 19
Offline

餵。對不起,我的中文不好,我用谷歌翻譯將文本轉換從英語譯成漢語。我已經實現JForums為我們的網站,但它看起來像原來jforums社會有點兒死亡。

我真正想做的是手動授予權限的組而不是通過管理控制面板。我創建了200個團體在jforum_groups表。請您告訴我的表,我需要手動插入的權限的組?。美國廣播公司等集團不是管理員,也只能看到某某類,具有只讀權限的瑞士EFG論壇等

希望你有我的觀點。感謝您的支持
andowson

五段學員
[Avatar]

Joined: 2007-01-02 22:20:40
Messages: 510
Location: 台北
Offline

Dear acer123,
It's OK for you to ask question in English. The translated Chinese by Google translation is not very clear for me to understand. So, can you repeat your question again?

Andowson

分享經驗 累積智慧
[WWW] [MSN]
acer123

九級學員

Joined: 2009-09-10 14:45:53
Messages: 19
Offline

Thank you for your reply. i have close to 50 groups created under jforum_groups table with user id assigned to those groups manually in jforums_user_groups table. Now instead of giving setting each of those groups permissions through Admin control panel i would like to give them permissions through the table meaning by inserting queries manually for assigning categories to those groups, is administrator, read only forums etc.I need to know some insight on the tables or may be a data dictionary would be great. Thanks.
andowson

五段學員
[Avatar]

Joined: 2007-01-02 22:20:40
Messages: 510
Location: 台北
Offline

You can refer to the data_dump.sql script inside the WEB-INF/config/database directory.
Take postgresql as an example:
Replace the ? mark with the group_id you created and remove some unnecessary permission from the SQL script.
--  Admin
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_administration');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_moderation');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_moderation_post_remove');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_moderation_post_edit');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_moderation_topic_move');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_moderation_topic_lockUnlock');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_moderation_approve_messages');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_create_sticky_announcement_topics');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_vote');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_create_poll');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_karma_enabled');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_bookmarks_enabled');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_attachments_download');
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_moderation_log'); -- novo
INSERT INTO jforum_roles (group_id, name) VALUES (?, 'perm_full_moderation_log'); -- novo

--
-- View Forum
--
INSERT INTO jforum_roles (name, group_id) VALUES ('perm_forum', ?);
INSERT INTO jforum_role_values (role_id, role_value) VALUES ((SELECT CURRVAL('jforum_roles_seq')), '1');

--
-- Anonymous posts
--
INSERT INTO jforum_roles (name, group_id) VALUES ('perm_anonymous_post', ?);
INSERT INTO jforum_role_values (role_id, role_value) VALUES ((SELECT CURRVAL('jforum_roles_seq')), '1');

--
-- View Category
--
INSERT INTO jforum_roles (name, group_id) VALUES ('perm_category', ?);
INSERT INTO jforum_role_values (role_id, role_value) VALUES ((SELECT CURRVAL('jforum_roles_seq')), '1');

--
-- Create / Reply to topics
--
INSERT INTO jforum_roles (name, group_id) VALUES ('perm_read_only_forums', ?);
INSERT INTO jforum_role_values (role_id, role_value) VALUES ((SELECT CURRVAL('jforum_roles_seq')), '1');

-- 
-- Enable HTML
--
INSERT INTO jforum_roles (name, group_id) VALUES ('perm_html_disabled', ?);
INSERT INTO jforum_role_values (role_id, role_value) VALUES ((SELECT CURRVAL('jforum_roles_seq')), '1');

--
-- Attachments
--
INSERT INTO jforum_roles (name, group_id) VALUES ('perm_attachments_enabled', ?);
INSERT INTO jforum_role_values (role_id, role_value) VALUES ((SELECT CURRVAL('jforum_roles_seq')), '1');

--
-- Reply only
--
INSERT INTO jforum_roles (name, group_id) VALUES ('perm_reply_only', ?);
INSERT INTO jforum_role_values ( role_id, role_value) VALUES ((SELECT CURRVAL('jforum_roles_seq')), '1');
	
--
-- Reply without moderation
--
INSERT INTO jforum_roles (name, group_id) VALUES ('perm_reply_without_moderation', ?); -- novo
INSERT INTO jforum_role_values ( role_id, role_value) VALUES ((SELECT CURRVAL('jforum_roles_seq')), '1'); 
	
--
-- Moderation of forums
--
INSERT INTO jforum_roles (name, group_id) VALUES ('perm_moderation_forums', ?); 
INSERT INTO jforum_role_values ( role_id, role_value) VALUES ((SELECT CURRVAL('jforum_roles_seq')), '1'); 


And see http://www.andowson.com/trac/jforum/wiki/Permissions for the detail descripton of each permission

After manually insertion to the database, you need to reload the JForum application to take effect.

This message was edited 1 time. Last update was at 2009-09-11 13:55:27


分享經驗 累積智慧
[WWW] [MSN]
acer123

九級學員

Joined: 2009-09-10 14:45:53
Messages: 19
Offline

Thank you so much for your prompt reply. This is very helpful.
acer123

九級學員

Joined: 2009-09-10 14:45:53
Messages: 19
Offline

Just wanted to let you know mate that in the SSO example you posted it works fine however if a person close the browser and go to the list.page in the forums directly by pasting the link in the browser he can still enter the site because he is an anonymous user. You might wanna send a redirect to xyz.page where it creates the anonymous user in the SSO method.

Just wanted to share with you guys. Hope it helps other people.

This message was edited 1 time. Last update was at 2009-09-15 13:45:54

 
Forum Index » JForum中文社群 JForum Chinese Users Community
Go to:   

交換連結乌托邦博客 
在本站刊登廣告
練功房推薦書單
SCJP 6.0認證教戰手冊 (附光碟) 雲端策略:雲端運算與虛擬化技術 SCJP Java 6專業認證手冊 Java認證SCJP 6.0/5.0--猛虎出閘 SCWCD 5 猛虎出閘:Java Web 應用程式專業認證 SCWCD專業認證手冊 Head First Servlets and JSP
[版權說明] 本站授權方式:創用CC 姓名標示-非商業性-相同方式分享 3.0 台灣 授權條款
Creative Commons License
Powered by JForum 2.2.0 © JForum Team