Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: MegaS - maaliskuu 08, 2006, 06:02:46 AP

Otsikko: autodelete old topics
Kirjoitti: MegaS - maaliskuu 08, 2006, 06:02:46 AP
I need to delete old topics from a board. How can I do it? For example, I think to create a crontab job. Which sql statement shoulld I run to delete topics older than 30 days? Or may be use RemoveOldTopics2() function?
Otsikko: Re: autodelete old topics
Kirjoitti: Prasad007 - maaliskuu 08, 2006, 06:07:48 AP
You could just goto forum maintenance in admin, and do it from there.
Otsikko: Re: autodelete old topics
Kirjoitti: MegaS - maaliskuu 08, 2006, 06:54:08 AP
I know.
I want to do it automatically. So I need to write a script.