• 分享
  • 举报
  • 2020-6-16 12:32 发布     
  • 浏览 2237 次
  • 下载 0 次
Discuz X3.4版块规则支持html代码修改

Discuz X3.4版块规则支持html代码修改

8.9
  • 大小: 19.25 KB
    价格: 10 银子
    更新时间: 2020-06-16
加入VIP

软件简介

Discuz默认版块规则里是不支持html编辑的,我们把discuz版块规则修改位允许使用 html代码,方便站长加入 内嵌或者广告,修改前,务必做好单个文件的备份!这里511遇见网站给出详细实用的步骤:
推荐最安全的方法:
在发帖编辑器里,选择高级模式,
必须选择文本模型
这时候,可以任意添加模式编辑,之后复制到,论坛--本版块规则里面,就完全支持html.
修改source/admincp/admincp_forums.php

查找:
showsetting('forums_edit_basic_description', 'descriptionnew', htmlspecialchars_decode(html2bbcode($forum['description'])), 'textarea');替换:
showsetting('forums_edit_basic_description', 'descriptionnew', str_replace('&', '&', $forum['description']), 'textarea');查找:
showsetting('forums_edit_basic_rules', 'rulesnew', htmlspecialchars_decode(html2bbcode($forum['rules'])), 'textarea');替换:
showsetting('forums_edit_basic_rules', 'rulesnew', str_replace('&', '&', $forum['rules']), 'textarea');查找 (这里有两个地方都要改)
$descriptionnew = preg_replace('/on(mousewheel|mouseover|click|load|onload|submit|focus|blur)="[^"]*"/i', '', discuzcode($_GET['descriptionnew'], 1, 0, 0, 0, 1, 1, 0, 0, 1));替换:
$descriptionnew = addslashes(dstripslashes($_GET['descriptionnew']));查找:
$rulesnew = preg_replace('/on(mousewheel|mouseover|click|load|onload|submit|focus|blur)="[^"]*"/i', '', discuzcode($_GET['rulesnew'], 1, 0, 0, 0, 1, 1, 0, 0, 1));替换:
$rulesnew = addslashes(dstripslashes($_GET['rulesnew']));上传覆盖

简介下方广告位
软件截图
精品文档下载排行
名称 趋势 下载量
精品文档最新收录
名称 趋势 浏览量
联系客服 关注微信 下载APP 返回顶部