Ok instructions updated.
PHP Code:
then look for
$lastposts=$DB_site->query_first("SELECT lastpost,lastposter FROM thread WHERE
lastpost='$lastposts[lastpost]'");
$lastpost=$lastposts['lastpost'];
$lastposter=$lastposts['lastposter'];
change to
$lastposts=$DB_site->query_first("SELECT lastpost,lastposter,title FROM thread WHERE
lastpost='$lastposts[lastpost]'");
$lastpost=$lastposts['lastpost'];
$lastposter=$lastposts['lastposter'];
$lasttitle=$lastposts['title'];
-------
FOR VB 2.0.x
on line 1498 look for
$DB_site->query("UPDATE forum SET
replycount='$numberposts',threadcount='$numberthreads',lastpost='$lastpost',lastposter='".addslashes(htmlspecialc
hars($lastposter))."' WHERE forumid='$forumid'");
change it to
$DB_site->query("UPDATE forum SET
replycount='$numberposts',threadcount='$numberthreads',lastpost='$lastpost',lastposter='".addslashes(htmlspecialc
hars($lastposter))."',lasttitle='".addslashes($lasttitle)."' WHERE forumid='$forumid'");
FOR VB 2.2.x
look for
if ($lastpost!=$currentlastpost) {
$lastpostquery=",lastpost='$lastpost',lastposter='".addslashes($lastposter)."'";
} else {
$lastpostquery="";
}
change to
if ($lastpost!=$currentlastpost) {
$lastpostquery=",lastpost='$lastpost',lastposter='".addslashes($lastposter)."',lasttitle='".addslashes($lasttitle)."'";
} else {
$lastpostquery="";
}