Can someone help me... I look into my cod, and see that i have install other hack that can`t work with this hack
It is Remove the Reply link when the thread is closed (by nakkid).
PHP Code:
01. Open showthread.php and find the code:
code:
------------------------------------
if ($thread[open]) {
$replyclose="{replyimage}";
} else {
$replyclose="{closedthreadimage}";
}
------------------------------------
Replace it with:
code:
------------------------------------
if ($thread[open]) {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyopen")."\";");
} else {
if (ismoderator($thread[forumid],'canopenclose')) {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosedmod")."\";");
} else {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosed")."\";");
}
}
------------------------------------
and this hack have:
PHP Code:
----------------------------------------------
Step 2: Edit Showthread.php (1 Modification)
----------------------------------------------
Find:
if ($thread[open]) {
$replyclose="https://vborg.vbsupport.ru/images/reply.gif";
} else {
$replyclose="https://vborg.vbsupport.ru/images/threadclosed.gif";
}
Replace with:
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("\$closereason = \"".gettemplate("showthread_closereason")."\";");
} else {
$closereason = "";
}
}
What I should make that both worked hacks
PS. now i have this part of cod in showthread.php
PHP Code:
// Remove the Reply link when the thread is closed
if ($thread[open]) {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyopen")."\";");
} else {
if (ismoderator($thread[forumid],'canopenclose')) {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosedmod")."\";");
} else {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosed")."\";");
}
}
// Remove the Reply link when the thread is closed