『左右分割』
原作者 : 忘記了..sorry
左邊顯視有(有其他野加可自行修改):
論壇資料(主題數,會員數等等,可自行加減)
快速登錄(未登錄顯視登入畫面)/個人資料 (登入後顯視個人資料,可以自行加減)
快速搜尋(搜尋帖子)
論壇新帖(最新發帖{發帖數顯視多少請自行到index.php修改})
論壇回覆(最新回覆{回覆數顯視多少請自行到index.php修改})
計數器(在線人數,最高紀錄,今日到訪會員)
Google搜尋器(可自行修改或直接刪除都可)
全球排名(可自行修改或直接刪除都可)
聯盟論壇(自動上升式)
提醒 : 修改前請先備份,以防萬一,否則後果自負
演視(左邊): http://www.spy-net.net/index.php
請先安裝:銀行
今日發帖同昨日發帖
(如沒有安裝,參閱第2帖修改)
修改頁面: index.php,index.htm
修改index.php
尋找:
複製內容到剪貼板
代碼:
require DISCUZ_ROOT.'./include/forum.php';
下面加:
複製內容到剪貼板
代碼:
require DISCUZ_ROOT.'./include/misc.php';
尋找
複製內容到剪貼板
代碼:
$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
下面加
複製內容到剪貼板
代碼:
//---------------hack Meminfo start
if(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 6.0")) {
$visitor_browser = "Internet Explorer 6.0";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 5.5")) {
$visitor_browser = "Internet Explorer 5.5";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 5.0")) {
$visitor_browser = "Internet Explorer 5.0";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 4.01")) {
$visitor_browser = "Internet Explorer 4.01";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NetCaptor")) {
$visitor_browser = "NetCaptor";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Netscape")) {
$visitor_browser = "Netscape";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Lynx")) {
$visitor_browser = "Lynx";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Opera")) {
$visitor_browser = "Opera";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Konqueror")) {
$visitor_browser = "Konqueror";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Mozilla")) {
$visitor_browser = "Mozilla";
} else {
$visitor_browser = "其它";
}
//上面的是瀏覽器//
if(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5.1")) {
$visitor_os = "Windows XP";
}elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5.2")) {
$visitor_os = "Windows Server 2003";
}elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5")) {
$visitor_os = "Windows 2000";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "4.9")) {
$visitor_os = "Windows ME";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 4")) {
$visitor_os = "Windows NT 4.0";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "98")) {
$visitor_os = "Windows 98";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "95")) {
$visitor_os = "Windows 95";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Mac")) {
$visitor_os = "Mac";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Linux")) {
$visitor_os = "Linux";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Unix")) {
$visitor_os = "Unix";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "FreeBSD")) {
$visitor_os = "FreeBSD";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "SunOS")) {
$visitor_os = "SunOS";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "BeOS")) {
$visitor_os = "BeOS";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "OS/2")) {
$visitor_os = "OS/2";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "PC")) {
$visitor_os = "Macintosh";
}elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "AIX")) {
$visitor_os = "AIX";
} else {
$visitor_os = "其他";
}
$mem_home = convertip($onlineip, $datadir = "./");
//info//
//新貼//
$hack_cut_str = 36; //修改標題顯示字數
$new_post_threadlist = array();
$nthread = array();
$query = $db->query("SELECT t.*, f.name FROM $table_threads t, $table_forums f WHERE f.password='' AND t.fid<>'$fid' AND (f.viewperm='' or f.viewperm LIKE '%\t$groupid\t%') AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 10");
while($nthread = $db->fetch_array($query)) {
$nthread['forumname'] = $nthread['name'];
$nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
$nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
$nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
$new_post_threadlist[] = $nthread;
}
//新貼//
//新回覆
$hack_cut_str = 36; //修改標題顯示字數
$new_reply_threadlist = array();
$rthread = array();
$query = $db->query("SELECT t.*, f.name FROM $table_threads t, $table_forums f WHERE f.password='' AND t.fid<>'$fid' AND (f.viewperm='' or f.viewperm LIKE '%\t$groupid\t%') AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 10");
while($rthread = $db->fetch_array($query)) {
$rthread['forumname'] = $rthread['name'];
$rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
$rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
$rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
$new_reply_threadlist[] = $rthread;
}
//回覆//
由於字數過多,大家請下載01.txt,再根據01.txt修改index.htm