eagle8x at 21h48
25
Apr
2011
I saw this hackmod from phpbb com. Users must type at least a number of characters before submitting new post.
- Code:
#
#-----[ OPEN ]-----------------------
#
includes/message_parser.php
#
#-----[ FIND ]------------------------
#
// Check for "empty" message
if ($mode !== 'sig' && !utf8_clean_string($this->message))
{
$this->warn_msg[] = $user->lang['TOO_FEW_CHARS'];
return $this->warn_msg;
}
#
#-----[ AFTER, ADD ]----------------
#
// Check for character limit
if ($mode !== 'sig' && strlen(utf8_clean_string($this->message)) < 30)
{
$this->warn_msg[] = $user->lang['TOO_FEW_CHARS_POST'];
return $this->warn_msg;
}
#
#-----[ OPEN ]-----------------------
#
language/en/posting.php
#
#-----[ FIND ]------------------------
#
'TOO_FEW_CHARS' => 'Your message contains too few characters.',
#
#-----[ AFTER, ADD ]----------------
#
'TOO_FEW_CHARS_POST' => 'Your message contains too few characters. The message must be at least 30 characters length.',
Similar topics
Hi, I am just wondering if it's possible to change the minimum characters 'law' on topic titles? I think it's something like eight characters and the title I am wanting to use has five.
i wanna suggest..
like for example a forum administrator would require the members to post in more than 20 characters and if a member would post less than the required minimum characters.. he/she will be automatically warned about it.. like a message
There should be a selection to make it so you can make a minimum and maximum amount of characters for a post to help prevent spamming for people's website who want it
Replies 1 to 0 on 0 for "Minimum Characters Per Post"
Search
Informations
0 Replies For the topic :
"Minimum Characters Per Post"
This topic has been viewed 912 times.
Last message :
25/04/2011 at 21h48 by "eagle8x"





