OK, i've almost figured out how to manually start a new thread. I can get the thread to be started with the first post with the correct username in the correct forum but I am having 3 problems.
1. The user post count is not being updated.
2. I don't know how to pass $postid from
build_new_post to
build_new_index
3. My search index is not being rebuilt (ie. posts aren't becoming searchable)
Here's what i have. What am i doing wrong?
PHP Code:
require_once('./global.php');
require_once(DIR . '/includes/functions_newpost.php');
require_once(DIR . '/includes/functions_databuild.php');
$post['title'] = "here is my catchy title";
$post['message'] = "some fabulous message.";
$foruminfo['forumid'] = 2;
build_new_post('thread', $foruminfo, $threadinfo, $postinfo, &$post, &$errors);
build_post_index($postid, $foruminfo['forumid'], -1);