Minimum Post Length »  Show posts from    to     

Icy Phoenix


Old Support Topics - Minimum Post Length



Jaculus [ Wed 14 Oct, 2009 01:07 ]
Post 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: [Hide] [Select]
elseif ($submit || $confirm || ($draft && $draft_confirm))
{
Should be around line 1094
REPLACE WITH
Code: [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;
}
}


Mighty Gorgon [ Wed 21 Oct, 2009 20:16 ]
Post subject: Re: Minimum Post Length
There is no need to install extra mods...

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

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


Adjust the red number to what you like...




Powered by Icy Phoenix