[文章目录]

在module.php中添加:

<?php
function commtent_title($gid){
	$db = MySql::getInstance();
	$sql = "SELECT * FROM ".DB_PREFIX."blog WHERE hide='n' and gid in ($gid) ORDER BY `date` DESC LIMIT 0,1";
	$list = $db->query($sql);
	while($row = $db->fetch_array($list)){
		echo $row['title'];
	}
}?>

搜索最新评论在需要显示位置添加:

<?php commtent_title($value['gid']);?>