MyBB Community Forums

Full Version: [Tutorial] Strikethrough Closed Threads [Minor Code Tweak]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(2009-11-18, 06:32 PM)FullMetalBabe Wrote: [ -> ]
(2009-11-18, 05:42 PM)Glas Wrote: [ -> ]i did not understand what does this tweak

¿Could anyone explain me please?

P.D i am native spanish so my english is not perfect

Makes the thread striked when a admin or mods closes it.

Like:

This COULD be a closed topic on your forum with the edits on this thread
DO WANT Heart

* Glas is installing it
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.

[Image: w0NIv.jpg]

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
Don't use plugin for Classic Author Column. Do it manually by template edit.:
http://community.mybb.com/thread-101466-...#pid739477

Or find in the forum display template, it looks one col span is required more in tcat.
(2012-06-22, 10:26 AM)Heartless Wrote: [ -> ]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.

Same here!!
How can I use the same style as the rest of the posts?
http://prntscr.com/1pj2zp
^ @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/
Pages: 1 2 3