LockOldBlogs/ru

LockOldBlogs closes the commenting field on blog posts that haven't been commented on in the past 30 days, effectively allowing them to be automatically archived over time. Configuration options allow for exempting specific blogs so that they are never archived, changing the number of days old the blog must be to be archived, and translating the archive message into other languages.

Configuration
There are some custom configuration options that you can use if you want to:

The syntax for using these configuration options goes like this:

Example
Let's say you want to do the following:
 * Old blogs should be locked from commenting after 60 days
 * The message should say This blog is considered archived because it hasn't been commented on in over 60 days, please don't bump this blog!
 * All blogs in Category:Never archived blogs should never be locked/archived.

Here's the code you would put in your MediaWiki:Common.js with those configuration options: Notes:
 * Inside of the  string, The apostrophe character ' must be replaced with \' and the quote character " must be replaced with \". This is called an "escape character" in JavaScript.
 * Inside of the  string, you can (if you want to) use the   tag which will automatically be replaced with the   variable, which is 60 in this example.
 * Important: Notice that the  call comes after the configuration options!

Updates

 * 27 February 2013
 * Mathmagician tweaked time calculation method. Blog posts with 0 comments can now expire based on the creation date of the blog post itself.


 * 14 September 2012
 * Pecoes added configuration option for positive list of categories that expire at the request of Thailog


 * 12 September 2012
 * Mathmagician added configuration options, tweaked the time calculation method, cleaned up code a bit


 * 26 August 2012
 * Mathmagician fixed script to work with Fandom's new Lazy Loading feature, originally posted the script at Community Central


 * A long time ago
 * Joeyaa first wrote this script. A version of it can be found here halfway down the page.