The Arcive of vBulletin Modifications Site. |
|
Strike thread thread title on Closed NonSticky Thread Details »»
|
|||||||||||||||||||||||||||
|
Strike thread thread title on Closed NonSticky Thread
Developer Last Online: Dec 2011
This was requested by J82980BA3E43 in this thread
https://vborg.vbsupport.ru/showthread.php?t=98927 What this does is it will add a line through the thread title of a closed thread that is not a sticky. 1 Template edit and your done ![]() EDIT template -- threadbit FIND: Code:
<if condition="$show['gotonewpost']"> <strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong> <else /> <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a> </if> Code:
<!-- ##### START HACK - Strike through close threads ##### --> <if condition="($thread[open] == 0) AND ($thread[sticky] == 0)"> <if condition="$show['gotonewpost']"> <strong><strike><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strike></strong> <else /> <strike><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strike> </if> <else /> <if condition="$show['gotonewpost']"> <strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong> <else /> <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a> </if> </if> <!-- ##### END HACK - Strike through close threads ##### --> ![]() If you use the ajax moderation to close a thread you won't see the effects until you refresh the page. Though anyone just loading the page of course will see the strike. Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
It's too fricken early... will a mod please move this to the forumdisplay modifications forum :P
|
|
#3
|
||||
|
||||
|
Thanks, ticks install.
|
|
#4
|
||||
|
||||
|
Moving now.
|
|
#5
|
|||
|
|||
|
thanks for your fast answer, ticks install. :nervous:
|
|
#6
|
||||
|
||||
|
The [high]<strike>[/high] tag is not XHTML valid... Use:
HTML Code:
<span style="text-decoration: line-through;">...</span> ![]() Other than that, nice ![]() If you want a plugin version, use the one attached ![]() Chris |
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
|||
|
|||
|
Instead of doing the template edit you would go to your Admincp -> Plugin System -> Download / Upload Plugins -> Scroll to the very bottom of the screen and click Browse. Locate the file and then click Import.
Thanks Chris!!! If you want, release yours as a plugin and I'll have a moderator delete this thread
|
|
#10
|
|||
|
|||
|
Quote:
|
![]() |
|
|