搜索结果显示主题分类 For 4.1
打开search.php找到:
[code]$threadlist = array();
[/code]
在下面加:
[code]$type = array();[/code]
找到:
[code]while($thread = $db->fetch_array($query)) {
$threadlist[] = procthread($thread);
}
[/code]
在下面加:
[code] $query = $db->query("SELECT * FROM {$tablepre}threadtypes");
while($typ = $db->fetch_array($query)) {
$type[] = procthread($typ);
}
[/code]
打开search_threads.htm
找到:
[code]<!--{if $thread['digest']}--><img src="{IMGDIR}/digest.gif" align="absmiddle"> {lang thread_digest}<b>{eval echo substr('III', - $thread['digest']);}</b>:
[/code]
在上面加:
[code]<!--{loop $type $typ}-->
<!--{if $thread['typeid'] == $typ['typeid']}-->[{$typ[name]}]<!--{/if}-->
<!--{/loop}-->
[/code]
[img]http://www.discuz.net/attachments/month_0605/Snap1_p99CnGwPH93K.jpg[/img] 这个好,谢谢 试试吧,谢谢
好贴!学习
好贴!学习啦。。。页:
[1]