Quote:
Originally Posted by WildSharky
nope dont work i get this error
Fatal error: Cannot pass parameter 2 by reference in /usr/home/sharky/public_html/forums/register.php(419) : eval()'d code on line 31
thats where i put it
|
In keeping with the same format for the rest of the plugin, use the following instead. (It didn't work previously cause I forgot the single quotes around the one)
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', $userid);
$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();