织梦dede:修改上一篇、下一篇文字字数的方法

打开 /include/arc.archives.class.php 文件 找到 $this->PreNext['pre']="上一篇:{$preRow['title']}";   在其上面添加 $preRow['title']=cn_substr($preRow['title'],30);   找到 $this->PreNext['next']="下一篇:{$nextRow['title']}"; 在其上面添加 $nextRow['title']=cn_substr($nextRow['title'],30); 解析:只需修改后来添加代码中的30即可,30的意思就是30个字节,GBK的话是15个汉字,UTF8的话是10个汉字。这个可以根据实际情况,自行设定。