解决火车头采集发布到DISCUZ后显示html代码的问题,DZ X3.4 发帖自动勾选 html代码
找到文件:/template/default/forum/post_editor_attribute.htm
用编辑器打开,搜索:name=”htmlon” id=”htmlon”
找到:
<input type=”checkbox” name=”htmlon” id=”htmlon” class=”pc” value=”1″ $htmloncheck />
替换为:
<input type=”checkbox” name=”htmlon” id=”htmlon” class=”pc” value=”1″ $htmloncheck checked=”checked” />
保存文件上传到网站替换文件,后台更新缓存即可。
DZ X2 发帖自动勾选 html代码
DZ X2 发帖自动勾选 html代码方法跟上面一样,只是文件不同。
templatedefaultorumpost_editor_option.htm
——————————————————————-
因为用火车头做采集,dz后台默认不之处html代码发布,所以只能更改文件。找了所有post相关的文件,查看了编辑器页面的网页源代码,终于找到了。
要想支持html还需要在dz后台设置用户组支持html还有发布文章的板块支持html。另外还要开启纯文本。在后台编辑器可以设置。