恋雾迷尘论坛's Archiver

爱雨冷雪 发表于 2006-6-1 09:34

搜索结果显示主题分类 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]

yumi30 发表于 2006-9-19 19:18

这个好,谢谢

yearn1985 发表于 2006-9-22 19:55

试试吧,谢谢

dick97112 发表于 2007-7-23 03:18

好贴!学习

好贴!学习啦。。。

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.