Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

Reply
 
Thread Tools
Strike thread thread title on Closed NonSticky Thread Details »»
Strike thread thread title on Closed NonSticky Thread
Version: 1.00, by Cyricx Cyricx is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-20-2005 Last Update: Never Installs: 22
 
No support by the author.

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>
REPLACE IT WITH:
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 ##### -->
Done

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-21-2005, 12:32 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's too fricken early... will a mod please move this to the forumdisplay modifications forum :P
Reply With Quote
  #3  
Old 10-21-2005, 12:49 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, ticks install.
Reply With Quote
  #4  
Old 10-21-2005, 12:53 PM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Moving now.
Reply With Quote
  #5  
Old 10-21-2005, 01:01 PM
J82980BA3E43 J82980BA3E43 is offline
 
Join Date: May 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for your fast answer, ticks install. :nervous:
Reply With Quote
  #6  
Old 10-21-2005, 03:42 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 10-21-2005, 05:57 PM
trancetopia trancetopia is offline
 
Join Date: Feb 2005
Location: Wales, UK.
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris M
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
Awesome, thanks Chris.
Reply With Quote
  #8  
Old 10-21-2005, 06:28 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris M
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
Chris, where do I add that XML? What I mean is that I know where to add the XML to in HOOK location?
Reply With Quote
  #9  
Old 10-21-2005, 08:48 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 10-21-2005, 08:54 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx
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
omg, how dumb am I?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04463 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete