no, it is not possible to delete thread that have not been viewed since x days, because the date of last viewing is not saved into the table...
it would require hacking of showthread.php and changes to the db...
also it would just work with new threads. threads which are not viewed till your next pruning day would become deleted, because the lastview date is too old...
question two: that would be possible, with not to much work:
open thread.php
find
PHP Code:
doformheader("thread","prunedate");
maketableheader("Prune by date");
makeinputcode("Delete threads with last post older than x days:<BR>(intensive if deleting a lot of threads)","daysdelete","");
makemodchoosercode(-1,-1,'','All forums','In forum',0);
doformfooter();
change it to
PHP Code:
doformheader("thread","prunedate");
maketableheader("Prune by date");
makeinputcode("Delete threads with last post older than x days:<BR>(intensive if deleting a lot of threads)","daysdelete","");
makeyesnocode("Delete just unanswered threads?","justempty",0);
makemodchoosercode(-1,-1,'','All forums','In forum',0);
doformfooter();
then find:
PHP Code:
$datecut=time()-($daysdelete*86400);
$threads=$DB_site->query("SELECT threadid FROM thread WHERE $forumcheck thread.lastpost<=$datecut");
while ($thread=$DB_site->fetch_array($threads)) {
deletethread($thread[threadid],0);
}
and change it to:
PHP Code:
$datecut=time()-($daysdelete*86400);
$threads=$DB_site->query("SELECT threadid FROM thread WHERE $forumcheck thread.lastpost<=$datecut".iif($justempty," AND replycount=0",""));
while ($thread=$DB_site->fetch_array($threads)) {
deletethread($thread[threadid],0);
}
that should work