Seite 1 von 1

Advanced Minimum Post Length - nur in bestimmten Foren

Verfasst: 27.03.2006 09:04
von Saki
N guten Morgen ^.-

ist es irgendwie möglich folgenden Mod nur für bestimmte Foren zu verwenden?

Code: Alles auswählen

#################################################################
##   Hack Title:   Advanced Minimum Post Length	
##                 
##   Author:       Brian Crescimanno <darksheer@phorce.com>
##                 http://www.phorce.com
##   Based on:	   Billy Sauls (Nivisec's) hack
##   Description:  Allows you to set a minimum post length
##    		   Checks for "whitespace hacks" as well as
##		   Fixes a bug which caused any user to be
##                 able to delete an entire thread
##
##   Compatibility:   2.0.x
## 
##   Support:      http://www.phpbbhacks.com/forums 
##   Copyright:      ©2003 Billy Sauls
##   Copyright:    ©2004 Brian Crescimanno
## 
#################################################################
# 
#-----[ OPEN ]------------------------------------------ 
# 
posting.php

# 
#-----[ FIND ]------------------------------------------ 
# 
else if ( $submit || $confirm )
{

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
# Here you can change 9 to the minimum amount you want and you
# can also specify your own error message.  Just change the
# 'Message is too short.' phrase to suit you.  NOTE:  9
# is the number of characters needed to ensure that no single
# default emote (smiley) can be used as a response.

        if($HTTP_POST_VARS['mode'] != "delete")
        {
        	// Set up minimum post length
       		$briansTmp = $HTTP_POST_VARS['message'];
       		$briansTmp = trim($briansTmp);
        	if (strlen($briansTmp) < 9)
        	{
                	$error_msg = 'Message too short.';
                	$error = true;
        	}
        }


# 
#-----[ SAVE & CLOSE ALL FILES ]-------------------------- 
# 
#End