Disable maximum signature length for admin

主題已鎖定
頭像
cloudsnow30
.※.稜鏡之森の守護使者.※.
.※.稜鏡之森の守護使者.※.
文章: 145
註冊時間: 週六 2006-03-04 03:29
個人狀態: 冬眠喵型態
性別:
來自: 雲上天國
擁有感謝: 2 次
星座:
聯繫:

Disable maximum signature length for admin

文章 cloudsnow30 »

代碼: 選擇全部

############################################################## 
## MOD Title: Disable maximum signature length for admin 
## MOD Author: RedRaven < stian@nettenter.no > (Stian Seland) http://phpbb.no/ 
## MOD Description: Let admin have a longer signature than the maximum length decided in ACP
## MOD Version: 1.0.0 
## 
## Installation Level: Easy
## Installation Time: 1 Minutes 
## Files To Edit: usercp_register.php 
## Included Files: (n/a) 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: This is probably one of the simplest mods ever made. I`ve originally made this mod
## 		 for my own use but I decided to release so everyone can use it.
## 
############################################################## 
## MOD History: 
## 
##   2004-05-05 - Version 1.0.0 
##      - Initial release 
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/usercp_register.php

# 
#-----[ FIND ]------------------------------------------ 
# 
		if ( strlen($signature) > $board_config['max_sig_chars'] )

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
		if ( strlen($signature) > $board_config['max_sig_chars'] && $userdata['user_level'] != ADMIN)
		
# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------------- 
# 
#EoM 

###############################################################################
補充說明: -by- 心靈捕手 http://61.70.203.175

問題: 
1.在系統控制台無法使用?


解答: 

# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_users.php

# 
#-----[ FIND ]------------------------------------------ 
# 
			if ( strlen($sig_length_check) > $board_config['max_sig_chars'] )

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
			if ( strlen($sig_length_check) > $board_config['max_sig_chars'] && $userdata['user_level'] != ADMIN)
			
# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------------- 
# 
#EoM 

###############################################################################
Sakura Moon ~ 櫻井璃月 ~
論壇系統管理員-Cloud Snow 晴雪
主題已鎖定

回到「PHPBB2-外掛列表」