本文轉自: Bluelovers.風 http://discuz.bluelovers.net
本文網址: http://discuz.bluelovers.net/thread-3796.html
演示 http://discuz.bluelovers.net/tag.php?name=死神
開啟tag.php
找
[code]include template(‘tag_threads’);[/code]
在上面加上
[code]if ($page == 1 && !$inajax) {
$taglikelist = array();
$query = $db->query(“SELECT * FROM {$tablepre}tags WHERE tagname LIKE ‘%”.str_replace(‘_’, ‘_’, $name).”%’ ORDER BY total LIMIT $viewthreadtags”);
while($tagrow = $db->fetch_array($query)) {
$tagrow[‘tagnameenc’] = rawurlencode($tagrow[‘tagname’]);
$taglikelist[] = $tagrow;
}
$taglikelist && sort($taglikelist);
}
[/code]
開啟 tag_threads.htm
找
[code]
[/xml]在下面加上[code]
類似標籤
- $tag[tagname]($tag[total])
[/code]