人来到这世界后,命运注定了他必须要拼搏,奋斗,坚持,勇敢地走下去,走出属于自己的道路,没有人能不劳而获。
dedecms搜索伪静态
RewriteEngine On RewriteBase / RewriteRule ^tags/(.+)/$ /plus/search.php?kwtype=0&keyword=$1&searchtype=titlekeyword 单页显示显示热门搜索词和搜索次数的方法 把下面的代码保存到index.php中,当然可以其他的名字
<?php
require_once(dirname(__FILE__).'/../include/common.inc.php');
global $cfg_mainsite,$cfg_plus_dir;
$cfg_phpurl = $cfg_mainsite.$cfg_plus_dir;
$dsql = new DedeSql(false);
$dsql->SetQuery("Select keyword,result From dede_search_keywords order by result desc limit 0,100");
$dsql->Execute('hw');
$hotword = "";
while($row=$dsql->GetArray('hw')){
if($row['istag']==1) $hotword .= "
|
到此这篇关于dedecms搜索伪静态及显示热门搜索词的方法就介绍到这了。沙漠穿越恰好赶上农历生日,苏苏十六岁开开心心的!每一次学习都在路上,恰好我还有双脚和灵魂,奔跑啦少年!可以赞我啦。更多相关dedecms搜索伪静态及显示热门搜索词的方法内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!