我們經常會碰到織夢的文章摘要中出現亂碼文章,其實這個問題就在于字符串的截取上,依照如下幾步即可解決問題.
1.先進入數據庫修改表:dede_archives 字段 description varchar(600);
2.進入織夢后臺,找到,系統-->系統基本參數--> 其它選項,自動摘要長度(0-250,0表示不啟用):600.
3.測試,如果有問題需要分別修改.
①修改措施文件:
- dede
- /archives_add.php
- /archives_edit.php
- /article_add.php
- /article_edit.php
查找以下代碼:
- $title= cn_substrR($title,$cfg_title_maxlen);
- $shorttitle= cn_substrR($shorttitle,36);//大略標題字符數
- $color = cn_substrR($color,7);
- $writer= cn_substrR($writer,20);//作者字符數
- $source= cn_substrR($source,30);//文章來歷字符數
- $description= cn_substrR($description,250);//摘要字符數
- $keywords= trim(cn_substrR($keywords,30));//要害詞字符數
- $filename = trim(cn_substrR($filename,40));//文件名字符數
- if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) //開源軟件:Vevb.com
找到:$description = cn_substrR($description,250);
修改數字為想要顯示的摘要字符數.
新聞熱點
疑難解答