Quote:
Originally Posted by johnr
Do you have any plans to expand this hack?
It would be really useful to me if I could lock a thread after x days of inactivity.
|
That's easy, you should edit the xml before importing and on line 25, where it says:
PHP Code:
WHERE threadid IN($zhthread) AND open = 1 AND sticky = 0 AND dateline < ".intval(TIMENOW-(86400*$zhtime))
replace it with
PHP Code:
WHERE threadid IN($zhthread) AND open = 1 AND sticky = 0 AND lastpost < ".intval(TIMENOW-(86400*$zhtime))
I haven't seen vb_thread table structure for vb3.7, but I'm pretty sure "lastpost" field is still there.