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
  #12  
Old 10-21-2005, 10:49 PM
XFGHIA XFGHIA is offline
 
Join Date: Feb 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the plugin Chris, I also thought it would be good to have a closed thread in a different colour font, this shouldnt be hard for anyone to do anyway but this is what i done

if u used Chris M's plugin, edit the plugin and replace the PHP code with this code

Code:
if (!$thread['open'] && !$thread['sticky']) 
{
$thread[threadtitle] = '<span style="text-decoration: line-through;"><font color=red>' . $thread[threadtitle] . '</font></span>';
}
i set mine to red, choose wateva u want
Reply With Quote
  #13  
Old 10-21-2005, 11:20 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

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
Ok Chris cheers

Chris
Reply With Quote
  #14  
Old 10-21-2005, 11:29 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

Quote:
Originally Posted by XFGHIA
Thanks for the plugin Chris, I also thought it would be good to have a closed thread in a different colour font, this shouldnt be hard for anyone to do anyway but this is what i done

if u used Chris M's plugin, edit the plugin and replace the PHP code with this code

Code:
if (!$thread['open'] && !$thread['sticky']) 
{
$thread[threadtitle] = '<span style="text-decoration: line-through;"><font color=red>' . $thread[threadtitle] . '</font></span>';
}
i set mine to red, choose wateva u want
You should edit the <span> tag, not create a <font> tag:

PHP Code:
$thread[threadtitle] = '<span style="text-decoration: line-through; color: #FF0000;">' $thread[threadtitle] . '</span>'


Chris
Reply With Quote
  #15  
Old 10-22-2005, 11:46 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Chris already made a hack like this.
Reply With Quote
  #16  
Old 10-22-2005, 02:23 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

Cyricx actually made this first - I then posted a plugin version earlier in this thread, and Cyricx said I could release the plugin if I liked

Chris
Reply With Quote
  #17  
Old 10-29-2005, 02:54 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris M
Cyricx actually made this first - I then posted a plugin version earlier in this thread, and Cyricx said I could release the plugin if I liked

Chris

are you talking about the post in this thread? or did you make a complete different thread with your plugin?

(I'm always paranoid I'm not using the most recent version of something. lol)

ie: where should I download the plugin from?
Reply With Quote
  #18  
Old 11-08-2005, 02:07 AM
SoftWareRevue's Avatar
SoftWareRevue SoftWareRevue is offline
 
Join Date: Nov 2001
Location: Kalamazoo
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really like this. But, is there a way to display the strike through for search results?
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:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04217 seconds
  • Memory Usage 2,281KB
  • Queries Executed 24 (?)
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
  • (4)bbcode_code
  • (1)bbcode_php
  • (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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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