Minimum Post Length


Subject: Minimum Post Length
I recall the ability to set the minimum post length in an older version of a board I used with just PHPBB2 or maybe 3. I have been using IP for a year or so now and have begun having the problem of too many members just posting a simple "y" or worse yet a single smiley.

I have looked through the posts here and done some searches but I can not find a setting to limit the posts to require a minimum of a certain number of words or characters. Is this available for IP or as a mod?

Edit:

I just found my own answer. Found it on phpbbhacks site. It was a simple mod or hack designed for phpbb2 i think. Anyhow needed a few syntax changes to fit with IP,, I made it work by

OPEN Posting.php
FIND
Code: [Download] [Hide] [Select]
elseif ($submit || $confirm || ($draft && $draft_confirm))
{
Should be around line 1094
REPLACE WITH
Code: [Download] [Hide] [Select]
elseif ($submit || $confirm || ($draft && $draft_confirm))
{
if('mode' != "delete")
{
// Set up minimum post length
$briansTmp = $HTTP_POST_VARS['message'];
$briansTmp = trim($briansTmp);
if (strlen($briansTmp) < 9)
{
$error_msg = 'Message is too short.';
$error = true;
}
}

Profile PM  
Subject: Re: Minimum Post Length
There is no need to install extra mods...

OPEN templates/common/bbcb_mg.js
FIND
Code: [Download] [Hide] [Select]
if (document.forms[form_name].elements[text_name].value.length < 2)

REPLACE WITH
Code: [Download] [Hide] [Select]
if (document.forms[form_name].elements[text_name].value.length < 9)


Adjust the red number to what you like...


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Design by DiDiDaDo

Generation Time: 0.1744s (PHP: -71% SQL: 171%)
SQL queries: 29 - Debug On - GZIP Enabled