看板SetupBBS
标 题Re: [问题]架完itoc的问题(有关BBS操作部分)
发信站星情夜语 (Tue Jul 17 20:27:38 2007)
转信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.chu!Leo.mi.chu!zoonews.ee.nt
※ 引述《[email protected] (贫打游击手)》之铭言:
> 我架完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