|
大家好
目前板塊簡介和規則是不支持 html 語法
有些站長想讓板塊簡介和規則支持 html 語法
問題雖然很多,教程解決辦法更多,唯一缺少的就是動力,我的動力很簡單,把您手上免費的評分奉上,我的動力就杠杠的!
提供簡體中文方便內地的站長閱讀^^
QQ截圖20190815165523.png (616.42 KB, 下載次數: 78)
下載附件
2019-8-15 17:43 上傳
詳細視頻請打開: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 為法時
要將有這些 " " 符號去掉不然會沒有效果
如- <font color="ff0000">大家好</font>
復制代碼
替換為
- <font color=ff0000>大家好</font>
復制代碼
視頻代碼
- <embed src=視頻路徑 width=360 height=600></embed>
復制代碼
|
|