[問題]請問..關閉除錯模式

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
piaacn
星球普通子民
星球普通子民
文章: 3
註冊時間: 2002-06-14 18:34

[問題]請問..關閉除錯模式

文章 piaacn »

請問..關閉除錯模式 ...要開啟那個 文件修改才行阿..
剛剛 拜讀 '天霜' 所發表的文章 ...看不出個 所以然.有人能幫我解答嗎
謝謝
aiken
竹貓忠實會員
竹貓忠實會員
文章: 1514
註冊時間: 2003-11-09 11:02
來自: 大頭真論壇
聯繫:

文章 aiken »

1.

代碼: 選擇全部

# 
#-----[ OPEN 打開 ]------------------------------------------ 
# 

includes/constants.php 

# 
#-----[ FIND 尋找 ]------------------------------------------ 
# 

// Debug Level 
//define('DEBUG', 1); // Debugging on 
define('DEBUG', 1); // Debugging off 

# 
#-----[ REPLACE WITH 替換 ]---------------------------------------- 
# 

// Debug Level 
//define('DEBUG', 1); // Debugging on 
define('DEBUG', 0); // Debugging off 

# 
#-----[ SAVE/CLOSE ALL FILES 儲存並且關閉所有檔案 ]------------------------------------------ 
#
2.
http://phpbbhacks.com/viewhack.php?id=1750
piaacn
星球普通子民
星球普通子民
文章: 3
註冊時間: 2002-06-14 18:34

文章 piaacn »

請問 到這裡http://phpbbhacks.com/viewhack.php?id=1750 所下載的這個文件 要上傳到哪個資料夾裡..上傳 這個 文件 ...以後 只要在後台 操作 除錯模式 嗎 ...能告知到我嗎?
如何使用 這個 功能 萬分感謝
aiken
竹貓忠實會員
竹貓忠實會員
文章: 1514
註冊時間: 2003-11-09 11:02
來自: 大頭真論壇
聯繫:

文章 aiken »

代碼: 選擇全部

############################################### 
##   Hack Title:   Admin DEBUG activation.
##   Hack Version:   0.0.1
##   Author:      Antony Bailey
##   Description:   Allows the admin to enable or disable DEBUG mode from within the admin general configuration.
##   Compatibility:   2.0.0 - 2.0.4 
## 
##   Installation Level: Easy
##   Installation Time: 5 minutes.
##   Files To Edit: 3
##      admin_board.php 
##      functions.php 
##	 lang_admin.php
##	 board_config_body.tpl
## 
##   History: 
##      0.0.1:    Initial release.
## 
##   Author Notes: 
##      Should work perfectly. *fingers crossed*
## 
##   Support:      http://www.phpbbhacks.com/forums 
##   Copyright:      ?003 Admin DEBUG activation 0.0.1 - Antony Bailey
## 
############################################### 
##   You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads. 
##   Please visit http://www.phpbbhacks.com/forums for support. 
############################################### 
## 
############################################### 
##   This hack is released under the GPL License. 
##   This hack can be freely used, but not distributed, without permission. 
##   Intellectual Property is retained by the hack author(s) listed above. 
############################################### 
# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_board.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
	$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	$debug_value_yes = ( $new['debug_value'] ) ? "checked=\"checked\"" : ""; 
	$debug_value_no = ( !$new['debug_value'] ) ? "checked=\"checked\"" : ""; 
# 
#-----[ FIND ]------------------------------------------ 
# 
	"L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	"L_DEBUG_VALUE" => $lang['Debug_value'], 
	"L_DEBUG_VALUE_EXPLAIN" => $lang['Debug_value_explain'], 
# 
#-----[ FIND ]------------------------------------------ 
# 
	"S_DISABLE_BOARD_NO" => $disable_board_no, 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	"S_DEBUG_VALUE_ENABLED" => $debug_value_yes, 
	"S_DEBUG_VALUE_DISABLED" => $debug_value_no, 
# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/functions.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
	if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) 
# 
#-----[ REPLACE, WITH ]------------------------------------------ 
# 
	if ( ($board_config['debug_value'] == '1' || DEBUG) && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) 
# 
#-----[ FIND ]------------------------------------------ 
# 
	if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
	if ( ($board_config['debug_value'] == '1' || DEBUG) && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) 
# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_english/lang_admin.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
?>
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
$lang['Debug_value'] = 'Debug Value'; 
$lang['Debug_value_explain'] = 'From here you may turn DEBUG mode on and off on your forums.'; 
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/admin/board_config_body.tpl 
# 
#-----[ FIND ]------------------------------------------ 
# 
	<tr> 
	   <td class="row1">{L_DISABLE_BOARD}<br /><span class="gensmall">{L_DISABLE_BOARD_EXPLAIN}</span></td> 
	   <td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES}  <input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td> 
	</tr> 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	<tr> 
	   <td class="row1">{L_DEBUG_VALUE}<br /><span class="gensmall">{L_DEBUG_VALUE_EXPLAIN}</span></td> 
	   <td class="row2"><input type="radio" name="debug_value" value="0" {S_DEBUG_VALUE_DISABLED} />{L_DISABLED}   <input type="radio" name="debug_value" value="1" {S_DEBUG_VALUE_ENABLED} />{L_ENABLED}</td> 
	</tr> 
# 
#-----[ SAVE & CLOSE ALL FILES ]------------------------------------------ 
# 
#-----[ SQL ]------------------------------------------ 
# 
INSERT INTO phpbb_config (config_name, config_value) VALUES ('debug_value','1'); 
#
#End
http://phpbb-tw.net/phpbb/viewtopic.php?t=6789
http://phpbb-tw.net/phpbb/viewtopic.php?t=5664
http://phpbb-tw.net/phpbb/viewforum.php?f=98
piaacn
星球普通子民
星球普通子民
文章: 3
註冊時間: 2002-06-14 18:34

文章 piaacn »

感謝你..以弄好了
頭像
dna
星球普通子民
星球普通子民
文章: 26
註冊時間: 2003-02-19 10:37
來自: 台北縣

文章 dna »

速度真的有差ㄛ!!
頭像
Xilinx
星球公民
星球公民
文章: 37
註冊時間: 2004-10-11 10:58

文章 Xilinx »

aiken 寫:

代碼: 選擇全部

############################################### 
##   Hack Title:   Admin DEBUG activation.
##   Hack Version:   0.0.1
##   Author:      Antony Bailey
##   Description:   Allows the admin to enable or disable DEBUG mode from within the admin general configuration.
##   Compatibility:   2.0.0 - 2.0.4 
## 
##   Installation Level: Easy
##   Installation Time: 5 minutes.
##   Files To Edit: 3
##      admin_board.php 
##      functions.php 
##	 lang_admin.php
##	 board_config_body.tpl
## 
##   History: 
##      0.0.1:    Initial release.
## 
##   Author Notes: 
##      Should work perfectly. *fingers crossed*
## 
##   Support:      http://www.phpbbhacks.com/forums 
##   Copyright:      ?003 Admin DEBUG activation 0.0.1 - Antony Bailey
## 
############################################### 
##   You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads. 
##   Please visit http://www.phpbbhacks.com/forums for support. 
############################################### 
## 
############################################### 
##   This hack is released under the GPL License. 
##   This hack can be freely used, but not distributed, without permission. 
##   Intellectual Property is retained by the hack author(s) listed above. 
############################################### 
# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_board.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
	$disable_board_no = ( !$new['board_disable'] ) ? "checked="checked"" : "";
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	$debug_value_yes = ( $new['debug_value'] ) ? "checked="checked"" : ""; 
	$debug_value_no = ( !$new['debug_value'] ) ? "checked="checked"" : ""; 
# 
#-----[ FIND ]------------------------------------------ 
# 
	"L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	"L_DEBUG_VALUE" => $lang['Debug_value'], 
	"L_DEBUG_VALUE_EXPLAIN" => $lang['Debug_value_explain'], 
# 
#-----[ FIND ]------------------------------------------ 
# 
	"S_DISABLE_BOARD_NO" => $disable_board_no, 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	"S_DEBUG_VALUE_ENABLED" => $debug_value_yes, 
	"S_DEBUG_VALUE_DISABLED" => $debug_value_no, 
# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/functions.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
	if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) 
# 
#-----[ REPLACE, WITH ]------------------------------------------ 
# 
	if ( ($board_config['debug_value'] == '1' || DEBUG) && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) 
# 
#-----[ FIND ]------------------------------------------ 
# 
	if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
	if ( ($board_config['debug_value'] == '1' || DEBUG) && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) 
# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_english/lang_admin.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
?>
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
$lang['Debug_value'] = 'Debug Value'; 
$lang['Debug_value_explain'] = 'From here you may turn DEBUG mode on and off on your forums.'; 
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/admin/board_config_body.tpl 
# 
#-----[ FIND ]------------------------------------------ 
# 
	<tr> 
	   <td class="row1">{L_DISABLE_BOARD}<br /><span class="gensmall">{L_DISABLE_BOARD_EXPLAIN}</span></td> 
	   <td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td> 
	</tr> 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	<tr> 
	   <td class="row1">{L_DEBUG_VALUE}<br /><span class="gensmall">{L_DEBUG_VALUE_EXPLAIN}</span></td> 
	   <td class="row2"><input type="radio" name="debug_value" value="0" {S_DEBUG_VALUE_DISABLED} />{L_DISABLED}&nbsp; &nbsp;<input type="radio" name="debug_value" value="1" {S_DEBUG_VALUE_ENABLED} />{L_ENABLED}</td> 
	</tr> 
# 
#-----[ SAVE & CLOSE ALL FILES ]------------------------------------------ 
# 
#-----[ SQL ]------------------------------------------ 
# 
INSERT INTO phpbb_config (config_name, config_value) VALUES ('debug_value','1'); 
#
#End
http://phpbb-tw.net/phpbb/viewtopic.php?t=6789
http://phpbb-tw.net/phpbb/viewtopic.php?t=5664
http://phpbb-tw.net/phpbb/viewforum.php?f=98
後台管理找不到除錯模式開啟或關閉選項
煩請大大告知一下
主題已鎖定

回到「phpBB 2 安裝與使用」