
04-25-2008, 10:09 PM
|
|
|
|
Join Date: Jan 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Automatic Thread Creation
I am trying to have thread automatically created when it is someones birthday. Right now it just updates the Title and doesnt add a reply to the thread this is code the I have for the reply part:
PHP Code:
build_new_post('reply', $foruminfo, $threadinfo, $postinfo, $newpost, $errors);
$dataman =& datamanager_init('Post', $vbulletin, ERRTYPE_CP, 'threadpost');
$dataman->set_info('forum', $foruminfo);
$dataman->set_info('thread', $threadinfo);
$dataman->set('threadid', $birthdaythreadid);
$dataman->set('parentid', 677708);
$dataman->setr('userid', $userinfo['userid']);
$dataman->setr('pagetext', $message);
$dataman->set('visible', 1);
$dataman->set('allowsmilie', 1);
$postid = $dataman->save();
Any help is greatly accepted
|