Ads 468x60px

##EasyReadMore##

14 6月, 2010

tad_news分類訊息排序

tad_news分類訊息排序最新的訊息都會被排置後面

所以改一下程式

function.php

裡的193行

$sql = "select * from ".$xoopsDB->prefix("tad_news")." where 1 $show_enable $where_cate $date_chk order by always_top desc , start_day $desc";

改成

$sql = "select * from ".$xoopsDB->prefix("tad_news")." where 1 $show_enable $where_cate $date_chk order by always_top desc , start_day desc";

就一律最新的擺至前面

0 意見:

張貼留言

 
Blogger Templates