回文章列表
作者hpo14.bbs@ntust.org (雨) 看板: itoc
標題Re: [問題]請問怎麼拿掉匿名推文
時間資工清流站 (2009/11/03 Tue 00:48:27)
那就改兩個部份就好

:src/include/global.h
  #ifdef HAVE_ANONYMOUS
    #define FN_RUN_ANONYMOUS "run/anonymous" /* 匿名發表文章記錄 */
-    #define FN_RUN_ANONY     "run/anony_score" /* 匿名推文記錄 051211 guessi */
+    #undef  FN_RUN_ANONY     "run/anony_score" /* .... */
  #endif


:maple/post.c - post_score()
- #ifdef HAVE_ANONYMOUS
+ #ifdef FN_RUN_ANONY
  if (currbattr & BRD_ANONYMOUS)
  {
    userid = uid;
    if (!vget(b_lines, 0, "請輸入您想用的ID,也可直接按[Enter],或是按[r]用真\
名 :", userid, IDLEN, DOECHO))
      userid = STR_ANONYMOUS;
    else if (userid[0] == 'r' && userid[1] == '\0')
      userid = cuser.userid;
    else
      strcat(userid, ".");              /* 自定的話,最後加 '.' */
  }
  else
#endif
--
收回了手 留下的 是自由?是寂寞?
--
>> 台灣科技大學 資工清流站 # ntust.org #
>> From: 123.204.162.156
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻