All pastes #239731 Raw Edit

Mine

public text v1 · immutable
·published 2006-11-05 13:27 UTC
rendered paste body
Incorrect answer in the release question (linked Dev thread).

MOD template with the extension .php. It has to be .txt or .mod

No license. Old disclaimer. Please read: http://www.phpbb.com/kb/article.php?article_id=38

Bigger length for admin in signatures_mod.php

IN_PHPBB not set or checked, and $phpbb_root_path not set. 

Need to use In-LINE actions
# 
#-----[ FIND ]------------------------------------------ 
# 
      if ( strlen($signature) > $board_config['max_sig_chars'] )

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
      if ( strlen($signature) > $board_config['max_sig_chars'] && $userdata['user_level'] != ADMIN)


To make this feature complete, don't forget admin_users.php
 if ( strlen($sig_length_check) > $board_config['max_sig_chars'] )

--------------------------------------------------------------------------------------------------

The MOD i Wrote:


############################################################## 
## MOD Title: Bigger length for admin in signatures  
## MOD Author: EY 
## MOD Description: Allows admins to have a longer signature then 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 my first MOD i ever make. Hope you like it.
## 		 was pretty easy.
## 
############################################################## 
## MOD History: 
## 
##   2006-10-28 - Version 1.0.0 
##      - Last 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