Icy Phoenix

     
 

Minimum Post Length

Minimum Post Length

Article
Reply with quote    Download Post  
Post 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;
            }
        }




 
Jaculus - View user's profile Send private message  
Jaculus [ Wed 14 Oct, 2009 01:07 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


Minimum Post Length

Comments
Reply with quote    Download Post  
Post 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...



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Wed 21 Oct, 2009 20:16 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1