\include\taglib\likearticle.lib.php
1、找到这段代码,并把它删除,是的删除
1. if( empty($arcid) || $byabs==0 ) {
2. $orderquery = ” order by arc.id desc “;
3. }
4. else {
5. $orderquery = ” order by ABS(arc.id – “.$arcid.”) “;
6. }
2、找到第13行
$revalue = ”;
3、下面添加参数
(这里注意末尾的 desc 你可以自己改成 asc 这两个是降序 和 升序排列
如果你想用 orderWay 做参数,那就自己加代码吧)
1. if($orderby==’hot’ || $orderby==’click’) $orderquery = ” order by arc.click desc”;
2. else if($orderby == ‘sortrank’ || $orderby==’pubdate’) $orderquery = ” order by arc.sortrank desc”;
3. else if($orderby == ‘id’) $orderquery = ” order by arc.id desc”;
4. else if($orderby == ‘rand’) $orderquery = ” order by rand()”;