Okay, here's the fix:
In editpost.php look for:
Code:
require_once('./includes/functions_editor.php');
Below that add:
Code:
require_once('./includes/spambuster-libs.php');
In editpost.php look for:
Code:
build_post_index($postid , $foruminfo);
$url = "showthread.php?$session[sessionurl]p=$postid#post$postid";
eval(print_standard_redirect('redirect_editthanks'));
Above that add:
Code:
sb_test( $edit['title'], $edit['message'] );
if ( $foruminfo['moderatenewpost'] == 1 )
{
$thepost = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "post WHERE postid = $postid");
// First post in thread?
if ( $thepost['parentid'] == 0 )
{
$hidetype = "thread";
$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET visible=0 WHERE threadid = $threadinfo[threadid]");
}
else
{
$hidetype = "post";
}
$DB_site->query("UPDATE " . TABLE_PREFIX . "post SET visible=0 WHERE postid = $postid");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "moderation WHERE postid = $postid");
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "moderation (threadid, postid, type )
VALUES ($threadinfo[threadid], $postid, '$hidetype')" );
}
Could be done more efficiently but I threw it together in 15 minutes and it works.