Minimum Characters Per Post
2 posters
Page 1 of 1
Minimum Characters Per Post
Minimum Characters Per Post
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.',
Re: Minimum Characters Per Post
Its been suggested here.
https://help.forumotion.com/t89869-allow-to-make-minimum-characters-for-posts#578071
Thread Garbaged.
https://help.forumotion.com/t89869-allow-to-make-minimum-characters-for-posts#578071
Thread Garbaged.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» How to add : Minimum Characters Per Post
» Minimum characters in a post?
» How do I change the minimum characters required for topic titles?
» Minimum characters limit.
» Can i make a minimum amount of characters?
» Minimum characters in a post?
» How do I change the minimum characters required for topic titles?
» Minimum characters limit.
» Can i make a minimum amount of characters?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum