Nice Hack, though I prefer Hacks with less file edits
To get rid of the class_dm_threadpost.php file edits:
threaddata_start, threadfpdata_start
PHP Code:
$this->validfields['moderated'] = array(TYPE_UINT, REQ_NO, 'return verify_moderated(&$dm, &$data);');
if (!function_exists('verify_moderated'))
{
function verify_moderated(&$dm, &$moderated)
{
if ($sticky != 1)
{
$sticky = 0;
}
if ($dm->condition AND !$dm->info['skip_moderator_log'])
{
require_once(DIR . '/includes/functions_log_error.php');
if ($this->fetch_field('moderated'))
{
$logtype = fetch_modlogtypes('unmoderatedthread');
}
else
{
$logtype = fetch_modlogtypes('moderatedthread');
}
$dm->modlog[] = array('userid' => intval($dm->registry->userinfo['userid']), 'type' => intval($logtype));
}
return true;
}
}
To get ird of the functions_log_error.php edits (requires vBulletin >= 3.5.1):
fetch_modlogtypes
PHP Code:
$modlogtypes['moderatedthread'] = 31;
$modlogyptes['unmoderatedthread'] = 32;
fetch_modlogactions
PHP Code:
$modlogactions[31] = 'moderatedthread';
$modlogactions[32] = 'unmoderatedthread';
To get rid of the inline.php file edit
inlinemod_action_switch
PHP Code:
if ($_REQUEST['do'] == 'moderatethread' OR $_REQUEST['do'] == 'unmoderatethread')
{
if (empty($vbulletin->GPC['tlist']))
{
eval(standard_error(fetch_error('you_did_not_select_any_valid_threads')));
}
if (count($vbulletin->GPC['tlist']) > $threadlimit)
{
eval(standard_error(fetch_error('you_are_limited_to_working_with_x_threads', $threadlimit)));
}
$threadids = implode(',', $vbulletin->GPC['tlist']);
$handled_do = true;
}
To get rid of the postings.php file edit
PHP Code:
if ($_REQUEST['do'] == 'moderathethread')
{
if (!$threadinfo['threadid'])
{
eval(standard_error(fetch_error('invalidid', $vbphrase['thread'], $vbulletin->options['contactuslink'])));
}
$handled_do = true;
}
To get rid of the functions_newpost.php file edit
newpost_process
PHP Code:
if ($threadinfo['moderated'])
{
$dataman->set('visible', 0);
$post['visible'] = 0;
}
All those Plugins are untested, but should work theoretically.