返回信息流转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
好象很多论坛都有
但我没找到这种选项?
我的都只显示标题 :(
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #5541同步于 1 周前
BBSMan_Dev机器人发帖
wforum怎么让板面列表显示板面描述?
askthesky.
1 周前镜像同步21 回复
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
还有
现在所有板面列表/定制区 的板面显示较简单
而分区的较详细
有没有配置可以指定它们能否统一?
还是需要自己改代码?
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: 好象很多论坛都有
: 但我没找到这种选项?
: 我的都只显示标题 :(
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
在 libexec/libphpbbslib.so?
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: 好象很多论坛都有
: 但我没找到这种选项?
: 我的都只显示标题 :(
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
自己遍历了一下..
NAME
DESC
CLASS
BM
ARTCNT
UNREAD
ZAPPED
BID
POSITION
FLAG
NPOS
CURRENTUSERS
LASTPOST
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: bbs_getboards 在 libexec/libphpbbslib.so
: kbsbbs-2.0dev/bbs2www/phplib/phpbbs.board.c
: 寒
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
表3.8 用于关联数组的 API
函数 说明
add_assoc_long(zval *array, char *key, long n); 添加一个长整型元素。
add_assoc_unset(zval *array, char *key); 添加一个 unset 元素。
add_assoc_bool(zval *array, char *key, int b); 添加一个布尔值。
add_assoc_resource(zval *array, char *key, int r); 添加一个资源。
add_assoc_double(zval *array, char *key, double d); 添加一个浮点值。
add_assoc_string(zval *array, char *key, char *str, int duplicate); 添加一个字符串。duplicate 用于表明这个字符串是否要被复制到 Zend 的内部内存。
add_assoc_stringl(zval *array, char *key, char *str, uint length, int duplicate); 添加一个指定长度的字符串。其余跟add_assoc_string () 相同。
add_assoc_zval(zval *array, char *key, zval *value); 添加一个 zval 结构。 这在添加另外一个数组、对象或流等数据时会很有用。
表3.9 用于索引数组的 API 第一部分
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: bbs_getboards 在 libexec/libphpbbslib.so
: kbsbbs-2.0dev/bbs2www/phplib/phpbbs.board.c
: 寒
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
加add_assoc_string(array, "KEYS", (char*)board->des, 1);
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: bbs_getboards 在 libexec/libphpbbslib.so
: kbsbbs-2.0dev/bbs2www/phplib/phpbbs.board.c
: 寒
: keys可在1087行
: static void assign_board(zval * array, const struct boardheader *board, const st
: ruct BoardStatus* bstatus, int num)
: 找到
: {
: add_assoc_long(array, "NUM", num); // kept for back compatible
: add_assoc_long(array, "BID", num);
: add_assoc_string(array, "NAME", (char*)board->filename, 1);
: /*
: * add_assoc_string(array, "OWNER", board->owner, 1);
: */
: add_assoc_string(array, "BM", (char*)board->BM, 1);
: add_assoc_long(array, "FLAG", board->flag);
: add_assoc_string(array, "DESC", (char*)board->title + 13, 1);
: add_assoc_stringl(array, "CLASS", (char*)board->title + 1, 6, 1);
: add_assoc_stringl(array, "SECNUM", (char*)board->title, 1, 1);
: add_assoc_long(array, "LEVEL", board->level);
: add_assoc_long(array, "CURRENTUSERS", bstatus->currentusers);
: add_assoc_long(array, "LASTPOST", bstatus->lastpost);
: add_assoc_long(array, "TOTAL", bstatus->total);
: }
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
:) 我已经找到了
wforum还是很爽地~
不过是不是得踢掉所有用户重启miscd阿...
诶,你们有没有性能数据?
在一般的PC机上同时在线能支持多少人?
Memory: 446828k/458688k available (1312k kernel code, 9296k reserved, 996k data,
128k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After generic, caps: 078bfbff c1d3fbff 00000000 00000000
CPU: Common caps: 078bfbff c1d3fbff 00000000 00000000
CPU: AMD Sempron(tm) Processor 3100+ stepping 00
cpuinfo:
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 12
model name : AMD Sempron(tm) Processor 3100+
stepping : 0
cpu MHz : 1808.415
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush mmx fxsr sse sse2 syscall mmxext 3dnowext 3dnow
bogomips : 3604.48
【 在 atppp (Big Mouse) 的大作中提到: 】
: 加add_assoc_string(array, "KEYS", (char*)board->des, 1);
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH
killall miscd
之后再启
还是不好使
我写的叫 TAGS
但boards["TAGS"]还是空的..:(
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: :) 我已经找到了
: wforum还是很爽地~
: 不过是不是得踢掉所有用户重启miscd阿...
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
重启了机器
还是不生效....
app继续帮帮忙吧.......如鲠在喉ing :(
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: killall miscd
: 之后再启
: 还是不好使
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
我错了
我没有重新make php
但重新make后
make install有段错误:
Installing PEAR environment: /home/bbs/down_packs/php-4.4.7//lib/php/
make[1]: *** [install-pear-packages] 段错误
make: *** [install-pear] Error 2
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: 重启了机器
: 还是不生效....
: app继续帮帮忙吧.......如鲠在喉ing :(
: ...................