- 主题:wforum怎么让板面列表显示板面关键字?
好象很多论坛都有
但我没找到这种选项?
我的都只显示标题 :(
boards属性中
ZAPPED
UNREAD
这些变量都是在哪儿定义的啊
没有板面描述一项?
bbs_getboards是在哪儿定义实现的?@@
--
修改:askthesky FROM 220.181.38.244
FROM 220.181.38.244
还有
现在所有板面列表/定制区 的板面显示较简单
而分区的较详细
有没有配置可以指定它们能否统一?
还是需要自己改代码?
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: 好象很多论坛都有
: 但我没找到这种选项?
: 我的都只显示标题 :(
: ...................
--
FROM 220.181.38.244
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);
}
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: 好象很多论坛都有
: 但我没找到这种选项?
: 我的都只显示标题 :(
: ...................
--
修改:askthesky FROM 220.181.38.244
FROM 220.181.38.244
自己遍历了一下..
NAME
DESC
CLASS
BM
ARTCNT
UNREAD
ZAPPED
BID
POSITION
FLAG
NPOS
CURRENTUSERS
LASTPOST
的确没有这项!555
大家解决过这个问题没有?
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: bbs_getboards 在 libexec/libphpbbslib.so
: kbsbbs-2.0dev/bbs2www/phplib/phpbbs.board.c
: 寒
: ...................
--
修改:askthesky FROM 220.181.38.244
FROM 220.181.38.244
想自己写代码实现这个功能,找不到板面关键字存在哪儿 :(
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: 好象很多论坛都有
: 但我没找到这种选项?
: 我的都只显示标题 :(
: ...................
--
修改:askthesky FROM 220.181.38.244
FROM 220.181.38.244
表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
: 寒
: ...................
--
FROM 220.181.38.244
加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);
: }
--
FROM 128.12.150.*
:) 我已经找到了
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);
--
修改:askthesky FROM 220.181.38.244
FROM 220.181.38.244
killall miscd
之后再启
还是不好使
我写的叫 TAGS
但boards["TAGS"]还是空的..:(
决定改一下传到 LASTPOST 里试试...还是不好使
怎么生效啊?
多谢阿卡的技术支持....
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: :) 我已经找到了
: wforum还是很爽地~
: 不过是不是得踢掉所有用户重启miscd阿...
: ...................
--
修改:askthesky FROM 220.181.38.244
FROM 220.181.38.244
重启了机器
还是不生效....
app继续帮帮忙吧.......如鲠在喉ing :(
【 在 askthesky (人生何处不相逢) 的大作中提到: 】
: killall miscd
: 之后再启
: 还是不好使
: ...................
--
FROM 220.181.38.244