Hello there, we are able to automatically create a thread in vbulletin via API, but for some reason the author is being ignored. Here's the code:
The thread is properly added, but the author is set as the currently logged in user. How can we fix this?
Thank you.
Code:
$api->callApi('content_text', 'add', [ 'data' => [ 'publisheddate' => $time, [b]'userid' => 1 \\ <--- this is ignored 'authorname' => 'admin' \\ <--- this is ignored[/b] 'description' => 'test', 'pagetext' => '', 'rawtext' => $rawText, 'title' => $title, 'htmltitle' => $title, 'parentid' => env('VBULLETIN_POST_PARENTID'), 'created' => $time, 'lastcontent' => $time, [b]'lastcontentauthor' => 'admin' \\ <--- this is ignored 'lastauthorid' => 1 \\ <--- this is ignored[/b] ], ]);
Thank you.
Comment