You are lucky
JJR512 
, I did all the changes you wanted eventhough I know nothing about php and mysql because I guess tubedogg was a little bit busy
Code:
// the base WHERE statement
$wheresql = "WHERE thread.lastposter=user.username AND thread.open!='10'";
to
PHP Code:
// te base WHERE statement
$wheresql = "WHERE thread.postusername=user.username AND thread.open!='10'";
and
Code:
// ooh a query!
$query = "SELECT thread.lastpost,thread.title,thread.lastposter,thread.replycount,thread.views,user.userid,thread.threadid,thread.forumid$fsel,thread.iconid FROM thread,user$ftitle $wheresql ORDER BY thread.$ob $obdir LIMIT $maxthreads";
to
PHP Code:
// ooh a query!
$query = "SELECT thread.dateline,thread.title,thread.postusername,thread.replycount,thread.views,user.userid,thread.threadid,thread.forumid$fsel,thread.iconid FROM thread,user$ftitle $wheresql ORDER BY thread.$ob $obdir LIMIT $maxthreads";
and
Code:
$fd = date($fdt,$threads[lastpost]);
PHP Code:
$fd = date($fdt,$threads[dateline]);
Also in the config file, don't forget to change $ob to dateline. Like:
$ob = "dateline"
I hope that helps. Please remind me if I have forgotten some parts because I modified the code a lot so it's hard to track the changes I have made.