在其上面添加
$preRow[title]=cn_substr($preRow[title],III0);
找到
$this->PreNext[next]="下I.篇:{$nextRow[title]}";
在其上面添加
$nextRow[title]=cn_substr($n" />

"景先生毕设|www.jxszl.com

织梦教程:修改上一篇下一篇文字字数的方法

2022-10-29 16:40编辑: www.jxszl.com景先生毕设
打开/include/arc.archives.class.php文件
找到
$this->PreNext[pre]="上I.篇:{$preRow[title]}";
在其上面添加
$preRow[title]=cn_substr($preRow[title],III

 更多精彩就在: 51免费论文网|www.jxszl.com 
0);
找到
$this->PreNext[next]="下I.篇:{$nextRow[title]}";
在其上面添加
$nextRow[title]=cn_substr($nextRow[title],III0);
解析:只需修改后来添加代码中的III0即可,III0的意思就是III0个字节,GBK的话是I.V个汉字,UTFVIII的话是I.0个汉字.这个可以根据实际情况,自行设定.

原文链接:http://www.jxszl.com/biancheng/dedecms/76227.html