Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Automatic Thread Closing Details »»
Automatic Thread Closing
Version: 1.80, by ralle89 ralle89 is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.x Rating:
Released: 11-18-2008 Last Update: Never Installs: 156
Uses Plugins
 
No support by the author.

Hello guys this is my first mod ported for 3.7, it still works on 3.6 though!

Features:
  • Make a list of forums to either restrict the add-on to or exclude the addon from the list
  • Option to close sticky threads or not
  • Enable/disable hack
  • Set timelimit
  • All settings can be set in ACP
  • Option to close thread after X amount of posts
  • Allow certain usergroups to bypass the hack
Why?
I was getting tired of all those people necro-posting, posting in threads that are up to three years old. This is my solution

Time to install:
Less than one minute

History:
1.00 release
1.10 threadbit display closed
1.20 all settings through ACP
1.30 close thread after reply-count
1.40 bugfix
1.50 dunno what I did
1.60 option to exclude or restrict to the list of forum ids


After billions of requests, I have finally done what you did!

Note
Don't forget to click Mark as Installed!
Also, my testing system is down but the worst this hack can cause is a syntax error.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
NeoDio

Comments
  #22  
Old 05-09-2009, 12:19 PM
ralle89 ralle89 is offline
 
Join Date: Oct 2005
Location: Denmark
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It simply checks the date and if it's too old and fits the right forum, it will appear locked. That's all. No database changes at all.
Reply With Quote
  #23  
Old 05-09-2009, 12:26 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
I would assume this runs via a cron job but I don't see anything listed under Scheduled Tasks...

I'm still curious as to how it's triggered...
Quote:
Originally Posted by ralle89 View Post
It simply checks the date and if it's too old and fits the right forum, it will appear locked. That's all. No database changes at all.
My question was: How is it triggered? It can't be running continuously, I assume. How often does it check for age of threads? And using what mechanism?
Reply With Quote
  #24  
Old 05-09-2009, 12:44 PM
ralle89 ralle89 is offline
 
Join Date: Oct 2005
Location: Denmark
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't you just view the code?
Well it runs when needed, it's not a cronjob. It just runs with showthread and modifies the output.
Reply With Quote
  #25  
Old 05-09-2009, 12:59 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ralle89 View Post
Can't you just view the code?
Well it runs when needed, it's not a cronjob. It just runs with showthread and modifies the output.
Thank you. There... was that so difficult?
Reply With Quote
  #26  
Old 05-09-2009, 05:50 PM
ralle89 ralle89 is offline
 
Join Date: Oct 2005
Location: Denmark
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lol. No not really.
Reply With Quote
  #27  
Old 05-10-2009, 11:18 AM
merkaz merkaz is offline
 
Join Date: Sep 2008
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So Nice

thanks
Reply With Quote
  #28  
Old 05-27-2009, 05:15 PM
masterme's Avatar
masterme masterme is offline
 
Join Date: Jan 2007
Location: Holland
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this also be used to close a thread automaticly after x posts have been made?
Reply With Quote
  #29  
Old 05-28-2009, 11:39 AM
Jalo Jalo is offline
 
Join Date: Apr 2009
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed but for some reason the icons do not indicate that the thread is closed. Any suggestions?

Manually closing a thread does show the right icon.

Jan
Reply With Quote
  #30  
Old 05-29-2009, 03:47 PM
ralle89 ralle89 is offline
 
Join Date: Oct 2005
Location: Denmark
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jalo View Post
Installed but for some reason the icons do not indicate that the thread is closed. Any suggestions?

Manually closing a thread does show the right icon.

Jan
Can you send a screenshot? Are you sure the thread lives up to the conditions of when it should be closed?

Quote:
Originally Posted by masterme View Post
Can this also be used to close a thread automaticly after x posts have been made?
yeah "Option to close thread after X amount of thread" is supposed to mean that :P
Reply With Quote
  #31  
Old 05-29-2009, 08:37 PM
my_aly's Avatar
my_aly my_aly is offline
 
Join Date: May 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
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:15 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.05602 seconds
  • Memory Usage 2,305KB
  • 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
  • (5)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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