Topic: Automatically close old threads?

Is there a way to automatically close threads that are older than, say, a year? I have a few users who will accidentally post "that's cool" to a thread that's super old and it's mildly annoying smile

Thanks!

2

Re: Automatically close old threads?

Cron job.

Re: Automatically close old threads?

Hi MattF, thanks for your reply. You said "Cron job." Can you give me an example of how to use a cron job to accomplish this? I don't have any experience using cron jobs to enhance PunBB.

4

Re: Automatically close old threads?

Cron just runs a specified command/script at a designated time/day. You need to create a script to check the posted time in the topics table and close the topic if it is older than your designated cutoff period. How you do it depends on what scripting language you prefer to use.

Re: Automatically close old threads?

OK, thanks. I really don't do any scripting, so I guess I'll try to find somebody who can accomplish that. Thanks for your help.