打开\include\目录中的arc.listview.class.php文件
搜索“排序方式”,然后在
else if($orderby=="lastpost") { $ordersql = " order by arc.lastpost $orderWay"; }这段代码和
else { $ordersql=" order by arc.sortrank $orderWay"; } 这段代码中间粘贴上
else if($orderby == 'weight') $ordersql = " order by arc.weight asc";
找到
if(preg_match('hot|click|lastpost',$orderby))
修改成
if(preg_match('hot|click|lastpost|weight',$orderby))
完成后
调用写
{dede:list pagesize='5' orderby='weight' orderway="asc"}{/dede:list}