PDA

View Full Version : how do I dissable the duplicate thread posting limit?


Dado
06-03-2005, 12:21 AM
if I post the same thread in the last 5 minutes it will give me a message that it's a duplicate post. How can I edit this to dissable this feature. Thank you.

Andreas
06-03-2005, 12:26 AM
In functions_newpost.php

FIND

// ### DUPE CHECK ###


FIND

// Redirect user to forumdisplay since this is a duplicate post


Comment out the block between these two lines.

COBRAws
06-29-2005, 03:47 AM
In functions_newpost.php

FIND

// ### DUPE CHECK ###


FIND

// Redirect user to forumdisplay since this is a duplicate post


Comment out the block between these two lines.
by "Comment out" you mean delete?


// ### 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

Adrian Schneider
06-29-2005, 04:52 AM
Place // in front to comment a line out
or put /* (code you want to comment out) */ to comment out more lines

COBRAws
06-29-2005, 03:29 PM
Thank you TheSpecialist and KirbyBE