PDA

View Full Version : Automatic Thread Creating with Dataman...


Jaxel
04-21-2010, 12:08 AM
I'm using the following datamanager calls to automatically create a thread and first post in one of my mods...

$threadman =& datamanager_init('Thread_FirstPost', $vbulletin, ERRTYPE_STANDARD, 'threadpost');
$threadman->setr_info('user', $vbulletin->userinfo);
$threadman->set_info('skip_moderator_email', true);
$threadman->set_info('skip_floodcheck', true);
$threadman->set_info('skip_charcount', true);
$threadman->set_info('skip_title_error', true);
$threadman->set_info('parseurl', true);
$threadman->set('allowsmilie', true);
$threadman->set('visible', true);
$threadman->set('open', false);;
$threadman->set('taglist', $media['tagcache']);
$threadman->set('forumid', $vbulletin->options['media_submit_forum']);
$threadman->set('userid', $vbulletin->userinfo['userid']);
$threadman->set('title', $title);
$threadman->set('pagetext', $pagetext);
$threadman->save();


This worked great in VB3.8, and still "works" now in VB4. However, its having a small issue in VB4 where it doesn't update the forum information. It doesn't update the last post information for the forum... it doesn't get added to the new forum posts widget either... Is there something I am missing?