Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Strike through Closed thread title Details »»
Strike through Closed thread title
Version: 1.0.0, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-21-2005 Last Update: Never Installs: 133
Uses Plugins
 
No support by the author.

[high]Installation Instructions[/high]

Step 1: Upload the .xml file to the Product Manager
Step 2: Click [high]INSTALL[/high]

Idea by: Cyricx

[high]What does this Plugin do?[/high]

Basically, this will strike through thread titles on the forumdisplay (will not show with AJAX close until you refresh) but will not strike through sticky threads :devious:

[high]Are there any screenshots?[/high]

See post below

[high]Version History:[/high]

1.0.0: First release

Chris

Show Your Support

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

Comments
  #42  
Old 06-25-2006, 02:36 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So if you had a rules thread Closed and stickyed it would have a slash mark through it =\
________
vapir oxygen
Reply With Quote
  #43  
Old 06-25-2006, 06:51 PM
rgbivens rgbivens is offline
 
Join Date: Jun 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shazz
So if you had a rules thread Closed and stickyed it would have a slash mark through it =\
Thats why we need a per-forum strike through thread mod.

I only want it to be used in my 'reports' forum and 'contact us' forum. When Staff gets done with them they close it and it's obvious they have been worked.

But nobody will do it I guess...

-Grant
Reply With Quote
  #44  
Old 07-31-2006, 10:41 PM
xlguy's Avatar
xlguy xlguy is offline
 
Join Date: Feb 2004
Location: UK
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wondering whether the OP was able to make a 2nd mod where we could enable this feature on a per-forum basis? Otherwise should we have a go?
Reply With Quote
  #45  
Old 08-08-2006, 02:41 AM
rgbivens rgbivens is offline
 
Join Date: Jun 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xlguy
Just wondering whether the OP was able to make a 2nd mod where we could enable this feature on a per-forum basis? Otherwise should we have a go?
OP has not...It would be awesome if you could do it.

-Grant
Reply With Quote
  #46  
Old 08-09-2006, 10:15 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just use a simple conditional. Something like:
Code:
if (!$thread['open'] && !$thread['sticky'] && $forum['forumid'] != X) 
{
$thread[threadtitle] = '<span style="text-decoration: line-through;">' . $thread[threadtitle] . '</span>';
}
Reply With Quote
  #47  
Old 08-10-2006, 12:09 AM
xlguy's Avatar
xlguy xlguy is offline
 
Join Date: Feb 2004
Location: UK
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't that generate several queries for each thread title on every forumdisplay page?
Reply With Quote
  #48  
Old 08-10-2006, 01:12 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

... no. It's accessing the queries already performed by default.
Reply With Quote
  #49  
Old 08-11-2006, 01:42 PM
xlguy's Avatar
xlguy xlguy is offline
 
Join Date: Feb 2004
Location: UK
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The phrase is $foruminfo['forumid'] rather than $forum['forumid'] but otherwise thanks!

For those of you who want to turn this strike-through for just certain forums, here are the instructions:

Opt *in* forums for strike-through

1. Install the original mod as normal.
2. Go to Plugin System > Plugin Manager in AdminCP
3. Locate "Strike Through Closed Threads" hook and click [Edit]
4. Replace the code in there with:

Code:
if (!$thread['open'] && !$thread['sticky'] && $foruminfo['forumid'] == XX) 
{
$thread[threadtitle] = '<span style="text-decoration: line-through;">' . $thread[threadtitle] . '</span>';
}
Before you hit Save, change the XX in the code for the forum number you where you want strike throughs to appear.

Opt out of strike-through
As above, but use this code instead and replace XX with the forum you want to opt-out.

Code:
if (!$thread['open'] && !$thread['sticky'] && $foruminfo['forumid'] != XX) 
{
$thread[threadtitle] = '<span style="text-decoration: line-through;">' . $thread[threadtitle] . '</span>';
}
Thanks to Kirk for the suggestion, hopefully this is nicely packaged for people now
Reply With Quote
  #50  
Old 09-11-2006, 11:27 AM
Milchi Milchi is offline
 
Join Date: Jun 2005
Location: Nueremberg
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a 3.6 Port for this nice hack?
Reply With Quote
  #51  
Old 10-17-2006, 10:39 PM
SilentNoise's Avatar
SilentNoise SilentNoise is offline
 
Join Date: Jan 2003
Location: Edmonton, Alberta, Canada
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milchi
Is there a 3.6 Port for this nice hack?
Would like this as well
Reply With Quote
Reply


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 01:33 PM.


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.04750 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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