首先更改:spec_add.php和spec_edit.php兩個文件,約244,145行這樣(關鍵字:“$notelist .=”),分別在
typeid=\\'$typeid\\'
後面添加上
order=\\'$order\\' orderby=\\'$orderby\\'
回到上面點添加獲取參數值的變量,找到
$keywords = cn_substrR($keywords, 60);
在後面添加上order和orderby傳進來的值並賦給對應的變量,之後打開\include\taglib\channel目錄下的specialtopic.lib.php文件
大約61行這樣將:
'default'
改爲:
$ctag->GetAtt('orderby')
還有62行:
$ctag->GetAtt('att')
後面添加:
$ctag->GetAtt('order')