- 積分
- 706
- 金幣
- 154 個(gè)
- 社區(qū)幣
- 34 元
自成一派
- 貢獻(xiàn)
- 4 點(diǎn)
- 金幣
- 154 個(gè)
|
大家好
目前板塊簡(jiǎn)介和規(guī)則是不支持 html 語(yǔ)法
有些站長(zhǎng)想讓板塊簡(jiǎn)介和規(guī)則支持 html 語(yǔ)法
問(wèn)題雖然很多,教程解決辦法更多,唯一缺少的就是動(dòng)力,我的動(dòng)力很簡(jiǎn)單,把您手上免費(fèi)的評(píng)分奉上,我的動(dòng)力就杠杠的!
提供簡(jiǎn)體中文方便內(nèi)地的站長(zhǎng)閱讀^^
QQ截圖20190815165523.png (616.42 KB, 下載次數(shù): 82)
下載附件
2019-8-15 17:43 上傳
詳細(xì)視頻請(qǐng)打開: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');
復(fù)制代碼
替換為
- showsetting('forums_edit_basic_description', 'descriptionnew', htmlspecialchars_decode($forum['description']), 'textarea');
復(fù)制代碼
再查找
- showsetting('forums_edit_basic_rules', 'rulesnew', htmlspecialchars_decode(html2bbcode($forum['rules'])), 'textarea');
復(fù)制代碼
替換為
- showsetting('forums_edit_basic_rules', 'rulesnew', htmlspecialchars_decode($forum['rules']), 'textarea');
復(fù)制代碼
再查找
- $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));
復(fù)制代碼
一共有兩處相同的代碼
替換為
- $descriptionnew = addslashes(dstripslashes($_GET['descriptionnew']));
復(fù)制代碼
再查找
- $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));
復(fù)制代碼
替換為
- $rulesnew = addslashes(dstripslashes($_GET['rulesnew']));
復(fù)制代碼
修改前請(qǐng)先備份
修改后記得更新緩存
修改前
板塊規(guī)則部分
修改后
板塊規(guī)則部分
修改前
板塊簡(jiǎn)介部分
修改后
板塊簡(jiǎn)介部分
檔您要添加 html 為法時(shí)
要將有這些 " " 符號(hào)去掉不然會(huì)沒(méi)有效果
如- <font color="ff0000">大家好</font>
復(fù)制代碼
替換為
- <font color=ff0000>大家好</font>
復(fù)制代碼
視頻代碼
- <embed src=視頻路徑 width=360 height=600></embed>
復(fù)制代碼
|
|