Quote:
Originally Posted by KirbyDE
Just some idea:
Create a new setting and call it flagwords.
In functions_newpost.php
FIND
PHP Code:
// ### DUPE CHECK ###
ABOVE that ADD
PHP Code:
if (!empty($vboptions['flagwords']))
{
$found = false;
$lcpost = strtolower($post['message']);
foreach (explode(' ', strtolower($vboptions['flagwords'])) as $flagword)
{
$found |= strpos($lcpost, $flagword);
}
if ($found) {
$post['visible'] = 0;
}
}
Then posts containing any of the words in flagwords will go into moderation.
|
What do you mean the flagged words would go into moderation? And is there anyway to have it send an e-mail to the person that made the post with a comment on why the post didn't show up?