
08-07-2008, 04:34 AM
|
|
|
|
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
PHP Code:
$threaddm =& datamanager_init('Thread_FirstPost', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$foruminfo = fetch_foruminfo(forumid);
$threaddm->set_info('forum', foruminfo);
$threaddm->set('forumid', $foruminfo['forumid']);
$threaddm->set('userid', userid);
$threaddm->set('title', title);
$threaddm->set('pagetext', message);
$threaddm->set('allowsmilie', 0);
$threaddm->set('visible', 1);
$threaddm->set('dateline', TIMENOW);
if($threaddm->errors){
Do something about the error
}
}
else{
$threadid=$threaddm->save();
}
|