Quote:
Originally Posted by ragtek
I have a problem
I want to reply automatic when a event is postet
i have this code:
PHP Code:
if ($foruminfo['forumid'] == 34)
{
$postdm =& datamanager_init('Post', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$postdm->set_info('forum', $foruminfo);
$postdm->set_info('thread', $threadinfo);
$postdm->set('threadid', $threadinfo['threadid']);
$postdm->set('userid', 150);
$postdm->set('pagetext', '[SHOWTOGROUPS="10"]Folge dem wei?en Wolf!
[/SHOWTOGROUPS]');
$postdm->set('allowsmilie', 1);
$postdm->set('visible', 1);
$postdm->set('dateline', TIMENOW);
$postdm->save();
}
hook: newthread_post_complete
it works great in all forums but not in the event forum!
what must i change?
|
mmm I can't really see why this wouldn't work.
1 thing I could suggest trying, is changing the execution order of that plugin to 4, or 6. 4 will get run before my code, 6 after. 1 of them might work.