PDA

View Full Version : Anyone know how to automatically post in an existing thread?


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:

bmc
08-12-2007, 01:30 AM
Here are a couple of modifications that you could use:

Thread Auto Reply System (v2.0) (https://vborg.vbsupport.ru/showthread.php?t=135555)
Thread Auto Reply 1.0 (https://vborg.vbsupport.ru/showthread.php?t=135309)