How do I remove the anti-spamming duplicate check? - 12/15/2002 11:31 PM
Ubb threads 6.0.2
I removed this from the addpost.php file:
// ----------------------------------------------------------------
// Now we need to see if this post has already been made, basically
// protects from spamming
$query = "
SELECT B_Number
FROM w3t_Posts
WHERE B_Username = '$Username_q'
AND B_Subject = '$Subject_q'
AND B_Body = '$BodySig'
AND B_Board = '$Board_q'
";
$sth = $dbh -> do_query($query);
list($B_Number) = $dbh -> fetch_array($sth);
if ($B_Number) {
$html -> not_right($ubbt_lang['NO_DUPS'],$Cat);
}
Now this let me post two replies with the same subject and no body...which is what the users want to be able to do. But when I posted 2 new threads it resulted in errors viewing those 2 threads/topics:
"There was a problem looking up the post in our database"
Does anyone have suggestions as to how I can allow users to reply to different topics with the same response they had in another topic in the same forum?
Thanks.
I removed this from the addpost.php file:
// ----------------------------------------------------------------
// Now we need to see if this post has already been made, basically
// protects from spamming
$query = "
SELECT B_Number
FROM w3t_Posts
WHERE B_Username = '$Username_q'
AND B_Subject = '$Subject_q'
AND B_Body = '$BodySig'
AND B_Board = '$Board_q'
";
$sth = $dbh -> do_query($query);
list($B_Number) = $dbh -> fetch_array($sth);
if ($B_Number) {
$html -> not_right($ubbt_lang['NO_DUPS'],$Cat);
}
Now this let me post two replies with the same subject and no body...which is what the users want to be able to do. But when I posted 2 new threads it resulted in errors viewing those 2 threads/topics:
"There was a problem looking up the post in our database"
Does anyone have suggestions as to how I can allow users to reply to different topics with the same response they had in another topic in the same forum?
Thanks.