Advanced Minimum Post Length - nur in bestimmten Foren

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Saki
Mitglied
Beiträge: 25
Registriert: 31.01.2006 12:04

Advanced Minimum Post Length - nur in bestimmten Foren

Beitrag 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 
Antworten

Zurück zu „phpBB 2.0: Mod Support“