MobileHacks
New Member
Not so much a plugin, more a little code modification. It moderates any first posts which contains 'www' or 'http' and posts the post to a thread of your choice (presumably in a private forum) - the idea being that you can re-approve any false positives. Simple I know, but it has cut out the majority of my spam.
The change goes in includes/functions_newpost.php , around line 353 (depending on your VB version)
just after:
and just before:
More info
The change goes in includes/functions_newpost.php , around line 353 (depending on your VB version)
PHP:
if ($vbulletin->userinfo['posts'] == 0) {
if ((strpos($post['message'], "http") > 0) || (strpos($post['message'], "www.") > 0) || (strpos($post['message'], "www ") > 0) ) {
$dataman->set('visible', 0);
$post['visible'] = 0;
$pete_post = "The following post by . ""]" .
$vbulletin->userinfo['username'] . " has been auto-unapproved:
" . $post['message'] . "
\n";
$vbulletin->db->query_write("INSERT INTO post (threadid, parentid, username,userid, pagetext, dateline, visible) VALUES
(162262, 0, 'bot', 183720, \"" . mysql_escape_string($pete_post) . "\", " . time() . ", 1)");
$vbulletin->db->query_write("UPDATE thread SET replycount=replycount + 1 WHERE threadid='162262'");
}
}
PHP:
else
{
$dataman->set('visible', 1);
$post['visible'] = 1;
}
PHP:
if ($type != 'thread')
{
if ($postinfo['postid'] == 0)
{