PDA

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


Ziki
12-02-2006, 10:00 PM
This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Hack name
Auto Lock Thread

~Hack description
Locks an old thread after X amount of days.

~Hack options

Turn on/off
Choose thread id's
Choose amount of days


~Hack 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

~Hack installation
Step 1: Import Product



~Hack screenshots
None


~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.

Ziki
12-03-2006, 12:43 PM
Reserved

dooch
12-03-2006, 01:23 PM
thanks will give it a try!

Spiffware
12-03-2006, 03:08 PM
does this hack lock a thread after Xdays picked by post creator? for example: you start a new thread have a option somewhere that will allow you to put how many days you want the post to stay open?

Ziki
12-03-2006, 03:17 PM
No admin decides

MrPHD
12-03-2006, 03:35 PM
One more, Ziki Great Job and thanks for everything. Installed and Work 100%.

Ziki
12-03-2006, 03:37 PM
lol you posted almost in every hack of mine :D

MrPHD
12-03-2006, 03:40 PM
lol you posted almost in every hack of mine :D

Yes becouse i?m a testar of hacks and yours are very nice and simple. You make Great jobs when do Hacks. Thanks once more time.:up:

Ziki
12-03-2006, 03:41 PM
lol who hired you as a tester :D

Anyway you blocked FireFox from accessing ;).I use FireFox

beduino
12-04-2006, 08:58 PM
Great work!
Tks, again
Beduino

projectego
12-05-2006, 11:18 AM
/me clicks install!

TheComputerGuy
12-12-2006, 05:10 AM
Does this allow for certain forums?

Ziki
12-12-2006, 01:37 PM
No this is only threads

Artificial_Alex
12-13-2006, 08:22 AM
Uhhh...Is it x ammount of days without a post..? or just after x days? >_<

Ziki
12-13-2006, 09:03 AM
Just after x days

imported_predatorkill
12-18-2006, 07:19 PM
Ziki can you make this to auto lock every thread that is created inside a specific forum?

I have some announcements in a certain forum from my members and i want them to be auto-locked when they click "submit".

(i know it's not request forum,i dont want to open a whole thread just for that)

Thanks!:D

Guest210212002
12-20-2006, 04:01 PM
Hm, I've installed this but all my old threads are still open. Is there a cron that I need to run or so?

Ziki
12-20-2006, 04:16 PM
No nothing.Just install and enter the threadid. Are you sure you didn't enter the post id?

Guest210212002
12-21-2006, 01:04 PM
Aah apologies. I was under the impression that this would globally just close old posts, not need specification. :D

fly
12-21-2006, 02:53 PM
Offtopic: What about an auto-lock if the thread rating gets below a certain point? I'd be willing to pay you to do this...

fly
12-21-2006, 03:22 PM
Just after x days

I'm no genius at coding but aren't you checking the time of the last post?

AND lastpost < ".intval(TIMENOW-(86400*$zhtime)

Ziki
12-22-2006, 01:08 PM
Will fix it.

Ziki
12-22-2006, 01:11 PM
1.0.1 released


Please upgrade as soon as possible.The hack didn't work :D

mat.knott
02-11-2007, 09:23 PM
sorry if this is a stupid question... on my boards i have daily topics and each one runs for a day so would this work to auto lock every post in a set board at midnight of the day it was started?

Ziki
02-12-2007, 07:16 PM
But you would have to enter the threadids manually

HOST-KSA.COM
02-12-2007, 07:19 PM
Thanks

flindersredclaw
02-15-2007, 01:25 AM
Strange hack... Installed but does nothing without putting in the thread id you want locked. So if you have 5000 threads you would have to find each thread id to make this work globally. Kind of pointless when you can lock the thread manually anyway. I though perhaps this may have prevented old threads being opened after x number of days..

Eagle Creek
02-16-2007, 03:57 AM
Would it be possible to:
1. Make this happen for only one forum?
2. Automaticly add a reply to the thread?

Ziki
02-16-2007, 05:20 PM
1.Yes
2.Yes

Will do?Maybe

Eagle Creek
02-16-2007, 05:42 PM
Uuhm.. of course what I mean is:
are these functions currently available?

Ziki
02-17-2007, 01:58 PM
Um no

Eagle Creek
02-19-2007, 04:44 AM
Too bad.
Thx anyway. Maybe still interesting.

Any change u will make something like this within a short period?

Ziki
02-19-2007, 01:05 PM
No not really sorry.Maybe after I finish a few other projects

Eagle Creek
02-19-2007, 01:28 PM
Sure.. If you make it; I'm interested :).

mat.knott
03-12-2007, 09:53 PM
is there any way to make this close all posts on a board (eg board #2) at midnight with out having to keep adding the post id

Ziki
03-13-2007, 05:06 AM
No.

lostgirl815
06-23-2007, 11:41 PM
Installed! Stupid question: is the thread ID just the numbers or do you need the t= ?

(And, would it be possible to time them in hours instead of days? And if so, how much would that hack cost?)

Ziki
06-24-2007, 03:59 PM
Just the threadid :)

lostgirl815
06-24-2007, 04:44 PM
Thanks ZH! :)

lostgirl815
06-25-2007, 09:47 PM
Okay, that didn't work, so I'm doing something wrong. I used the number of the thread, meaning the number that comes after t=

Is the thread ID something else?

Ziki
06-26-2007, 07:41 AM
No it's that one.

lostgirl815
07-12-2007, 06:31 AM
I still can't get this to work, and I really really need it. I'm using the four-digit thread ID and the numeral 1 (for days) in my test thread - does anybody have any idea at all why it won't work?

mtlcore
09-05-2007, 09:05 PM
Hey, is there any possibility of adding this feature: auto-lock thread made in a specific forum.

SuperTaz
11-07-2007, 04:21 AM
Installed. Thanks. :)

mtlcore
12-06-2007, 01:08 AM
Hey, is there any possibility of adding this feature: auto-lock thread made in a specific forum.

bump?

Ziki
12-06-2007, 04:03 AM
https://vborg.vbsupport.ru/external/2011/01/24.gif Not Supported

Ziki
10-17-2008, 10:42 AM
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!