cambridgedaz
08-10-2007, 10:56 AM
I have installed a birthday greeting mod on out forum, but it's action is to create a new thread each time there is a birthday. We would prefer our BOT to post in an existing thread we have set up.
As I am a bit of a n00b to all this I was hoping that someone might be able to help.
In the birthdaythread.php file this is the code to create a new thread:
$dataman =& datamanager_init('Thread_FirstPost', $vbulletin, ERRTYPE_SILENT, 'threadpost');
$dataman->set_info('forum', $foruminfo);
$dataman->set_info('thread', $threadinfo);
$dataman->setr('userid', $userinfo['userid']);
$dataman->setr('title', $subject);
$dataman->setr('pagetext', $message);
$dataman->set('visible', 1);
$dataman->set('allowsmilie', 1);
$dataman->set('showsignature', 1);
$dataman->setr('forumid', $foruminfo['forumid']);
$threadid = $dataman->save();
How would I go about modifying this to post into an existing thread instead? I have tried a few things but nothing seems to work! :confused:
As I am a bit of a n00b to all this I was hoping that someone might be able to help.
In the birthdaythread.php file this is the code to create a new thread:
$dataman =& datamanager_init('Thread_FirstPost', $vbulletin, ERRTYPE_SILENT, 'threadpost');
$dataman->set_info('forum', $foruminfo);
$dataman->set_info('thread', $threadinfo);
$dataman->setr('userid', $userinfo['userid']);
$dataman->setr('title', $subject);
$dataman->setr('pagetext', $message);
$dataman->set('visible', 1);
$dataman->set('allowsmilie', 1);
$dataman->set('showsignature', 1);
$dataman->setr('forumid', $foruminfo['forumid']);
$threadid = $dataman->save();
How would I go about modifying this to post into an existing thread instead? I have tried a few things but nothing seems to work! :confused: