vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - ZH - Auto Lock Thread (https://vborg.vbsupport.ru/showthread.php?t=133110)

Ziki 12-02-2006 10:00 PM

ZH - Auto Lock Thread
 
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

Quote:

Originally Posted by Ziki (Post 1130893)
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

Quote:

Originally Posted by Ziki (Post 1137648)
Just after x days

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

Code:

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?


All times are GMT. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02103 seconds
  • Memory Usage 1,780KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete