You can just replace this:
Code:
$threadengine = $DB_site->query_first("SELECT enablewysiwyg FROM user WHERE userid='$bbuserinfo[userid]'");
if($threadengine[enablewysiwyg]){ eval("dooutput(\"".gettemplate("newthread_wysiwyg")."\");");
} else { eval("dooutput(\"".gettemplate("newthread")."\");"); }
With:
Code:
if($bbuserinfo['enablewysiwyg']) {
eval('dooutput("'.gettemplate('newthread_wysiwyg').'");');
} else {
eval('dooutput("'.gettemplate('newthread').'");');
}
No query needed.