[問題]有關管理人不受簽名檔限制

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
antony chan
星球普通子民
星球普通子民
文章: 18
註冊時間: 2003-12-12 15:46

[問題]有關管理人不受簽名檔限制

文章 antony chan »

未知能否同時加入版主呢?

這是原code:

代碼: 選擇全部

<?php
############################################### 
##   Hack Title:   No signature length limit for admins. 
##   Hack Version:   1.0.0 
##   Author:      Antony Bailey
##   Description:   Removes the signature length limit for admins.
##   Compatibility:   2.0.0 - 2.0.6
## 
##   Installation Level: Easy 
##   Installation Time: 1 minute
##   Files To Edit: 1 
##      usercp_register.php 
## 
##   History: 
##      1.0.0:    Release.
## 
##   Author Notes: 
##      What? I wanted to do this for me as I roxor!
## 
##   Support:      http://www.phpbbhacks.com/forums 
\n##   Copyright:      ?003 No signature length limit for admins 1.0.0 - 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 ]------------------------------------------ 
# 
includes/usercp_register.php
# 
#-----[ FIND ]------------------------------------------ 
# 
	if ( $signature != '' )
	{
		if ( strlen(preg_replace('#(<)([\/]?.*?)(>)#is', "", preg_replace('#(\[)([\/]?.*?)(\])#is', "",$signature))) > $board_config['max_sig_chars'] )
		{
			$error = TRUE;
			$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_long'];
		}
# 
#-----[ REPLACE, WITH ]------------------------------------------ 
# 
	if ( $signature != '' )
	{
	if ($userdata['user_level'] != ADMIN )
	{
		if ( strlen(preg_replace('#(<)([\/]?.*?)(>)#is', "", preg_replace('#(\[)([\/]?.*?)(\])#is', "",$signature))) > $board_config['max_sig_chars'] )
		{
			$error = TRUE;
			$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_long'];
		}
	}
# 
#-----[ SAVE & CLOSE ALL FILES ]-------------------------- 
# 
#End 

?>
最後由 antony chan 於 2003-12-30 01:52 編輯,總共編輯了 2 次。
aiken
竹貓忠實會員
竹貓忠實會員
文章: 1514
註冊時間: 2003-11-09 11:02
來自: 大頭真論壇
聯繫:

文章 aiken »

antony chan
星球普通子民
星球普通子民
文章: 18
註冊時間: 2003-12-12 15:46

文章 antony chan »

對不起啊....
已經補回有關的原mods了..>_<!
主題已鎖定

回到「外掛問題討論」