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

Reply
 
Thread Tools
Autoclose Thread After X Days Inactivity (Works from date of last post in thread!) Details »»
Autoclose Thread After X Days Inactivity (Works from date of last post in thread!)
Version: 1.00, by rwoelich rwoelich is offline
Developer Last Online: Jul 2008 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 03-13-2006 Last Update: 10-29-2006 Installs: 41
Uses Plugins Template Edits
 
No support by the author.

Old Thread Autoclosing Hack
by Rob Woelich of www.teenhelp.org


Update - 10/29/06:
Threads that have been autoclosed have the closed icon in the forum display (thanks to Kall for the code/suggestion). Also, the "New Reply" button still shows for admins and supermods who have permission to post in the thread.

This seems to work fine on 3.6.0+, but I'm not going to bother releasing it just for that version because it's such a simple hack. If something isn't working right, verify your template edits... if you use a custom skin/style, they could be different.


DESCRIPTION:
This is a relatively simple hack that makes a thread appear "closed" after a specified amount of time. The amount of time is calculated from the last post in the thread, not from the start of the thread, making this a very effective way to keep old topics from being brought up without locking them out while they're still being discussed.

This installation consists of:
1 Product XML Upload for 3.5.0+ (should work on all versions above)
3 Template Edits in the SHOWTHREAD template
1 Image Upload (Optional, really... looks better with image though)

Into more detail:

This hack installs plugins on your showthread and newreply pages. When a user views a thread, the plugin will check the date of the last post in the thread and if the post was made more than a predetermined amount of time ago (one month by default), the thread will appear closed to the user. The thread isn't actually set as closed in the database. If a user clicks on the "Closed" button, they'll be given a No Permission message, keeping them from replying, and the Quick Reply box at the bottom of the thread will be hidden from the user as well. Administrators and super moderators by default are still able to reply to autoclosed threads and will still see the Quick Reply box.

As mentioned, the expiration time is calculated from the last post in the thread, so if a thread is autoclosed and an admin or supermod makes a post in the thread, the thread will be reopened. Since the thread isn't actually set as closed in the database, it's important to note that using the "Open Thread" option from the thread administration menu won't reopen the thread to other users. The only thing that will keep the thread open is a post existing in the thread that's dated as to deter the expiration time.

INSTALLATION:
Complete installation and template editing instructions are included in the ZIP file.

CUSTOMIZATION:
This hack was designed for a specific purpose, to keep those old annoying topics from being brought back up after two months by that one annoying newb.

However, there are a few customizations available, including the usergroups that can reply in the autoclosed threads, the amount of time until a thread is autoclosed, and the message displayed at the top of the thread when the thread has been autoclosed. Customization instructions are included in the ZIP file and are extensive enough for anybody to understand.

OTHER:
Two screenshots of an autoclosed thread have been included. One shows the Quick Reply still visible for administrators. Please click Install if you used and liked this...

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 04-11-2006, 03:01 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing
Looks like a sweet hack and something I need for my selling and trading forums.
I do have a couple questions before I click install.

- Will this work on vb 3.5.3 ?

- Also when does this hack start closing threads older then 30 days with no activity , does it start closing already created thread that are beyond 30 days with no activity or does it start with new threads created after the hack is installed?

- Also if this hack checks dates everytime a user enters that thread what is the query count and server load like?

Thanks
Anyone?
Reply With Quote
  #13  
Old 04-13-2006, 06:14 PM
Tinbendr Tinbendr is offline
 
Join Date: Jan 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing
Anyone?
- Will this work on vb 3.5.3 ?
I installed with 3.5.3.

Quote:
- Also when does this hack start closing threads older then 30 days with no activity , does it start closing already created thread that are beyond 30 days with no activity or does it start with new threads created after the hack is installed?
My understanding is that is uses the last date of the last thread.

Quote:
- Also if this hack checks dates everytime a user enters that thread what is the query count and server load like?
I don't know that one.
Reply With Quote
  #14  
Old 04-14-2006, 06:58 PM
phonexpo phonexpo is offline
 
Join Date: Sep 2005
Location: Dublin
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, thanks. Working fine on 3.5.4 !
Reply With Quote
  #15  
Old 04-15-2006, 02:47 PM
nasser71 nasser71 is offline
 
Join Date: Jul 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice jop m8
thanks
instaled
Reply With Quote
  #16  
Old 04-16-2006, 02:38 AM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ill tell you what would be great for this is say the thread gets closed have it where they can set up a option to move threads to a 'recycle bin' forum this way it will get moved to that forum and closed... cause they have this hac that moves them https://vborg.vbsupport.ru/showthread.php?t=106774 but it basiclly does it if you chose... would be nice if it closed it and moved it... hope you usnderstand what i mean
Reply With Quote
  #17  
Old 04-16-2006, 06:38 PM
nasser71 nasser71 is offline
 
Join Date: Jul 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi
i did follow the install info but at the upper part the thread closed button appear and in the lower part of the thread you can see the add replay button
and even if the member press the add replay button or the thread closed button he can go to add replay page

any help in this matter is highly appreciated
Reply With Quote
  #18  
Old 04-24-2006, 08:27 PM
rwoelich's Avatar
rwoelich rwoelich is offline
 
Join Date: Jan 2005
Location: Denver
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tinbendr
Clicked installed.

I have the Quick Reply turned off for ALL users, (a useless feature IMO), but the quickreply box is showing anyway.
Hmm, weird. It might be showing up because by this mod it's set to show up for administrators even with the thread closed, so you might be the only one seeing it. Still, if you have it turned off anyway... my suggestion would be to not change the section of code for the Quick Reply.
Reply With Quote
  #19  
Old 04-24-2006, 08:32 PM
rwoelich's Avatar
rwoelich rwoelich is offline
 
Join Date: Jan 2005
Location: Denver
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing
Looks like a sweet hack and something I need for my selling and trading forums.
I do have a couple questions before I click install.

- Will this work on vb 3.5.3 ?

- Also when does this hack start closing threads older then 30 days with no activity , does it start closing already created thread that are beyond 30 days with no activity or does it start with new threads created after the hack is installed?

- Also if this hack checks dates everytime a user enters that thread what is the query count and server load like?

Thanks
Should work on 3.5.3, yes.

As for which threads it closes, it will close them if they were created before installation of the mod. It will close any thread that's gone more than 30 days without a reply. To prevent the thread being closed or to reopen the thread, simply post in the thread.

And for query count, it doesn't add any additional queries. It uses the info from the queries that are already used on your showthread.php or newreply.php page.
Reply With Quote
  #20  
Old 04-24-2006, 08:36 PM
rwoelich's Avatar
rwoelich rwoelich is offline
 
Join Date: Jan 2005
Location: Denver
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nasser71
hi
i did follow the install info but at the upper part the thread closed button appear and in the lower part of the thread you can see the add replay button
and even if the member press the add replay button or the thread closed button he can go to add replay page

any help in this matter is highly appreciated
Double check to make sure you applied the template modifications correctly. It sounds like you might have missed the parts where you change the code for the new reply button, or incorrectly applied them.
Reply With Quote
  #21  
Old 05-15-2006, 04:45 PM
zylstra zylstra is offline
 
Join Date: Aug 2004
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LiveWire
Not quite. This one does not modify the database. Another difference is that this one modifies the button to say "Closed Thread" rather than leaves the button as "Reply" only to tell the member on the next page that the thread cannot be replied to.
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 02:58 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.04692 seconds
  • Memory Usage 2,310KB
  • Queries Executed 26 (?)
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
  • (8)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