The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Lock Old Threads
Is the any way to automatically lock old threads after a certain. For example, one of the forums on my board imports several news groups. I would like to be able to automatically loke these after the post is 30 days old.
|
#2
|
||||
|
||||
edit newthread.php, find:
PHP Code:
PHP Code:
Not tested, first try in a test board! It has SQL query that wil make modifications in the records of your db, so do not apply to your real board without testing it in a test board.. The auto-lock will be triggered whenever someone creates a new thread in your board so do not expect the hack to work if someone does not create a new thread for a few days.. Enjoy |
#3
|
||||
|
||||
Thanks for the help. I'll try it out later tonight.
Quote:
Since the news groups are pulled every 15 minutes this shouldn't be a problem. I'll let you know how it works. |
#4
|
||||
|
||||
Quote:
But this still shouldnt be a problem since even the slowest forums have at least 1 thread per day.. |
#5
|
|||
|
|||
how can you add multiple forums?
|
#6
|
||||
|
||||
change line
PHP Code:
PHP Code:
|
#7
|
|||
|
|||
Thanks a lot.
|
#8
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|