Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Strike-Through Closed Topic Titles Details »»
Strike-Through Closed Topic Titles
Version: 1.00, by ja5es ja5es is offline
Developer Last Online: Dec 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-21-2002 Last Update: Never Installs: 52
 
No support by the author.

I made this hack basied off an idea of another forum I saw (non vB).

When a thread is closed, sometimes the normal thread closed folder icon isn't enough. This hack makes the titles of locked threads have a line through them, just to make it clear that they are locked.

I know it's kind of a simple hack, but hey, it's my first one!

Here's a screen shot of it in action:

Show Your Support

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

Comments
  #12  
Old 08-22-2002, 04:10 PM
Funkie Funkie is offline
 
Join Date: Nov 2001
Location: uk
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about instead of strike through,have a lill locked icon or [Closed] Text on it??????

Would that be able to be done.

/me clicks install
Reply With Quote
  #13  
Old 08-22-2002, 05:41 PM
Vile's Avatar
Vile Vile is offline
 
Join Date: Apr 2002
Location: Arizona, USA
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool hack.
Installed just fine
Reply With Quote
  #14  
Old 08-22-2002, 07:12 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

I like it

Great job

Satan
Reply With Quote
  #15  
Old 08-22-2002, 07:39 PM
Obi-Wan Obi-Wan is offline
 
Join Date: Feb 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

clicked install.

But I wonder if something like this is possible:

Make an option in the bottom admin options to select wether you like to kust close the thread (incase you only wanna make a thread wich people read, and instead of an announcement) and an option were you can select the strikethrough.
Reply With Quote
  #16  
Old 08-22-2002, 07:48 PM
ja5es ja5es is offline
 
Join Date: Nov 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Funkie
How about instead of strike through,have a lill locked icon or [Closed] Text on it??????

Would that be able to be done.

* Funkie clicks install
Ok that's easy too. If you've already installed it, find this in forumdisplay.php:
PHP Code:
if (!$thread[open]) {
        
$thread[newoldhot]='lock'.$thread[newoldhot];
    
// Strike-Through Hack
    
$thread[title] = "<span class='locked'>$thread[title]</span>";
    
// End Strike-Through Hack
      

And change it to this:
PHP Code:
if (!$thread[open]) {
        
$thread[newoldhot]='lock'.$thread[newoldhot];
    
// Strike-Through Hack
    
$thread[title] = "[CLOSED]thread[title]";
    
// End Strike-Through Hack
      

As for the option to turn it on or off, I might look into that.
Reply With Quote
  #17  
Old 08-22-2002, 08:02 PM
Funkie Funkie is offline
 
Join Date: Nov 2001
Location: uk
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice 1 fella
thanx.

That gives the words in the topic as [CLOSED]thread[title]
Is that right???

Thanx again for the quick reply
Reply With Quote
  #18  
Old 08-22-2002, 08:40 PM
Mr L Mr L is offline
 
Join Date: Jan 2002
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, I've clicked installed!

Slightly off topic, I asked in the request section, would it be possible to create some user code to do this for text. For example...

<STRIKE>Harvey</STRIKE>

...would produce my name with a line through it. If anyone can help here as well, I'd appricate it.

Thanks.
Reply With Quote
  #19  
Old 08-22-2002, 08:41 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much for the hack.

Most of the tims admins hve to stick a thread and close it, you can see it even in this forum.

It does not look nice if a sticky thread posted by the admin was Striked-Through

any solutin for that

Thanks again
Reply With Quote
  #20  
Old 08-23-2002, 01:14 AM
ja5es ja5es is offline
 
Join Date: Nov 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by HLodder
Nice hack, I've clicked installed!

Slightly off topic, I asked in the request section, would it be possible to create some user code to do this for text. For example...

<STRIKE>Harvey</STRIKE>

...would produce my name with a line through it. If anyone can help here as well, I'd appricate it.

Thanks.
That doesn't really require a hack, if you just go to your Admin CP and then look under Custom vB Codes you choose "Add".

Then just make the vB code tag [strike], the vb code replacement
Code:
<span style="TEXT-DECORATION: LINE-THROUGH;">{param}</span>
and then save it, it'll work whenever someone type [strike]something[/strike].
Reply With Quote
  #21  
Old 08-23-2002, 03:02 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea.
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 11:12 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.14620 seconds
  • Memory Usage 2,305KB
  • Queries Executed 27 (?)
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
  • (1)bbcode_code
  • (2)bbcode_php
  • (2)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_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