I think you measn to replace it with "$thread[closereason]" not "threadinfo[closereason]", right?
Also, I am really confused here. In the third line, you have $closereason but in lines 7 and 8 you have $thread[closereason]. Shouldn't that second line be $thread[closereason], also? Or am I missing the point again?

I'm just going by what you told me to replace in that last message.
PHP Code:
if ($thread[open]) {
$replyclose="https://vborg.vbsupport.ru/images/reply.gif";
$closereason="";
} else {
$replyclose="https://vborg.vbsupport.ru/images/threadclosed.gif";
if (trim($thread[closereason])) {
$thread[closereason]=bbcodeparse2($thread[closereason],0,1,1,1);
eval("\$thread[closereason] = \"".gettemplate("showthread_closereason")."\";");
} else {
$thread[closereason] = "";
}
}
Quote:
Originally posted by Xenon
yes it'll work.
the new code doesn't have strong codechanges, just a variable name has changed:
just replace all $closereason with $threadinfo[closereason] in this part of your code and in showthread template and you have the actualst version
|