muban大师 发表于 2015-6-29 10:34:57

discuz教程:增加文章摘要的字数并支持提交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行
页: [1]
查看完整版本: discuz教程:增加文章摘要的字数并支持提交html代码