97久久国产亚洲精品超碰热,成人又色又爽的免费网站,色偷偷女人的天堂a,男女高潮喷水在线观看,国内精品一线二线三线区别在哪里

Discuz! 官方交流社區(qū)

標(biāo)題: Discuz x 3.4;版塊規(guī)則支持html代碼修改! [打印本頁(yè)]

作者: allthebest    時(shí)間: 2020-6-20 02:26
標(biāo)題: Discuz x 3.4;版塊規(guī)則支持html代碼修改!
Discuz默認(rèn)版塊規(guī)則里是不支持html編輯的,我們把discuz版塊規(guī)則修改位允許使用 html代碼,方便站長(zhǎng)加入 內(nèi)嵌或者廣告,修改前,務(wù)必做好單個(gè)文件的備份!

推薦最安全的方法:

在發(fā)帖編輯器里,選擇高級(jí)模式,

必須選擇文本模型


這時(shí)候,可以任意添加模式編輯,之后復(fù)制到,論壇--本版塊規(guī)則里面,就完全支持html.

修改source/admincp/admincp_forums.php

查找:

  1. showsetting('forums_edit_basic_description', 'descriptionnew', htmlspecialchars_decode(html2bbcode($forum['description'])), 'textarea');
復(fù)制代碼


替換:

  1. showsetting('forums_edit_basic_description', 'descriptionnew', str_replace('&', '&', $forum['description']), 'textarea');
復(fù)制代碼


查找:

  1. showsetting('forums_edit_basic_rules', 'rulesnew', htmlspecialchars_decode(html2bbcode($forum['rules'])), 'textarea');
復(fù)制代碼


替換:

  1. showsetting('forums_edit_basic_rules', 'rulesnew', str_replace('&', '&', $forum['rules']), 'textarea');
復(fù)制代碼


查找 (這里有兩個(gè)地方都要改)

  1. $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ù)制代碼


替換:

  1. $descriptionnew = addslashes(dstripslashes($_GET['descriptionnew']));
復(fù)制代碼


查找:

  1. $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ù)制代碼


替換:

  1. $rulesnew = addslashes(dstripslashes($_GET['rulesnew']));
復(fù)制代碼


上傳覆蓋

后臺(tái)-工具-刷新緩存
界面-風(fēng)格-更新CSS
作者: czwhehehe    時(shí)間: 2020-6-20 02:37
不錯(cuò)哦教程,看一下明天
作者: 312196920    時(shí)間: 2020-8-23 18:50
試了下,好像不行
作者: allthebest    時(shí)間: 2020-8-23 18:56
312196920 發(fā)表于 2020-8-23 09:50
試了下,好像不行

后臺(tái)-工具-刷新緩存
界面-風(fēng)格-更新CSS

若還不行 就是第三方模版問(wèn)題
作者: 312196920    時(shí)間: 2020-8-23 21:00
allthebest 發(fā)表于 2020-8-23 18:56
后臺(tái)-工具-刷新緩存
界面-風(fēng)格-更新CSS

謝謝分享




歡迎光臨 Discuz! 官方交流社區(qū) (http://r615.cn/) Powered by Discuz! X5.0