![]() |
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.
|
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 |
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. |
Quote:
But this still shouldnt be a problem since even the slowest forums have at least 1 thread per day.. |
how can you add multiple forums?
|
change line
PHP Code:
PHP Code:
|
Thanks a lot. :D
|
Quote:
|
All times are GMT. The time now is 09:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|