I am trying to use some content a user enters to create a new thread in a forum of my choice.
Now key thing is that the user is not registered on board.
now trying this code
PHP Code:
$newpost = array(
'emailupdate' => 9999,
'userid' => X,
'username' => 'bot name',
'title' => $subj
);
eval('$newpost[message] = "' . fetch_template('contact_temp') . '";');
require_once(DIR . '/includes/functions_newpost.php');
$vbulletin->userinfo['userid'] = 1;
$vbulletin->userinfo['username'] = "bot name";
build_new_post('thread', $contact_foruminfo, array(), array(), $newpost, $errors);
*where X is the "bot"s userid
prob being that the thread is made but it comes up as moderated. Although i can see it as admin, but i would still prefer it not being shown as moderated. Anyway to do this?