TAG 標籤 功能擴充 – 增加顯示類似TAG

By | 十一月 20, 2007

本文轉自: 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]

$multipage

[/xml]在下面加上[code]

類似標籤

[/code]

您也會喜歡的文章

發表迴響