hi,
You must create a datamanager instance set the things you want to set check for errors and finally when things are ok save them
PHP Code:
$threaddm =& datamanager_init('Thread_FirstPost',$vbulletin,ERRTYPE_ARRAY,'threadpost');
$threaddm->setr('forumid',$destforum);
$threaddm->setr('title','');
$threaddm->setr('pagetext','');
$threaddm->set('userid','');
$threaddm->set('open',1);
$threaddm->set('visible',1);
$threaddm->set('allowsmilie',1);
$threaddm->set_info('forum',$newforuminfo);
$threaddm->set_info('thread',array());
$threaddm->pre_save();
if(!empty($threaddm->errors))
{
print_r($threaddm->errors);
exit;
}
else
{
$newthreadid = $threaddm->save();
}
now you have at least an idea howto do it $newforuminfo is coming from a fetch_foruminfo(); call