PHP 5 >= 5.3 version required for it to work.
Developed using XenForo 1.0.4. Prior versions were NOT tested by me. It may or may not work on them.

On the file name, x-x corresponds to the released version (1.0, 2.0, etc)

Usage

Every thread now will show a new link, Auto Lock Options

By clicking on this link, it will open a form overlay, where you can set the limit for the thread.

Input the maximum number of posts allowed, or fill the date/time accordingly, or fill the interval

From ACP -> Applications -> Node Tree -> List Limited Threads, you can check which threads have the auto lock feature, and you can clean the limit any time, clicking on the red X button

That ACP section now have the View thread link, that will open the referred thread in another tab/window, and that is now better organized, filtering threads limited by posts or by date/time

Threads with an Interval will be showed as limited by date/time as well

Change log

v2.2

Fixed a bug with the Post limit.

Added the Limit by Interval feature, as requested

Edited the look and feel of the overlay

v2.0

Added a lot of phrases to the system, all prefixed with ds_

Added new templates, as the form overlay

Added the Limit by date/time feature as requested

Prevents the Auto Lock Options link to appear, if the thread is already locked

Edited the ACP section, now with better readability, and thread link opening in new tab/window

v1.1

Added the link to the limited thread on ACP

Changed the phrase Delete on the Delete Button to Clear Limit

Added the Limit Lower Than Current Posts Count check

Screenshots

v1.0 - 1.1

v2.0

v2.2

Notes

The Date/Time limit is based on the current SERVER time!! So please test it properly.

It's my first add-on. It's here so you can test it, so it may not work so well on your forum as it worked on mine. I know it's not perfect, but got easy on me. If that interests you, then test it and post some feedback. Suggestions and critics are all welcomed. I hope to do more works in the future.
Also, thank you all the development community here, for sharing all your experiences and tips on developing for XenForo. That helps a lot. And a special thanks for Syndol, the one who always listens to my newbies questions.

Donation
The add-on is still on beta stage. But if you want to support it, and the future add-ons, you can donate any value clicking here.

Active member

Active member

So, here is how to open the JS console there: Click the wrench button > Tools > Javascript console > On the window, click the Console button (my browser is pt-br, sorry if the instructions is not accurate). Then you input the same value, and check that console window. Post the error founded. I will try to replicate it here too.