Auto Lock

Auto Lock 1.5

No permission to download
Compatible XF 1.x versions
  1. 1.2
  2. 1.3
  3. 1.4
  4. 1.5

Auto lock threads in selected forums. The Options page allows setting the age of the thread and the forums that will be effected.

For example this add-on is very useful to automatically lock old threads in classified forums.

(Example of Options page)


  • Runs automatically once a week using XenForo Cron.
  • Sticky threads will not be locked.


The Days value determine when the thread will be locked. For example if the thread never gets any replies, it will be locked X days after the thread creation date. Otherwise the last reply date plus the Days determine when the thread will be locked.

Include Forums

Select Forums which are effected by this add-on.

Prefix ID

Allows optional prefix to be added to thread when it's locked.

Cron entry:

By default the Cron entry will run every Monday. This can be easily changed by adjusting the Cron entry located here:

Admin CP -> Tools -> Cron Entries

  1. Download and unzip it.
  2. Upload the Andy folder to your server. The correct location is library/Andy.
  3. From your Admin Control Panel, go to the "Install Add-on" page.
  4. Upload the addon-AutoLock_v1.5.xml file.
  5. Click the Install Add-on button.
Sending a donation:

If you like this add-on, please consider sending a small donation.

Thank you.
First release
Last update
5.00 star(s) 5 ratings

More resources from AndyB

Latest updates

  1. See description

    Auto Lock v1.5 changes. Fixed issue with prefixes.
  2. See description

    Auto Lock v1.4 changes: Added Prefix ID to the Options page.
  3. See description

    Auto Lock v1.3 changes: Improved PHP code.

Latest reviews

Simple and easy to use. Works exactly as described. Thanks so much for providing this add-on to the community! :)
Awesome and simple! Install easy. Great addons by AndyB. Thanks! Waiting for the next one! Thanks again.
Another great release from Andy. This guy makes some of the most simple yet useful addons for XenForo. They should pay him!

Anyhow this addon works as advertised. I manually ran the cron after install and all targeted threads were locked.
Good Job :o
Top Bottom