2006-04-02, 09:22 PM
2006-04-02, 10:57 PM
Indeed there is - I'll post a fix in a few minutes after I apply the changes
2006-04-03, 12:11 AM
It was discussed here:
http://community.mybboard.net/showthread.php?tid=7519
http://community.mybboard.net/showthread.php?tid=7519
2006-04-03, 12:28 AM
1)
2) In newthread.php around line 532, find:
and add before:
3) Around line 543, find:
and replace with:
That should atleast stop the duplicate threads
ALTER TABLE `mybb_threads` ADD `posthash` TEXT NOT NULL;
^^ Replace mybb_ with your table prefix and then execute the query2) In newthread.php around line 532, find:
$newthread = array(
"fid" => $fid,
and add before:
$query = $db->query("SELECT COUNT(*) FROM ".TABLE_PREFIX."threads WHERE posthash='".addslashes($mybb->input['posthash'])."'");
$queryres = mysql_fetch_row($query);
if($queryres[0] > 0)
{
error("Sorry, but you already submitted this thread.");
}
3) Around line 543, find:
"visible" => $visible,
and replace with:
"visible" => $visible,
"posthash" => addslashes($mybb->input['posthash'])
That should atleast stop the duplicate threads