来源: QQ爹
首先,让注册的人成为贡献者组
修改文件 \var\Widget\Register.php
第68
行:
$dataStruct = array(
'name' => $this->request->name,
'mail' => $this->request->mail,
'screenName'=> $this->request->name,
'password' => $hasher->HashPassword($generatedPassword),
'created' => $this->options->gmtTime,
'group' => 'subscriber'
);
这个数组里面有个'group'
应该就是了,将'subscriber'
改成'contributor'
就行了。
让 “贡献者” 发帖直接通过无需审核
方法参考:http://forum.typecho.org/viewtopic.php?f=4&t=7771
修改 var/Widget/Contents/Post/Edit.php
的第 222
和 299
行(开发板在 223
和 230
行)
将“editor”
为“contributor”
即可。
Comments | NOTHING