//排序方式
$ordersql =;
if($orderby=="senddate" || $orderby=="id") {
$ordersql=" ORDER BY arcid $orderWay";
}
else if($orderby=="hot" || $orderby=="click") {
$ordersql = " ORDER BY arcclick $orderWay";
}
else if($orderby=="lastpost") {
$ordersql = " ORDER BY arclastpost $orderWay";
}
else if($orderby=="weight") {
$ordersql = " ORDER BY arcweight $orderWay";
}
else {
$ordersql=" ORDER BY arcsortrank $orderWay";
}
//如果不用默认的sortrank或id排序
if(preg_match(
并添加红色部分内容
{dede:list orderby=
这样{dede:list}标签就支持了按权重排序的调用