此mod仅适用于pa201
打开index.php
查找
if ($showrecentarticle=="1"){
$articles = $DB->query("SELECT article.* FROM ".$db_prefix."article AS article
LEFT JOIN ".$db_prefix."sort AS sort
USING(sortid)
WHERE sort.showinrecent=1 AND article.visible=1
ORDER BY date DESC
LIMIT $recentarticlenum");
改成
if ($showrecentarticle=="1"){
$articles = $DB->query("SELECT sort.sortid,sort.title as stitle,article.* FROM ".$db_prefix."article AS article
LEFT JOIN ".$db_prefix."sort AS sort
USING(sortid)
WHERE sort.showinrecent=1 AND article.visible=1
ORDER BY date DESC
LIMIT $recentarticlenum");
然后进后台打开articlelistbit模板,用下面的替换
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td colspan="2"><span class="normalfont"><a href="$phparticleurl/sort.php?sortid=$article[sortid]">$article[stitle]</a>--<a href="$phparticleurl/article.php?articleid=$article[articleid]">$article[title]</a>
- <font color="$style[datecolor]">$article[date]</font> <font color="$style[timecolor]">$article[time]</font> - $article[author]</span></td>
</tr>
<tr>
<td valign="top">$article[img]<span class="normalfont">$article[description]</span></td>
</tr>
<tr>
<td height="5"></td>
</tr>
</table>
这样就可以在首页的最新更新栏目文章标题前显示栏目的名称和链接了