[推薦] [外掛] 互動式版面權限設定( 含延伸功能)

MODs Released by Other phpbb Sites
非官方認證通過之 MOD ,或許有安全性之疑慮,所有問題由原發表者回覆!

版主: 版主管理群

主題已鎖定
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8535
註冊時間: 2004-04-30 01:54
來自: Taiwan

[推薦] [外掛] 互動式版面權限設定( 含延伸功能)

文章 心靈捕手 »

  1. 前言
  2. 檔頭說明
  3. 中文化參考
  4. 修正經驗談
  5. 外掛下載
  6. 展示圖片
  7. 延伸功能\r

1. 前言:

如果, 您增加了許多版面, 或自行增加許\多選項,
那麼, 在控制台的預設版面管理權限設定介面,
在使用時, 可能會讓您覺得很頭大, 而倍感吃力.

目前, 經由搜尋, 在竹貓討論文章中, 有兩個解決方法: 但是, 經過測試結果,
我個人以為, 真正實用的外掛, 應該是 Overall Forums Permission Interactive Editor


2. 檔頭說明:

代碼: 選擇全部

##############################################################
## MOD Title: Overall Forums Permission Interactive Editor
## MOD Author: yttrbium (overallforums@jaredgrubb.com)
## MOD Description: This mod allows you to set the permissions of all forums at the same time
##                  using a colorful, javascript-driven interface. The inspiration for this
##                  came from phpBBhack mod#486 of the name "overall forums permission".
##		    Note: Using this hack requires a recent browser (specifically that supports
##		      getElementById(); I would think anyone who is admin to a BB would probably
##		      have an adequate browser!
## MOD Version: 1.0.0
## Credits:
##	The original mod, which I drew from for inspiration:
##		[ #486: Overall Forums Permission ] - Smartor
##
##	Special Thanks to:
##		Erik Bosrup, http://www.bosrup.com/web/overlib/, for the overlib.js code
##
## Installation Level: easy
## Installation Time: 5 Minutes
## Files To Edit: 
##	language/lang_english/lang_admin.php
## Included Files: 30
############################################################## 
外掛描述:
這個外掛, 讓您在同一時間, 可以經由圖示, 設定所有版面各個選項的權限.


3. 中文化參考:
  • 參照原安裝說明部分:
    #
    #-----[ OPEN ]---------------------------------------------
    #
    language/lang_chinese_traditional_taiwan/lang_admin.php

    #
    #-----[ FIND ]---------------------------------------------
    # ps. 後面還有很長的程式碼\r
    $lang['Forum_auth_explain'] =

    #
    #-----[ AFTER, ADD ]--------------------------------------
    #
    $lang['Forum_auth_explain_overall'] = '在這裡, 您可以設定每個版面, 各個選項中的會員等級.';
    $lang['Forum_auth_explain_overall_edit'] = '先選定會員等級圖示, 再選定所有版面各個選項權限.';
    $lang['Forum_auth_overall_restore'] = '還原設定';
    $lang['Forum_auth_overall_stop'] = '停止編輯';

    #
    #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
    #
    # EoM
  • 其他部分:
    #
    #-----[ Open ]-----
    #
    admin/admin_overall_forumauth.php

    #
    #-----[ Find ]-----
    #
    $module['Forums']['Overall Permissions']

    #
    #-----[ Replace With ]-----
    #
    $module['Forums']['權限設定圖示']

    #
    #-----[ Open ]-----
    # ps. subSilver 請自行修改為您的風格\r
    templates/subSilver/admin/auth_overall_forum_body.tpl

    #
    #-----[ Find ]-----
    #
    <td class="cat" align="center" valign="middle"><span class="gen">View</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">Read</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">Post</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">Reply</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">Edit</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">Del</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">Sticky</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">Ann</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">Vote</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">Poll </span></td>

    #
    #-----[ Replace With ]-----
    #
    <td class="cat" align="center" valign="middle"><span class="gen">檢視</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">閱讀</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">發表</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">回覆</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">編輯</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">刪除</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">置頂</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">公告</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">投票</span></td>
    <td class="cat" align="center" valign="middle"><span class="gen">票選系統</span></td>
    ps. 中文化後, 更節省版面寬度喔! ;-)

4. 修正經驗談:
  • [修正]安裝說明錯誤

    原安裝說明:

    代碼: 選擇全部

    #
    #-----[ COPY ]--------------------------------------------
    #
    copy auth_overall_forum_body.php				to templates/subSilver/admin/auth_overall_forum_body.php
    
    #
    #-----[ COPY ]--------------------------------------------
    #
    copy auth_overall_forum/admin_overall_forumauth.js	to templates/subSilver/images/auth_overall_forum/admin_overall_forumauth.gif
    
    修正如下:

    代碼: 選擇全部

    #
    #-----[ COPY ]--------------------------------------------
    #
    copy auth_overall_forum_body.tpl 				to templates/subSilver/admin/auth_overall_forum_body.tpl
    
    #
    #-----[ COPY ]--------------------------------------------
    #
    copy auth_overall_forum/admin_overall_forumauth.js	to templates/subSilver/images/auth_overall_forum/admin_overall_forumauth.js
    
  • [修正]圖示路徑錯誤
    #
    #-----[ Open ]-----
    # ps. subSilver 請自行修改為您的風格\r
    templates/subSilver/images/auth_overall_forum/admin_overall_forumauth.js

    #
    #-----[ Find ]-----
    # ps. 有五個地方\r
    ../templates/wyosigs/images/auth_overall_forum/

    #
    #-----[ Replace With ]-----
    # ps. 五個地方都要取代; subSilver 請自行修改為您的風格\r
    ../templates/subSilver/images/auth_overall_forum/

5. 外掛下載:
http://www.phpbbhacks.com/download/1589


6. 展示圖片:
圖檔

7. 延伸功能:
多版面套用同一權限設定
http://phpbb-tw.net/phpbb/viewtopic.php?p=208498#208498
最後由 心靈捕手 於 2005-08-28 09:41 編輯,總共編輯了 2 次。
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8535
註冊時間: 2004-04-30 01:54
來自: Taiwan

[教學] 增加版面權限選項的方法

文章 心靈捕手 »

如果說, 您有因為安裝外掛, 而增加其他版面權限選項的話,
那麼, 在此提供您一個修改的方法.

舉例說明:
例如, 您有安裝全區公告( global_announcement) 的話,...

#
#-----[ Open ]-----
#

代碼: 選擇全部

admin/admin_forumauth.php
#
#-----[ Find-> A ]-----
#

代碼: 選擇全部

//
// Start program - define vars
//
...
$field_names = array(
...
);
#
#-----[ Open ]-----
#

代碼: 選擇全部

admin/admin_overall_forumauth.php
#
#-----[ Find ]-----
#

代碼: 選擇全部

//
// Start program - define vars
//
...
$field_names = array(
...
);
#
#-----[ Replace With A ]-----
#

ps.
主要的目的, 先將您所有已經增加的選項, 通通複製進來.
特別提醒, 如果您有安裝附加檔案( attach_mod) 不要漏掉底下這行:

代碼: 選擇全部

attach_setup_forum_auth($simple_auth_ary, $forum_auth_fields, $field_names);
以下, 則是針對新增全區公告選項的方法.

#
#-----[ Find ]-----
#

代碼: 選擇全部

'POLLCREATE' => 'auth_pollcreate',
#
#-----[ After, Add ]-----
#

代碼: 選擇全部

'GLOBALANNOUNCE' => 'auth_globalannounce',
#
#-----[ Find ]-----
#

代碼: 選擇全部

'AUTH_POLLCREATE_IMG' => $forum_auth_images[$forum_rows[$j]['auth_pollcreate']],
#
#-----[ After, Add ]-----
#

代碼: 選擇全部

'AUTH_GLOBALANNOUNCE_IMG' => $forum_auth_images[$forum_rows[$j]['auth_globalannounce']],
#
#-----[ Open ]-----
# ps. subSilver 請自行修改為您的風格\r

代碼: 選擇全部

templates/subSilver/admin/auth_overall_forum_body.tpl 
#
#-----[ Find ]-----
#

代碼: 選擇全部

<th class="thHead" colspan="11">{L_FORUM_TITLE}</th>
#
#-----[ Replace With ]-----
#

代碼: 選擇全部

<th class="thHead" colspan="12">{L_FORUM_TITLE}</th>
#
#-----[ Find ]-----
#

代碼: 選擇全部

<td class="row1" align="center" valign="middle" colspan="11">
#
#-----[ Replace With ]-----
#

代碼: 選擇全部

<td class="row1" align="center" valign="middle" colspan="12">
#
#-----[ Find ]-----
# ps. 若無中文化, 則 Poll = 票選系統\r

代碼: 選擇全部

<td class="cat" align="center" valign="middle"><span class="gen">票選系統</span></td>
#
#-----[ After, Add ]-----
#

代碼: 選擇全部

<td class="cat" align="center" valign="middle"><span class="gen">全區公告</span></td>
#
#-----[ Find ]-----
#

代碼: 選擇全部

<td class="row2"><img src="../templates/subSilver/images/auth_overall_forum/{catrow.forumrow.AUTH_POLLCREATE_IMG}.gif" onClick="return change_auth(this,'{catrow.forumrow.AUTH_POLLCREATE_IMG}',{catrow.forumrow.FORUM_ID},'POLLCREATE');"><input type="hidden" id="auth_{catrow.forumrow.FORUM_ID}_POLLCREATE" name="auth[{catrow.forumrow.FORUM_ID}][POLLCREATE]"></td>
#
#-----[ After, Add ]-----
#

代碼: 選擇全部

<td class="row2"><img src="../templates/subSilver/images/auth_overall_forum/{catrow.forumrow.AUTH_GLOBALANNOUNCE_IMG}.gif" onClick="return change_auth(this,'{catrow.forumrow.AUTH_GLOBALANNOUNCE_IMG}',{catrow.forumrow.FORUM_ID},'GLOBALANNOUNCE');"><input type="hidden" id="auth_{catrow.forumrow.FORUM_ID}_GLOBALANNOUNCE" name="auth[{catrow.forumrow.FORUM_ID}][GLOBALANNOUNCE]"></td>
#
#-----[ Find ]-----
#

代碼: 選擇全部

	<!-- END catrow -->
	<tr>
		<td colspan="11"
#
#-----[ Replace With ]-----
#

代碼: 選擇全部

	<!-- END catrow -->
	<tr>
		<td colspan="12"
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

餘此類推!! ;-)
最後由 心靈捕手 於 2005-08-23 13:50 編輯,總共編輯了 1 次。
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8535
註冊時間: 2004-04-30 01:54
來自: Taiwan

[教學] 增加( 附加檔案) 版面權限選項的方法

文章 心靈捕手 »

因為, 在 admin/admin_forumauth.php 裡頭,
關於附加檔案( attach_mod) 這個外掛, 只有以下一行程式碼:

代碼: 選擇全部

attach_setup_forum_auth($simple_auth_ary, $forum_auth_fields, $field_names); 
所以, 造成增加( 附加檔案) 版面權限選項的困擾.

以下, 則是針對新增附加檔案( attach_mod) 選項的方法.
ps. 以下關於欄位數( colspan) 的設定, 是假設您已經按照上一篇回覆, 新增全區公告選項.

#
#-----[ Find ]-----
#

代碼: 選擇全部

	'POLLCREATE' => 'auth_pollcreate',
	'GLOBALANNOUNCE' => 'auth_globalannounce',
#
#-----[ After, Add ]-----
#

代碼: 選擇全部

	'ATTACH' => 'auth_attachments',
	'ATTACH_DOWNLOAD' => 'auth_download',
#
#-----[ Find ]-----
#

代碼: 選擇全部

					'AUTH_POLLCREATE_IMG' => $forum_auth_images[$forum_rows[$j]['auth_pollcreate']],
					'AUTH_GLOBALANNOUNCE_IMG' => $forum_auth_images[$forum_rows[$j]['auth_globalannounce']],
#
#-----[ After, Add ]-----
#

代碼: 選擇全部

					'AUTH_ATTACH_IMG' => $forum_auth_images[$forum_rows[$j]['auth_attachments']],
					'AUTH_ATTACH_DOWNLOAD_IMG' => $forum_auth_images[$forum_rows[$j]['auth_download']],
#
#-----[ Open ]-----
# ps. subSilver 請自行修改為您的風格\r

代碼: 選擇全部

templates/subSilver/admin/auth_overall_forum_body.tpl 
#
#-----[ Find ]-----
#

代碼: 選擇全部

<th class="thHead" colspan="12">{L_FORUM_TITLE}</th>
#
#-----[ Replace With ]-----
#

代碼: 選擇全部

<th class="thHead" colspan="14">{L_FORUM_TITLE}</th>
#
#-----[ Find ]-----
#

代碼: 選擇全部

<td class="row1" align="center" valign="middle" colspan="12">
#
#-----[ Replace With ]-----
#

代碼: 選擇全部

<td class="row1" align="center" valign="middle" colspan="14">
#
#-----[ Find ]-----
# ps. 若無中文化, 則 Poll = 票選系統\r

代碼: 選擇全部

		<td class="cat" align="center" valign="middle"><span class="gen">票選系統</span></td>
		<td class="cat" align="center" valign="middle"><span class="gen">全區公告</span></td>
#
#-----[ After, Add ]-----
#

代碼: 選擇全部

		<td class="cat" align="center" valign="middle"><span class="gen">發表檔案</span></td>
		<td class="cat" align="center" valign="middle"><span class="gen">下載檔案</span></td>
#
#-----[ Find ]-----
#

代碼: 選擇全部

		<td class="row2"><img src="../templates/subSilver/images/auth_overall_forum/{catrow.forumrow.AUTH_POLLCREATE_IMG}.gif" onClick="return change_auth(this,'{catrow.forumrow.AUTH_POLLCREATE_IMG}',{catrow.forumrow.FORUM_ID},'POLLCREATE');"><input type="hidden" id="auth_{catrow.forumrow.FORUM_ID}_POLLCREATE" name="auth[{catrow.forumrow.FORUM_ID}][POLLCREATE]"></td>
		<td class="row2"><img src="../templates/subSilver/images/auth_overall_forum/{catrow.forumrow.AUTH_GLOBALANNOUNCE_IMG}.gif" onClick="return change_auth(this,'{catrow.forumrow.AUTH_GLOBALANNOUNCE_IMG}',{catrow.forumrow.FORUM_ID},'GLOBALANNOUNCE');"><input type="hidden" id="auth_{catrow.forumrow.FORUM_ID}_GLOBALANNOUNCE" name="auth[{catrow.forumrow.FORUM_ID}][GLOBALANNOUNCE]"></td>
#
#-----[ After, Add ]-----
#

代碼: 選擇全部

		<td class="row2"><img src="../templates/subSilver/images/auth_overall_forum/{catrow.forumrow.AUTH_ATTACH_IMG}.gif" onClick="return change_auth(this,'{catrow.forumrow.AUTH_ATTACH_IMG}',{catrow.forumrow.FORUM_ID},'ATTACH');"><input type="hidden" id="auth_{catrow.forumrow.FORUM_ID}_ATTACH" name="auth[{catrow.forumrow.FORUM_ID}][ATTACH]"></td>
		<td class="row2"><img src="../templates/subSilver/images/auth_overall_forum/{catrow.forumrow.AUTH_ATTACH_DOWNLOAD_IMG}.gif" onClick="return change_auth(this,'{catrow.forumrow.AUTH_ATTACH_DOWNLOAD_IMG}',{catrow.forumrow.FORUM_ID},'ATTACH_DOWNLOAD');"><input type="hidden" id="auth_{catrow.forumrow.FORUM_ID}_ATTACH_DOWNLOAD" name="auth[{catrow.forumrow.FORUM_ID}][ATTACH_DOWNLOAD]"></td>
#
#-----[ Find ]-----
#

代碼: 選擇全部

	<!-- END catrow -->
	<tr>
		<td colspan="12"
#
#-----[ Replace With ]-----
#

代碼: 選擇全部

	<!-- END catrow -->
	<tr>
		<td colspan="14"
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8535
註冊時間: 2004-04-30 01:54
來自: Taiwan

[教學] 等級名稱中文化

文章 心靈捕手 »

本文原作者: DL

樓頂文章的中文化, 漏掉了這一個部份,
以下的修改, 提供給大家參考:
  • 打開

    代碼: 選擇全部

    auth_overall_forum_body.tpl 
    
  • 找到

    代碼: 選擇全部

    <a href="javascript:void(0);" onClick="return start_edit('{authedit.VALUE}', '{authedit.NAME}');" class="gen"><img src="../templates/subSilver/images/auth_overall_forum/{authedit.NAME}.gif">&nbsp;{authedit.NAME}</a><br /> 
    
  • 取代與

    代碼: 選擇全部

    <a href="javascript:void(0);" onClick="return start_edit('{authedit.VALUE}', '{authedit.NAME}');" class="gen"><img src="../templates/subSilver/images/auth_overall_forum/{authedit.NAME}.gif">&nbsp;{authedit.CHINESENAME}</a><br /> 
    
  • 打開

    代碼: 選擇全部

    admin_overall_forumauth.php 
    
  • 找到

    代碼: 選擇全部

    $forum_auth_levels = array('ALL', 'REG', 'PRIVATE', 'MOD', 'ADMIN'); 
    
  • 之後加上

    代碼: 選擇全部

    $forum_auth_chineselevels = array('所有會員', '註冊會員', '群組會員', '版面管理員', '系統管理員'); 
    
  • 找到

    代碼: 選擇全部

          'NAME' => $forum_auth_levels[$i], 
    
  • 之後加上

    代碼: 選擇全部

          'CHINESENAME' => $forum_auth_chineselevels[$i], 
    
  • 修正結束
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8535
註冊時間: 2004-04-30 01:54
來自: Taiwan

[外掛] 延伸功能: 多版面套用同一權限設定

文章 心靈捕手 »

  • 原外掛作者: ETERNAL
  • 檔頭說明:
    ########################################################################
    ## Mod Title: Overall Forums Permission Interactive Editor 延伸功能\r
    ## Author: ETERNAL(http://bbs.2233.idv.tw)
    ##
    ## Description:
    ## 本文件是替 Overall Forums Permission Interactive Editor 外掛
    ## 新增一項設定權限的方法。
    ##
    ## 您必須先安裝過 Overall Forums Permission Interactive Editor
    ## 才能按照本文件方式進行以下修改。
    ##
    ########################################################################
  • 外掛下載:
    http://myweb.hinet.net/home4/iqstar/aut ... um_ext.rar
  • 補充說明:
    增加版面權限選項的方法, 等級名稱中文化等, 都可以參照前面的回覆文章,
    修改 templates/subSilver/admin/auth_overall_forum_body2.tpl 即可.

    舉例: 增加全區公告的選項的方法
    #
    #-----[ Open ]-----
    #

    代碼: 選擇全部

    templates/subSilver/admin/auth_overall_forum_body2.tpl
    
    #
    #-----[ Find ]-----
    #

    代碼: 選擇全部

    <td class="cat" align="center" valign="middle"><span class="gen">票選系統</span></td>
    
    #
    #-----[ After, Add ]-----
    #

    代碼: 選擇全部

    <td class="cat" align="center" valign="middle"><span class="gen">全區公告</span></td>
    
    #
    #-----[ Find ]-----
    #

    代碼: 選擇全部

    <td class="row2"><img src="../templates/subSilver/images/auth_overall_forum/NOT.gif" onClick="return change_auth(this,'ALL','chang_all','POLLCREATE');"><input type="hidden" id="auth_chang_all_POLLCREATE" name="auth_pollcreate" value="NOT"></td>
    
    #
    #-----[ After, Add ]-----
    #

    代碼: 選擇全部

    <td class="row2"><img src="../templates/subSilver/images/auth_overall_forum/NOT.gif" onClick="return change_auth(this,'ALL','chang_all','GLOBALANNOUNCE');"><input type="hidden" id="auth_chang_all_GLOBALANNOUNCE" name="auth_globalannounce" value="NOT"></td>
    
    #
    #-----[ Save&Close ]-----
    #
  • 展示圖片:
    圖檔
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
主題已鎖定

回到「非官方認證外掛」