PDA

View Full Version : Mini Mods - ZH - Auto Lock Thread


Ziki
19 Dec 2007, 20:50
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.

Ziki
19 Dec 2007, 20:51
~Reserved~

johnr
19 Dec 2007, 22:40
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
19 Dec 2007, 23:03
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
20 Dec 2007, 11:06
thanx.

Snake
21 Dec 2007, 16:31
Thanks!

Cyrus [Hwluxx]
25 Dec 2007, 15:10
Any Suggestions if you expand this Hack to close Threads after xxx Posts ?

stwilson
26 Jan 2008, 20:33
Can you apply this MOD to specific forums or is it thread specific?

Rich
07 Feb 2008, 22:52
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)

LuBi
10 Feb 2008, 02:29
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
13 Feb 2008, 01:55
;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
15 Feb 2008, 01:44
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
24 Mar 2008, 11:40
Can you add a function for do this in ALL forums and after X days since the last posting?

DieselMinded
06 May 2008, 04:37
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
08 May 2008, 21:41
Any Ideas?

mgurain
21 May 2008, 06:53
Hi,
Could you add options like:
- include forum ids:
- exclude forum ids:

thanks,,

libabom
20 Aug 2008, 10:34
close Threads after xxx Posts ?

yathyo
21 Sep 2008, 18:05
Doesnt works :(

Ziki
17 Oct 2008, 12:42
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
21 Oct 2008, 13:37
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
21 Oct 2008, 21:53
Close Threads after xxx DAYS ?

Is it possible?

Ziki
22 Oct 2008, 07:01
Why shouldn't it be?

Triky
22 Oct 2008, 11:20
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.

Ziki
22 Oct 2008, 11:32
You are a coder,I am sure you can add that feature ;)

Triky
22 Oct 2008, 12:20
Ever wanted to do, never succeeded becouse I'm not a *good* coder. I still need to learn correctly HTML, LOL.

Ziki
22 Oct 2008, 13:34
That code would be purely PHP ;)

Desesperao
27 Oct 2008, 23:39
Sorry, Ziki

What I was searching is this:

http://www.vbulletin.org/forum/showthread.php?t=148117

Thank's for your great effort. ;)