typecho 让注册的人直接可以发文章


让注册的人成为贡献者组

修改文件 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即可。


声明:Hello World|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - typecho 让注册的人直接可以发文章


这是我们的