回文章列表
作者gaod.bbs@bbs.hychen.org (My life is full of love) 看板: installbbs
標題Re: [問題]架完itoc的問題(有關BBS操作部分)
時間星情夜語 (2007/07/17 Tue 20:27:38)
※ 引述《leftcoast.bbs@bbs.yzu.edu.tw (貧打游擊手)》之銘言:
> 我架完itoc後,已經可以正常運作了,
> 不過我想要做以下修正,請問這些設定
> 要開哪個.c或.h檔的哪裡去做修正呢?
> 1 新使用者申請完ID後,要經過站長審核才能進站(也就是強迫離站),
>   而不是原來的「未認證仍可以上站看文章,只是不能發文」
>   這部分我知道可以從站長手動修改成「禁止登入」,不過能否把
>   新使用者的「禁止登入」改成 預設為開啟呢?
src/include/perm.h
#define PERM_DEFAULT    PERM_BASIC
改成
#define PERM_DEFAULT   (PERM_BASIC | PERM_DENYLOGIN)
> 2 原本推文數是採1~9 A~Z,改成1~99
: src/maple/post.c:post_item()
static void
post_item(num, hdr)
  int num;
  HDR *hdr;
{
#ifdef HAVE_SCORE
- static char scorelist[36] =
- {
-   '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
-   'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
-   'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
-   'U', 'V', 'W', 'X', 'Y', 'Z'
- };
  prints("%6d%c%c", (hdr->xmode & POST_BOTTOM) ? -1 : num,
     tag_char(hdr->chrono), post_attr(hdr));
  if (hdr->xmode & POST_SCORE)
  {
    num = hdr->score;
-   prints("\033[1;3%cm%c\033[m ", num >= 0 ? '1' : '2', scorelist[abs(num)]);
+   prints("\033[1;3%cm%02d\033[m", num >= 0 ? '1' : '2', abs(num));
  }
  else
  {
    outs("  ");
  }

: src/maple/post.c:post_score()
  if ((ans - '0') & 0x01)       /* 加分 */
  {
-   if (hdr->score < 35)
+   if (hdr->score <= 99)
      curraddscore = 1;
  }
  else                          /* 扣分 */
  {
-   if (hdr->score > -35)
+   if (hdr->score >= -99)
      curraddscore = -1;
  }

: src/maple/post.c:addscore()
  hdd->xmode |= POST_SCORE;
  if (curraddscore > 0)
  {
-   if (hdd->score < 35)
+   if (hdd->score <= 99)
      hdd->score++;
  }
  else
  {
-   if (hdd->score > -35)
+   if (hdd->score >= -99)
      hdd->score--;
  }
}

> 3 在發表文章時,能夠選擇1~8的類別,像[公告][問題]等,
>   各版版主也可以做這些設定
: src/include/config.h
- #undef  POST_PREFIX
+ #define POST_PREFIX

然後我不知道你各板板主可設定是指讓板主決定是否開放類別

或是板主可自訂類別

兩者改法不同
> 4 在文章最底下的評分,可以改顏色嗎?
>   (是不是在theme.h裡改,是的話要找什麼關鍵字?)
改 src/maple/post.c: post_score()
> 5 文章評分的最後面是日期,可否改成時間
>   像:推 xxxx: xxxxxxxxxxxxx                                  07/17 20:00
改 src/maple/post.c: post_score()

--
 好想要和你一起看月亮
         靠在你肩上  情話慢慢講...

                                  ▁▂▄▅▃▂▁    .        ﹊﹊
                   ﹋ ﹋   ◢◣    .       ●●ˊ

--
※ Origin: 星情夜語 <bbs.hychen.org> 
※ From  : 220-132-59-115.hinet-ip.hinet.net
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻