DEDECMS中让文章标题栏突破60个字符的方法_dedecms_CMS教程_脚本之家

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

扫一扫手机访问