DarkSign
Active member
[DS] Auto Lock Threads v2.2 BETA
Let's your threads being auto locked after a limited number of posts, or after a Date/Time, or even after some Interval.Good for games threads, spam threads and event threads.
It is still a BETA release. Feedbacks are welcomed as always.
Installation
- Upload the DS folder to your XenForo's /library folder (ex: /www/html/forum/library).
- Go to ACP -> Add-ons -> Install Add-on -> Install from Uploaded File
- Select the addon-DSAutoLockThreads-x-x.xml file
- Click Install add-on
- Wait for the system to finish installing it
- Upload the folder as explained on item 1 of Install procedure, overwritting the files
- Go to ACP -> Add-ons -> Auto Lock Threads -> Upgrade -> Upgrade from Uploaded File
- Select the addon-DSAutoLockThreads-x-x.xml file
- Click Upgrade add-on
- Wait for the system to finish upgrading it
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
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
- 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
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.
Download