The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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:
Code:
$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));
|
|
#2
|
||||
|
||||
|
You could check on frontend controller "createcontent" functions "actionTextNodeInternal" and "getEventInput". Also at "API/Content/event.php"
Your callApi should be "content_event". |
|
#3
|
||||
|
||||
|
Quote:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|