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

Reply
 
Thread Tools
Threads Auto Close (by Usergroup) Details »»
Threads Auto Close (by Usergroup)
Version: 0.4, by aileron79 aileron79 is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.1.0 Rating:
Released: 12-19-2010 Last Update: 12-21-2010 Installs: 49
Uses Plugins
Re-useable Code Translations  
No support by the author.

Hi everybody,

User Vitaly allowed me to modify his Threads Auto Close Add-on. I found it quite useful as new members to our forums quite often dig up very old threads. With Vitaly's add-on, threads appeared as closed to all users after a certain period of time. With this modified version it further is possible to set user groups to which threads appear as closed. Further, it is possible to apply this mod to certain forums (by providing forum IDs).

NEW: Auto close threads when reaching a certain amount of posts
This feature was requested below, so now threads appear as closed either if they are older than X days or if there are more than Y replies.

When installing this mod please consider the following facts:
- Threads are not closed automatically, they appear as if they were closed. Thus, when deactivating or uninstalling this mod, threads are open again.
- This is my first mod. I am just getting familiar with vB4's plugin system. I am a PHP developer but I've never been coding anything for vb. This seemed to be an easy mod to start with, like my personal Hello World vB mod.
- I have tested this mod successfully with vb4.1.0 PL2. I guess it works with v4.0.* as well but I have not verified that.
- I am not (yet) really into this vB4 hacking stuff. I have taken some piece of code from the community, I have modified it according to my needs, now I am giving my modifications back to the community hoping that somebody may find it useful. Therefore, please do not ask me to support this code. If you have any questions, feel free to post them here but please make sure you have checked the original thread as well, you may find an answer there.
- If I did anything wrong, please be assured I did not do it on purpose. As mentioned before, this is my first vb mod ever. However, you are welcome to provide feedback or to suggest how to improve this add-on.

Hope you find this as useful as I do, thanks again to Vitaly for the original code.

Make sure to download the 0.5 version as this is the latest one!

Download Now

File Type: xml product-rcd_thread_auto_closing_advanced.xml (8.2 KB, 54 views)
File Type: xml product-rcd_thread_auto_closing_advanced_0.5.xml (9.8 KB, 282 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 02-28-2011, 12:41 PM
Janmaat Janmaat is offline
 
Join Date: Mar 2008
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will it work with 4.1.2?


==> Answer: Yes!
Reply With Quote
  #13  
Old 03-21-2011, 10:02 PM
DaninMS DaninMS is offline
 
Join Date: May 2008
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
Reply With Quote
  #14  
Old 04-14-2011, 03:30 PM
Sforums Sforums is offline
 
Join Date: Dec 2010
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a conflict with "BBR - Welcome Thread Upon Registration".
I've setup automatic welcoming for new members but also decided to close those threads after 90 days with this hack. Now, welcoming feature no longer works. Had to uninstall this.

Using 4.1.0 PL2
Reply With Quote
  #15  
Old 05-28-2011, 01:13 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this and selected a forum to close the threads, but it still allows posts to be made in the thread.
v4.1.3
Reply With Quote
  #16  
Old 03-09-2012, 02:20 PM
talkgraphics talkgraphics is offline
 
Join Date: Nov 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have this working with newer versions of VB?
We're on 4.1.10 - will this work with that version? Thx.
Reply With Quote
  #17  
Old 04-08-2012, 03:54 PM
Alex@bulletin Alex@bulletin is offline
 
Join Date: Aug 2009
Location: Germany
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by talkgraphics View Post
Does anyone have this working with newer versions of VB?
We're on 4.1.10 - will this work with that version? Thx.
Hello there, yes the mod works great on 4.1.10

---------------

But one thing is stupid, if a thread gets closed by this mod, you can't reopen it manually.
Reply With Quote
  #18  
Old 06-19-2012, 07:03 PM
mathforum mathforum is offline
 
Join Date: Nov 2005
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work on 4.2.0?
Reply With Quote
  #19  
Old 07-18-2012, 12:24 PM
mynameisdonald mynameisdonald is offline
 
Join Date: Jul 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to lock the original post? currently it seems to lock after 1st reply. Id rather it locked right after the thread was made
Reply With Quote
  #20  
Old 08-28-2012, 08:25 AM
warlord0 warlord0 is offline
 
Join Date: Apr 2012
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fits what I've been asked for perfectly. Nice and simple to implement to. Well done.
Reply With Quote
  #21  
Old 09-22-2012, 05:55 AM
howardhsu howardhsu is offline
 
Join Date: Jan 2011
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how about closing it with 0 replies (i.e. right after the thread is started)? what needs to be modified to make that function? thanks!

Quote:
Originally Posted by aileron79 View Post
As requested, Threads may now automatically be closed when reaching a certain amount of replies. (Note that it is the replies, this excludes the first post in a thread.) This means that threads now appear as closed if one of the following conditions - or both - occur:

- thread has reached the maximum amount of replies
- thread is older than X days

additionally, this behavior may be restricted to certain user groups and/or particular forums.

(Personally, I have no idea why one would only allow a certain amount of posts but as mentioned before, this was requested and it was quite an easy but good exercise)

Hope you like it though. Be sure do download V 0.5 which is the new one. Feedback is appreciated
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 07:20 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.11485 seconds
  • Memory Usage 2,330KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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
  • (2)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete