标题:
[Discuz!]
增加文章摘要的字数并支持提交html代码
[打印本页]
作者:
佟贺
时间:
2014-11-19 13:22
标题:
增加文章摘要的字数并支持提交html代码
文章的摘要内容,这个是存放在pre_portal_article_title表中的summary 项中的,如果想修改摘要字数,需要修改summary的数据结构varchar(255)为text或者mediumtext,默认摘要只能是记录127个汉字。
如果想在摘要中插入html代码,需要修改source\include\portalcp下的portalcp_article.php这个程序文件
$summary = portalcp_get_summary($_POST['summary']);$summary = censor($summary);
复制代码
为
$summary = $_POST['summary'];
复制代码
在dzx3.2中是在程序的63-64行
欢迎光临 帮助中心_DZ动力 (http://www.verydz.com/help/)
Powered by Discuz! 7.2