Quote:
Originally Posted by KirbyDE
In functions_newpost.php
FIND
PHP Code:
// ### DUPE CHECK ###
FIND
PHP Code:
// Redirect user to forumdisplay since this is a duplicate post
Comment out the block between these two lines.
|
by "Comment out" you mean delete?
Code:
// ### DUPE CHECK ###
$dupehash = md5($foruminfo['forumid'] . $post['title'] . $post['message'] . $bbuserinfo['userid'] . $type);
$prevpostfound = false;
$prevpostthreadid = 0;
if ($prevpost = $DB_site->query_first("
SELECT posthash.threadid
FROM " . TABLE_PREFIX . "posthash AS posthash
WHERE posthash.userid = $bbuserinfo[userid] AND
posthash.dupehash = '" . addslashes($dupehash) . "' AND
posthash.dateline > " . (TIMENOW - 300) . "
"))
{
if (($type == 'thread' AND $prevpost['threadid'] == 0) OR ($type == 'reply' AND $prevpost['threadid'] == $threadinfo['threadid']))
{
$prevpostfound = true;
$prevpostthreadid = $prevpost['threadid'];
}
}
// Redirect user to forumdisplay since this is a duplicate post
so, should I delete that code?
sorry KirbyDE but im a lil dumb :P