PHP Code:
require_once('./global.php');
require_once(DIR . '/includes/class_dm.php');
require_once(DIR . '/includes/class_dm_threadpost.php');
$threadid = 1;
$forumid = 1;
$threadinfo = fetch_threadinfo($threadid);
$foruminfo = fetch_foruminfo($forumid);
$text = 'Hello World';
$postdm =& datamanager_init('Post', $vbulletin, ERRTYPE_STANDARD, 'threadpost');
$postdm->set_info('thread', $threadinfo);
$postdm->set_info('forum', $foruminfo);
$postdm->set('threadid', $threadid);
$postdm->set('userid', 1);
$postdm->set('pagetext', $text);
$postdm->set('allowsmilie', 1);
$postdm->set('visible', 1);
$postdm->set('dateline', TIMENOW);
$postdm->save();
Its missing databuild but I assume you dont need this as you can easily update the counters when you finish importing.