Version: 1.0.1, by Marco
Developer Last Online: Oct 2013
Category: Miscellaneous Hacks -
Version: 3.7.3
Rating:
Released: 09-14-2008
Last Update: 09-14-2008
Installs: 26
Uses Plugins
No support by the author.
Product name:
Automatically close threads after X replies
Product description:
As the name implies, this product will allow you to automatically close threads when a certain number of replies (set in the Admin CP) has been reached. Each time a post is made, the plugin checks if the reply limit has been reached, and if so, the topic is closed. Sticky threads may be excluded from this limit.
Product installation:
Just import the product and set the options under vBulletin options, that's all there is to it.
Version compatibility:
Has been tested on vBulletin 3.7.x. May or may not work with earlier versions.
Version history:
1.0.1 -- 09/15/2008
- [Added] Ability to exclude individual threads
- [Added] Version check
1.0.0 -- 09/15/2008
- Initial release
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Right. Don't see myself adding that too, but you can easily modify the plugin to do that. Install the product, go to Plugin Manager, find the plugin that belongs to the product, and find the following line:
PHP Code:
if ($threadinfo['replycount'] >= $vbulletin->options['auto_close_amount'] AND !in_array($threadinfo['threadid'], $exclude))
Change to:
PHP Code:
if ($threadinfo['replycount'] >= $vbulletin->options['auto_close_amount'] AND in_array($threadinfo['threadid'], $exclude))
So all you need to do is remove the exclamation mark before in_array.
Right. Don't see myself adding that too, but you can easily modify the plugin to do that. Install the product, go to Plugin Manager, find the plugin that belongs to the product, and find the following line:
PHP Code:
if ($threadinfo['replycount'] >= $vbulletin->options['auto_close_amount'] AND !in_array($threadinfo['threadid'], $exclude))
Change to:
PHP Code:
if ($threadinfo['replycount'] >= $vbulletin->options['auto_close_amount'] AND in_array($threadinfo['threadid'], $exclude))
So all you need to do is remove the exclamation mark before in_array.
My apologies if it is a dumb question, but I have to make it...
What's the point on closing a thread when it reaches X replies? Performance? And if it is, is there somewhere were I could read about this limit (and others that may apply)?
Performance not so much, I think, but in my opinion limiting the amount of replies in a thread makes threads a little easier to manage. Sometimes you get these really huge threads and no one really knows what they're about anymore.
In an older version of vb we have running... vb235... we noticed that our server is so crappy that if a thread gets too large, and for some reason the thread needs to be updated (moved, deleted, reindexed), the server would crapy out simply because the thread was too large. Then the posts.myi would go haywire and the entire forums would go down. Keeping the post counts down in threads helped fix this problem.
Would I need to put in all the IDs of the forums I wish to exclude, or would I just need to specifify which forum to include? (Are forums excluded by default?)