Quote:
Originally posted by FireFly
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.
|
I was wondering this myself when writing that part of the hack, but now I know this can be done. Thanks FireFly
Be sure to make this change in the next bug fix eiSecure
Quote:
Originally posted by FireFly
[B]Shouldn't it translate the vB Code back to visual when you edit a post? I can see the and all that.
|
Yeah I've noticed this too in some spots, there are still a few kinks to get out..