Labrocca's way is not working for me, what am i missing? I edited forumdisplay.php and add the code to global.css but its still not working.
Nice thing, but unfortunately it screws up the function of this Mod.
http://mods.mybb.com/view/classic-author-column
As this Mod as a classic Author row to the forum, this tuturial removes that function again and makes it look weird.
You see in the screenshot. The first row is a post that I have closed, the second is a normal one. What do I need to edit, to make that looks fitting again ?
Any help is appreciated.
Wolfseye
^ @Kroketten, which method you have followed and give test url (of forum display, where you have closed thread)
Sorry for digging an old topic, but why does everyone has to do core edits for everything? The solution is simple...
Add this to
global.css:
.dot_lockfolder_strike, .dot_newlockfolder_strike, .dot_hotlockfolder_strike, .newlockfolder_strike, .lockfolder_strike, .hotlockfolder_strike, .newhotlockfolder_strike, .dot_newhotlockfolder_strike {text-decoration:line-through;}
In
forumdisplay_thread change:
<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">
to
<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class} {$folder}_strike" id="tid_{$inline_edit_tid}">
@Edited.
That's only partial solution, so it isn't as simple as you think.. $folder can also be
dot_lockfolder,
hotlockfolder,
newlockfolder,
newhotlockfolder etc. - your CSS only solves max. 10% of these cases.
So you rather need something like this:
a[class$="_strike"][class*="lock"] {
text-decoration:line-through;
}
It will match every
a whose class
ends with _strike and
contains lock.
Note: it works that way only if the _strike class is the last one. To work regardless of position, you need to change
$= to
*= too. Small demo of 3 instances of CSS:
http://jsfiddle.net/Destroy666/tHhw8/