此mod仅适用于pa201
打开index.php
if ($showrecentarticle=="1"){ php学习之家
$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 php学习之家
LIMIT $recentarticlenum"); 本文来自 www.444p.com
改成
php学习之家
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 php学习之家
LIMIT $recentarticlenum"); php学习之家http://www.444p.com
然后进后台打开articlelistbit模板,用下面的替换 php学习之家
<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> www.444p.com
<tr>
<td height="5"></td>
</tr>
</table> www.444p.com
这样就可以在首页的最新更新栏目文章标题前显示栏目的名称和链接了
















