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

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

admin
2017-11-08 / 0 评论 / 1,328 阅读 / 正在检测是否收录...

让注册的人成为贡献者组

修改文件 \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”或者修改$contents['status'] = 'publish'; // 'waiting';把waiting改成publish即可。

0

评论 (0)

取消