I tried using datamanager to no avail
PHP Code:
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
if (!is_object($vbulletin->db))
{
exit;
}
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
require_once(DIR . '/includes/functions_misc.php');
global $vbulletin, $botpermissons, $vbphrase;
$userinfo = fetch_userinfo(1);
$threadinfo = array();
$foruminfo = fetch_foruminfo(10);
$threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_SILENT);
$threaddm->set_info('forum', $foruminfo);
$threaddm->set('forumid', $forumid);
$threaddm->set('userid', 1);
$threaddm->set('title', 'Title');
$threaddm->set('pagetext', 'Test thread create');
$threaddm->set('open', 1);
$threaddm->set('allowsmilie', 1);
$threaddm->set('visible', 1);
$threaddm->pre_save();
$threadid = $threaddm->save();
unset($threaddm);
log_cron_action('', $nextitem, 1);
?>