精華區beta PttNewhand 關於我們 聯絡資訊
【常見問題】關於「查詢網友」的方式 ├╯ ⒈主功能表模式,進入 (T)alk 休閒聊天區             ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄  並選擇 (Q)uery 查詢網友 以及 輸入ID       ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄     ̄ ̄ ̄ ⒉列表模式,按下 Ctrl + 小寫u 至使用者名單  再按下 s輸入ID 查詢 使用者公開資訊 ⒊編輯模式,按下 ESC + 大寫U 至使用者名單  再按下 s輸入ID 查詢 使用者公開資訊 註:其中⒈⒉⒊限定「已註冊通過使用者」查詢 ⒋文章列表,至 文章前 按下 Ctlr + 小寫s  查詢 使用者的完整註冊資料  註:限定警察總管、帳號總管、站長、BBSADM ⒌站務模式,進入 (0)Admin 系統維護區           ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄  ①選擇 (U)ser 使用者資料 並 輸入ID       ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄    ̄ ̄ ̄   查詢 使用者的完整註冊資料   註:限定使用者本人(其他介面)、站長、BBSADM  ②選擇 (L)User Log 使用者資料記錄 並 輸入ID       ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄   ̄ ̄ ̄   查詢 使用者的指定數值資料紀錄   註:限定看板總管、警察總管、帳號總管、站長、BBSADM  ③選擇 (S)earch User 特殊搜尋使用者       ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄   輸入部分資訊 連續搜尋使用者完整註冊資料   註:限定警察總管、帳號總管、BBSADM ╚───────────────────── [關於登入次數、註冊狀態顯示]   註冊狀態之帳號審核 (公開)    未通過:尚未通過認證    已通過:同天內只計一次   登入次數之顏色 (公開)    0~999 -----------------> 白色    1000~1999 -------------> 亮白色    2000~2999 -------------> 亮紅色    3000~3999 -------------> 亮藍色    4000~4999 -------------> 亮靛色    5000~5999 -------------> 亮綠色    6000+ -----------------> 亮黃色 [相關部分原始碼] int my_query(const char *uident) { userec_t muser; int tuid, fri_stat = 0; int is_self = 0; userinfo_t *uentp; static time_t last_query; BEGINSTAT(STAT_QUERY); if ((tuid = getuser(uident, &muser))) { move(1, 0); clrtobot(); move(1, 0); setutmpmode(TQUERY); currutmp->destuid = tuid; reload_money(); if ((uentp = (userinfo_t *) search_ulist(tuid))) fri_stat = friend_stat(currutmp, uentp); if (strcmp(muser.userid, cuser.userid) == 0) is_self =1; // ------------------------------------------------------------ prints( "《ID暱稱》%s (%s)%*s", muser.userid, muser.nickname, strlen(muser.userid) + strlen(muser.nickname) >= 25 ? 0 : (int)(25 - strlen(muser.userid) - strlen(muser.nickname)), ""); prints( "《經濟狀況》%s", money_level(muser.money)); if (uentp && ((fri_stat & HFM && !uentp->invisible) || is_self)) prints(" ($%d)", muser.money); outc('\n'); // ------------------------------------------------------------ prints("《" STR_LOGINDAYS "》%d " STR_LOGINDAYS_QTY, muser.numlogindays); #ifdef SHOW_LOGINOK if (!(muser.userlevel & PERM_LOGINOK)) outs(" (尚未通過認證)"); else #endif outs(" (同天內只計一次)"); move(vgety(), 40); prints("《有效文章》%d 篇", muser.numposts); #ifdef ASSESS prints(" (退:%d)", muser.badpost); #endif outc('\n'); // ------------------------------------------------------------ prints(ANSI_COLOR(1;33) "《目前動態》%-28.28s" ANSI_RESET, (uentp && isvisible_stat(currutmp, uentp, fri_stat)) ? modestring(uentp, 0) : "不在站上"); if ((uentp && ISNEWMAIL(uentp)) || load_mailalert(muser.userid)) outs("《私人信箱》有新進信件還沒看\n"); else outs("《私人信箱》最近無新信件\n"); // ------------------------------------------------------------ if (muser.role & ROLE_HIDE_FROM) { // do nothing } else { prints("《上次上站》%-28.28s《上次故鄉》", PERM_HIDE(&muser) ? "秘密" : Cdate(muser.lastseen ? &muser.lastseen : &muser.lastlogin)); // print out muser.lasthost #ifdef USE_MASKED_FROMHOST if(!HasUserPerm(PERM_SYSOP|PERM_ACCOUNTS)) obfuscate_ipstr(muser.lasthost); #endif // !USE_MASKED_FROMHOST outs(muser.lasthost[0] ? muser.lasthost : "(不詳)"); outs("\n"); } --         ╱     ╱ [個人板] BS2 P_HWBA板         ████◣╱ █████  weifeng板 ╱       ╱  █      ─────────── █████      █████  ╱     熱心 愛心 耐心 服務心      ╱  █  █████  真意 善意 美意 誠意 HWBA █████ █████   ────── ψHWBA -- ※ 發信站: 批踢踢兔(ptt2.cc), 來自: 36.225.121.27 ※ 發信站: 批踢踢實業坊(ptt.cc) ※ 轉錄者: HWBA (36.225.121.27), 11/25/2014 22:31:33 ※ 編輯: HWBA (36.225.121.27), 11/25/2014 22:32:02