台灣深藍vBulletin技術論壇  

返回   台灣深藍vBulletin技術論壇 > 深藍官方整理發表區 > vBulletin 外掛深藍統整資源區 > 版主管理增強外掛 (Moderators Functions)

回覆
 
主題工具
舊 2006-02-22, 06:54 PM   #1
論壇站長
 
註冊日期: 2004-10-06
住址: http://www.twvbb.com
文章: 1,583
預設 【原創】深藍版主修改討論版標題與描述vB3.5版1.0


●檔案名稱: 深藍版主修改討論版標題與描述vB3.5版1.0

●檔案類型: 版主管理增強外掛

●適用版本: vBB3.5.x

●檔案編者: ckmarkhsu (台灣深藍vBlletin技術論壇 www.twvbb.com )

●檔案整理: ckmarkhsu

●檔案大小: 2.6 KB

●安裝時間: 5分

●轉載網頁: http://www.twvbb.com/vbb/thread/63/522/

●檔案說明:

1.0版
1. 版主權限控制,可選擇是否允許版主修改討論版標題與描述
2. 基本功能

功能說明:

本外掛可以讓您透過版主權限設定功能,允許特定版主可修改其所管理討論版之標題與描述

基於安全上的考量,若版主修改標題與描述時加入html,程式均會自動過濾掉

希望各位會喜歡

上傳的附件
檔案類型: rar 深藍版主修改討論版標題與描述vB35版10.rar (2.6 KB, 26 次查看)
ckmarkhsu 目前離線   回覆時引用此篇文章
舊 2006-07-13, 07:15 PM   #2
Senior Member
 
註冊日期: 2006-02-23
住址: http://ashs.tw
文章: 207
預設

再第三步驟
引用:
# 3
#-----[ 開啟 modcp/forum.php ]------------------------------------------
#

#
#-----[ 搜尋 ]------------------------------------------
#

iif(can_moderate($forum['forumid'], 'cansetpassword') AND ($forum['options'] & $vbulletin->bf_misc_forumoptions['canhavepassword']), construct_link_code($vbphrase['edit_password'], 'forum.php?' . $vbulletin->session->vars['sessionurl'] . "do=editpassword&f=$forum[forumid]"), '');

#
#-----[ 取代 ]------------------------------------------
#

iif(can_moderate($forum['forumid'], 'cansetpassword') AND ($forum['options'] & $vbulletin->bf_misc_forumoptions['canhavepassword']), construct_link_code($vbphrase['edit_password'], 'forum.php?' . $vbulletin->session->vars['sessionurl'] . "do=editpassword&f=$forum[forumid]"), '').
' ' .
//版主修改討論版標題與描述 twvbb.com
iif(can_moderate($forum['forumid'], 'canedittitledesc') , construct_link_code($vbphrase['forum_edit_ttile_desc'], 'forum.php?' . $vbulletin->session->vars['sessionurl'] . "do=edittitledesc&f=$forum[forumid]"), '');
//版主修改討論版標題與描述 twvbb.com
搜尋這段代碼時
PHP 代碼:
            iif(can_moderate($forum['forumid'], 'cansetpassword') AND ($forum['options'] & $vbulletin->bf_misc_forumoptions['canhavepassword']), construct_link_code($vbphrase['edit_password'], 'forum.php?' $vbulletin->session->vars['sessionurl'] . "do=editpassword&f=$forum[forumid]"), ''); 
跟增加版主好友名單是同一段代碼
但因為我已經裝入好友名單這個hack了
所以,變成缺少這段代碼
如果我直接將要取代的內容
PHP 代碼:
            iif(can_moderate($forum['forumid'], 'cansetpassword') AND ($forum['options'] & $vbulletin->bf_misc_forumoptions['canhavepassword']), construct_link_code($vbphrase['edit_password'], 'forum.php?' $vbulletin->session->vars['sessionurl'] . "do=editpassword&f=$forum[forumid]"), '').
            
' ' .
            
//版主修改討論版標題與描述 twvbb.com
            
iif(can_moderate($forum['forumid'], 'canedittitledesc') , construct_link_code($vbphrase['forum_edit_ttile_desc'], 'forum.php?' $vbulletin->session->vars['sessionurl'] . "do=edittitledesc&f=$forum[forumid]"), '');
            
//版主修改討論版標題與描述 twvbb.com 
放在原好友名單下面這段代碼
PHP 代碼:
iif(can_moderate($forum['forumid'], 'cansetpassword') AND ($forum['options'] & $vbulletin->bf_misc_forumoptions['canhavepassword']), construct_link_code($vbphrase['edit_password'], 'forum.php?' $vbulletin->session->vars['sessionurl'] . "do=editpassword&f=$forum[forumid]"), '').
            
' ' .
            
//深藍版主編輯討論版好友名單 twvbb.com
            
iif(can_moderate($forum['forumid'], 'caneditforumuserlist') , construct_link_code($vbphrase['friend_list'], 'friendlist.php?' $vbulletin->session->vars['sessionurl'] . "do=list&forumid=$forum[forumid]"), '');
            
//深藍版主編輯討論版好友名單 twvbb.com 
之下面的話
變成這個功能
在版主管理是無法顯示的
相反的
如果我先安裝版主修改板名這個hack 的話
變成版主好友無法使用
請問我該如何修改呢?

另外
版主修改標題這個hack
在版主管理介面
只有顯示[]
請問該如何解決呢?

此篇文章於 2006-07-13 07:22 PM 被 hung 編輯.
hung 目前離線   回覆時引用此篇文章
舊 2006-10-09, 07:02 PM   #3
Junior Member
 
註冊日期: 2006-05-13
住址: http://yechieh.twadsl.com
文章: 1
預設

引用:
作者: 星空
版主修改標題這個hack
在版主管理介面
只有顯示[]
請問該如何解決呢?
原本
代碼:
	//版主修改討論版標題與描述 twvbb.com
	print_yes_no_row($vbphrase['can_edit_ttile_desc'], 'modperms[canedittitledesc]', $moderator['canedittitledesc']);
	//版主修改討論版標題與描述 twvbb.com
修改成
代碼:
	//版主修改討論版標題與描述 twvbb.com
	print_yes_no_row($vbphrase['can_edit_title_desc'], 'modperms[canedittitledesc]', $moderator['canedittitledesc']);
	//版主修改討論版標題與描述 twvbb.com
應該是筆誤
yang_shenghan 目前離線   回覆時引用此篇文章
回覆

書籤

主題工具

發文規則
不可以發表新主題
不可以發表回覆
不可以上傳附件
不可以編輯自己的文章

啟用 BB 代碼
論壇啟用 表情符號
論壇啟用 [IMG] 代碼
論壇禁用 HTML 代碼
Trackbacks are 禁用
Pingbacks are 禁用
Refbacks are 禁用


所有時間均為北京時間。現在的時間是 09:13 AM


Powered by vBulletin® 版本 3.7.3
版權所有 ©2000 - 2008,Jelsoft Enterprises Ltd.
Ad Management by RedTyger