DEDECMS中让文章标题栏突破60个字符的方法

时间:2022-06-01 19:42:33

1、使用PHPMYADMIN 修改 MYSQL数据结构 
CODE: ALTER TABLE `dede_archives` CHANGE `title` `title` VARCHAR( 250 ) [Copy to clipboard] 
2、打开/dede/action_article_save.php 
找到39行 CODE: $title = cn_substr($title,60); [Copy to clipboard] 
修改为 CODE: $title = cn_substr($title,250) [Copy to clipboard] ; 
3、打开/dede/action_archives_edit_save.php 
找到32行 CODE: $title = cn_substr($title,60); [Copy to clipboard] 
修改为 CODE: $title = cn_substr($title,250) [Copy to clipboard] ; 
OK,这样你的文章标题支持125个中文字符了!