View Full Version : Mini Mods - ZH - Auto Lock Thread
This modification was brought to you by
KXDesign
http://www.kxdesign.com/
~Modification name
Auto Lock Thread
~Modification description
Locks an old thread after X amount of days.
~Modification options
Turn on/off
Choose thread id's
Choose amount of days
~Modification info
File uploads: 0
Template edits: 0
File edits: 0
Plugins: 1
SQL Queries: 0
Phrases: 7
Settings: 3
Install time: 3 sec
Install level: Easy
~Modification installation
Step 1: Import Product
~Modification screenshots
None
~Modification copyright
This may not be distributed,released or claimed as your work without author's permission.
johnr
12-19-2007, 08:40 PM
Do you have any plans to expand this hack?
It would be really useful to me if I could lock a thread after x days of inactivity.
Amenadiel
12-19-2007, 09:03 PM
Do you have any plans to expand this hack?
It would be really useful to me if I could lock a thread after x days of inactivity.
That's easy, you should edit the xml before importing and on line 25, where it says:
WHERE threadid IN($zhthread) AND open = 1 AND sticky = 0 AND dateline < ".intval(TIMENOW-(86400*$zhtime))
replace it with
WHERE threadid IN($zhthread) AND open = 1 AND sticky = 0 AND lastpost < ".intval(TIMENOW-(86400*$zhtime))
I haven't seen vb_thread table structure for vb3.7, but I'm pretty sure "lastpost" field is still there. ;)
Ba$im
12-20-2007, 09:06 AM
thanx.
Snake
12-21-2007, 02:31 PM
Thanks!
Cyrus [Hwluxx]
12-25-2007, 01:10 PM
Any Suggestions if you expand this Hack to close Threads after xxx Posts ?
stwilson
01-26-2008, 06:33 PM
Can you apply this MOD to specific forums or is it thread specific?
This mod is not very user friendly if we have to enter each threads ID individually. I recall a version where you entered the forum ID, or something like that, and it would close every thread that was "x" amount of days old. Is this one also going to have that added functionality or is this the end product? (I ask because i need to know if I need to figure it out on my own. lol)
I always enjoy a nice automated add-on like this. Thanks for taking the time and sharing it with us, this is a great start. I like some of the ideas I'm reading, may I also suggest this mod be able to move threads. I used to have a mod like this auto lock then move the locked thread to a sub-forum archive. It really made life easy and kept things clean. Thanks again.
majordork82
02-12-2008, 11:55 PM
;1408871']Any Suggestions if you expand this Hack to close Threads after xxx Posts ?
I've noticed a LOT of people asking for this, and I am looking for it as well. Can you modify this hack to do that?
Jase2
02-14-2008, 11:44 PM
Could you get this work so that a thread is closed after x amount of posts and a new one created with the same title? And works per-forum basis?
Regards Jason
Strik3
03-24-2008, 09:40 AM
Can you add a function for do this in ALL forums and after X days since the last posting?
DieselMinded
05-06-2008, 02:37 AM
I added this to my support forum and it didnt close the threads
http://www.dieselbombers.com/diesel-distress-support-ticket/
Is this for Forum Id's ??
DieselMinded
05-08-2008, 07:41 PM
Any Ideas?
mgurain
05-21-2008, 04:53 AM
Hi,
Could you add options like:
- include forum ids:
- exclude forum ids:
thanks,,
libabom
08-20-2008, 08:34 AM
close Threads after xxx Posts ?
yathyo
09-21-2008, 04:05 PM
Doesnt works :(
A new fixed version is available here: http://www.kxdesign.com/vb-3-7-add-ons/78-kx-auto-lock-thread.html
This now includes multiple thread options!
Desesperao
10-21-2008, 11:37 AM
Sorry but I've dowloaded the hack of this link:
http://www.kxdesign.com/vb-3-7-add-o...ck-thread.html
... and it's the same as here.
Desesperao
10-21-2008, 07:53 PM
Close Threads after xxx DAYS ?
Is it possible?
Triky
10-22-2008, 09:20 AM
Would be great if "Locks threads after X amount of posts" and open a new one with the same author, same title (with a [1] at the beginning. eg. "[1] My Title").. and a link to the old closed one.
You are a coder,I am sure you can add that feature ;)
Triky
10-22-2008, 10:20 AM
Ever wanted to do, never succeeded becouse I'm not a *good* coder. I still need to learn correctly HTML, LOL.
That code would be purely PHP ;)
Desesperao
10-27-2008, 09:39 PM
Sorry, Ziki
What I was searching is this:
https://vborg.vbsupport.ru/showthread.php?t=148117
Thank's for your great effort. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.