here is the right code as your made the name wrong like befor.. and thanks the sig works now to..
this
PHP Code:
$threaddm->do_set('userid', $userid);
should be this
PHP Code:
$threaddm->do_set('userid', $postuserid);
PHP Code:
// Start thread create
$threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);
$username = htmlspecialchars_uni($username);
$allowsmilie = '1';
$visible = '1';
$sig = '1'; //show signature 1/on 0/off
eval('$pagetext .= "' . fetch_template('welcome_thread') . '";');
// Insert thread
$threaddm->do_set('forumid', $forumid);
$threaddm->do_set('postuserid', $postuserid);
$threaddm->do_set('userid', $postuserid);
$threaddm->do_set('username', $postusername);
$threaddm->do_set('pagetext', $pagetext);
$threaddm->do_set('title', $title);
$threaddm->do_set('allowsmilie', $allowsmilie);
$threaddm->do_set('visible', $visible);
$threaddm->do_set('showsignature', $sig);
$tid = $threaddm->save();