|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
大家好
目前板块简介和规则是不支持 html 语法
有些站长想让板块简介和规则支持 html 语法
问题虽然很多,教程解决办法更多,唯一缺少的就是动力,我的动力很简单,把您手上免费的评分奉上,我的动力就杠杠的!
提供简体中文方便內地的站长阅读^^
详细视频请打开:https://bbs.admin7.cc/thread-5628-1-1.html
打开
source/admincp/admincp_forums.php 文件
查找- showsetting('forums_edit_basic_description', 'descriptionnew', htmlspecialchars_decode(html2bbcode($forum['description'])), 'textarea');
复制代码 替換为- showsetting('forums_edit_basic_description', 'descriptionnew', htmlspecialchars_decode($forum['description']), 'textarea');
复制代码 再查找- showsetting('forums_edit_basic_rules', 'rulesnew', htmlspecialchars_decode(html2bbcode($forum['rules'])), 'textarea');
复制代码 替換为- showsetting('forums_edit_basic_rules', 'rulesnew', htmlspecialchars_decode($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']));
复制代码 修改前请先备份
修改后记得更新缓存
修改前
板块规则部分

修改后
板块规则部分

修改前
板块简介部分

修改后
板块简介部分

档您要添加 html 为法时
要將有这些 " " 符号去掉不然会沒有效果
如替換为
视频代码
|
|