MyBB Community Forums

Full Version: Closed thread as strikeout in thread display.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there an easy way to make closed threads display with a strikeout text decoration in the thread display? I have no post icons at all, so I need a way to represent this.
You could use thread prefixes.
(2013-01-24, 10:52 PM)Leefish Wrote: [ -> ]You could use thread prefixes.

So I would need to change the prefix each time a thread was closed?
Open forumdisplay_thread. Find:

<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>

Replace with:

<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class} closed{$thread['closed']}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
(basically add a class of closed{$thread['closed']})

In global.css, add at the end:

closed1 {
text-decoration: line-through;
}
I used your code, it's adding the class correctly to the link, but it's not displaying correctly. I assume I have done something wrong with the CSS. If you get a chance, check out my page.

http://smiteforums.com/forum-2.html

Community Guidelines is a closed thread.

EDIT: Nevermind, all sorted. I put the class inside the <span> tag.