織夢DedeCMSv5.7sp1 搜索結果按點擊量排序,如何解決呢?在arc.searchview.class.php文件467行“排序方式”注釋下面是搜索結果排序代碼,解決方式 如下:在/include/arc.searchview.class.php文件467行“//排序方式”注釋下面 “//搜索”注釋以上的代碼改成如下代碼:$ordersql = '';if($this->ChannelType< 0 ||$this->ChannelTypeid< 0){if($orderby=="id"){$ordersql="order by arc.aid desc";}else if($orderby=="senddate"){$ordersql="order by arc.senddate desc";}else{$ordersql=" order by arc.click desc";}}else{if($orderby=="senddate"){$ordersql=" order by arc.senddate desc";}else if($orderby=="pubdate"){$ordersql=" order by arc.pubdate desc";}else if($orderby=="id"){$ordersql="order by arc.id desc";}else{$ordersql=" order by arc.click desc";}}
測試一下是不是解決了呢