BulliM
11-10-2020, 10:28 AM
How to post an event by vBulletin API? What do I have to define, if I want to post automatically as event? My code so far:
$input = array(
'hvinput' => '',
'title' => 'Title of new event post',
'rawtext' => 'HTML content of new event post',
'parentid' => 10,
'channelid' => 10,
'nl2br' => false,
'htmlstate' => 'on',
'disable_bbcode' => true,
'tags' => 'post,newpost'
);
$options = array(
'skipDupCheck' => true
);
$nodeId = $api->callApi('content_text', 'add', array($input, $options));
$input = array(
'hvinput' => '',
'title' => 'Title of new event post',
'rawtext' => 'HTML content of new event post',
'parentid' => 10,
'channelid' => 10,
'nl2br' => false,
'htmlstate' => 'on',
'disable_bbcode' => true,
'tags' => 'post,newpost'
);
$options = array(
'skipDupCheck' => true
);
$nodeId = $api->callApi('content_text', 'add', array($input, $options));