标签搜索

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

duxiaohua
2021-06-13 / 1 评论 / 4 阅读 / 正在检测是否收录...

<div class="art_show_bd" style="margin: 0px; padding: 0px; outline: none; color: #333333; font-size: 15px; line-height: 1.8; overflow: hidden; font-family: 'Microsoft YaHei';">
<p style="margin: 0px; padding: 0px; outline: none; overflow: hidden; text-align: justify; word-break: break-all;">让注册的人成为贡献者组</p>
</div>
<div class="art_show_bd" style="margin: 0px; padding: 0px; outline: none; color: #333333; font-size: 15px; line-height: 1.8; overflow: hidden; font-family: 'Microsoft YaHei';">修改文件 varWidgetRegister.php 第 68 行:

        $dataStruct = array(<br style="margin: 0px; padding: 0px; outline: none;" />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'name'&nbsp; &nbsp; &nbsp; =&gt;&nbsp; $this->request->name,
            'mail'      =>  $this-&gt;request-&gt;mail,<br style="margin: 0px; padding: 0px; outline: none;" />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'screenName'=&gt;&nbsp; $this->request->name,
            'password'  =>  $hasher-&gt;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”即可。
 </div>

0

评论 (1)

取消
  1. 头像
    duxiaohua 作者
    Windows 7 · Google Chrome

    aaa

    回复
Free Web Hosting