让注册的人成为贡献者组
修改文件 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
的第 391 和 706 行(开发板未知)
将“editor”
为“contributor”
或者修改$contents['status'] = 'publish'; // 'waiting';
把waiting
改成publish
即可。
Comments | NOTHING