LockForums

LockForums closes the replying field on forum 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 changing the number of days old the forum must be to be archived, and translating the archive message into other languages.

Note: This script is for the new forum boards.

Installation

 * See also: Help:Including additional JavaScript and CSS

To install this script on your wiki, admins should add the following to their MediaWiki:Common.js page:

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: Here's the code you would put in your MediaWiki:Common.js with those configuration options: Notes:
 * Old forums should be locked from commenting after 60 days
 * The message should say This forum is considered archived because it hasn't been commented on in over 60 days, please don't bump this forum!
 * 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!