Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Strikethrough Closed Threads [Minor Code Tweak]
#11
This user has been denied support. This user has been denied support.
(11-18-2009, 06:32 PM)FullMetalBabe Wrote:
(11-18-2009, 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
Reply
#12
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.
Reply
#13
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
Reply
#14
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.
[Image: logo.svg.svg]
Reply
#15
(06-22-2012, 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!!
[Image: 5dMOCPt.png]
Reply
#16
How can I use the same style as the rest of the posts?
http://prntscr.com/1pj2zp
Reply
#17
^ @Kroketten, which method you have followed and give test url (of forum display, where you have closed thread)
Reply
#18
http://www.iksdee.nl - http://www.iksdee.nl/Forum-test-mij--45
Reply
#19
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.
Reply
#20
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/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)