2009-11-18, 12:08 AM
Here is a simple way.
Open forumdisplay.php
Find the line:
Replace with:
Then go to Templates & Styles -> Templates -> Your Template Set, And add a template called.
forumdisplay_closedthread
With the following template inserted:
Open forumdisplay.php
Find the line:
eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
Replace with:
if($thread["closed"] == 1)
{
eval("\$threads .= \"".$templates->get("forumdisplay_closedthread")."\";");
}
else
{
eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
}
Then go to Templates & Styles -> Templates -> Your Template Set, And add a template called.
forumdisplay_closedthread
With the following template inserted:
<tr>
<td align="center" class="{$bgcolor}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>
<td class="{$bgcolor}">
{$attachment_count}
<div>
<span>{$prefix} {$gotounread}<s><a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a></s>{$thread['multipage']}</span>
<div class="author smalltext">{$thread['profilelink']}</div>
</div>
</td>
<td align="center" class="{$bgcolor}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
<td align="center" class="{$bgcolor}">{$thread['views']}</td>
{$rating}
<td class="{$bgcolor}" style="white-space: nowrap; text-align: right;">
<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
</td>
{$modbit}
</tr>