The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Auto Close threads after XX days
errrr, kinda what the title says.
i would greatly appreciate it if someone made a hack that would automatically close threads in set forums after XX days |
#2
|
||||
|
||||
All you need is a simple cron script that runs every day (or at whatever interval you choose) to update the threads table.
PHP Code:
|
#3
|
||||
|
||||
I need that, Thanks.
I am confused with the time stamp, but say threads older than 7 days, do I put in just "7"? |
#4
|
||||
|
||||
PHP Code:
|
#5
|
||||
|
||||
ran it and got this error:
Invalid SQL: -604800 mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '-604800' at line 1 mysql error number: 1064 And I used this for script: PHP Code:
|
#6
|
||||
|
||||
Try this instead:
PHP Code:
|
#7
|
||||
|
||||
A friend of mine helped out, and gave me the better coding, it should be:
argh, it only closed all thread regardless of time. |
#8
|
||||
|
||||
the last script you gave DID work....>.>
|
#9
|
||||
|
||||
nice one, will this email me to let me know which threads it's closed?
|
#10
|
||||
|
||||
It should do the same as all other tasks do in task schedules.....
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|