標題:
發問:
我想係論壇內加一個版面(按網址內的例子), http://i191.photobucket.com/albums/z105/jackyjaffreywong/AAA.jpg 我個論壇係自架既,係Discuz! 6.0.0 點先可以放個個野入去
最佳解答:
首先係去你space果度... 之後打開index.php 用記事本打開... 打開左按Ctrl + F 搵$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000; 係果句下面加句 $today = mktime (0,0,0,date("m") ,date("d"),date("Y")); $build_date = mktime (0,0,0,7,27,2007);//請修改後面的三個數字,分別代表你論壇運行第一天的月,日,年。 $build_days = (int)(($today-$build_date)/(24*3600)); //----首頁四格代碼開始 $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray'); //新貼 $hack_cut_str = 26; //標題字數 $hack_cut_strauthor = 9; $new_post_threadlist = array(); $nthread = array(); $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 13"); while($nthread = $db->fetch_array($query)) { $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']); $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str); $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor); $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600); $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600)); if($nthread['highlight']) { 之後save再upload返上去個space... 2008-08-08 04:15:48 補充: 之後再打開discuz.htm 又係用記事本打開... 搵... 係下面加... 2008-08-08 04:19:53 補充: 響度講唔哂 不如你msn我 jupiter444444@hotmail.com
其他解答:
此文章來自奇摩知識+如有不便請留言告知
論壇的問題,,,,20點發問:
我想係論壇內加一個版面(按網址內的例子), http://i191.photobucket.com/albums/z105/jackyjaffreywong/AAA.jpg 我個論壇係自架既,係Discuz! 6.0.0 點先可以放個個野入去
最佳解答:
首先係去你space果度... 之後打開index.php 用記事本打開... 打開左按Ctrl + F 搵$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000; 係果句下面加句 $today = mktime (0,0,0,date("m") ,date("d"),date("Y")); $build_date = mktime (0,0,0,7,27,2007);//請修改後面的三個數字,分別代表你論壇運行第一天的月,日,年。 $build_days = (int)(($today-$build_date)/(24*3600)); //----首頁四格代碼開始 $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray'); //新貼 $hack_cut_str = 26; //標題字數 $hack_cut_strauthor = 9; $new_post_threadlist = array(); $nthread = array(); $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 13"); while($nthread = $db->fetch_array($query)) { $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']); $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str); $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor); $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600); $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600)); if($nthread['highlight']) { 之後save再upload返上去個space... 2008-08-08 04:15:48 補充: 之後再打開discuz.htm 又係用記事本打開... 搵... 係下面加... 2008-08-08 04:19:53 補充: 響度講唔哂 不如你msn我 jupiter444444@hotmail.com
其他解答:
文章標籤
全站熱搜
留言列表