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

by admin
0 comments

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

You may also like

Leave a Comment

Welcome to SoftBlog, a vibrant community dedicated to empowering developers, tech enthusiasts, and software professionals. Whether you’re a beginner or an experienced coder, we provide the resources, tools, and support you need to thrive in the ever-evolving world of software development.

Privacy Policy © Copyright 2007 – 2022 軟體部落 – 本站採用 Cloudways雲端代管主機

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.