The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
||||
|
||||
|
In functions_newpost.php
FIND PHP Code:
PHP Code:
|
|
#3
|
||||
|
||||
|
Quote:
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
sorry KirbyDE but im a lil dumb :P |
|
#4
|
||||
|
||||
|
Place // in front to comment a line out
or put /* (code you want to comment out) */ to comment out more lines |
|
#5
|
||||
|
||||
|
Thank you TheSpecialist and KirbyBE
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|