View Full Version : How do I allow duplicate messages?
Aristo
10-13-2004, 06:06 AM
I want to have a forum that will allow members to bump their messages a few times but when I attempt it I get a message
"This is a duplicate message...."
How do I get rid of that? :nervous:
I have vbulletin 3.0.0 Release Candidate 4
Aristo
10-14-2004, 08:35 PM
Anyone??
Thought I'd get some assistance here.
peterska2
10-14-2004, 08:42 PM
as long as the bump is at least one character different than one posted within 5 mins previous in that same thread then it should bump fine.
BTW you might want to consider upgrading to 3.0.3 from RC4 as there have been a few bug fixes.
Colin F
10-15-2004, 04:18 AM
...otherwise you'd have to remove the function that checks for the duplicate. It's somewhere in the functions_newpost.php, if I recall correctly.
You can turn it off by editing functions_newpost.php like so:
Find:
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'];
}
}
Replace with:
/*
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'];
}
}
*/
Aristo
10-15-2004, 03:27 PM
Thanks, I tried but it seemed not to work so I changed TIMENOW - 300 to TIMENOW - 1 and it works, thanks for sending me to the right file!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.