Home  >  Article  >  CMS Tutorial  >  How to make the article title bar exceed 60 characters in DEDECMS

How to make the article title bar exceed 60 characters in DEDECMS

藏色散人
藏色散人Original
2019-12-26 10:11:032492browse

How to make the article title bar exceed 60 characters in DEDECMS

How to make the article title bar exceed 60 characters in DEDECMS?

1. Use PHPMYADMIN to modify the MYSQL data structure

CODE: ALTER TABLE `dede_archives` CHANGE `title` `title` VARCHAR( 250 ) [Copy to clipboard]

2. Open /dede/action_article_save.php

Find the 39th line of CODE: $title = cn_substr($title,60); [Copy to clipboard]

Change to CODE: $title = cn_substr($title,250) [Copy to clipboard] ;

3. Open /dede/action_archives_edit_save.php

Find 32 lines of CODE: $title = cn_substr($title,60) ; [Copy to clipboard]

Change to CODE: $title = cn_substr($title,250) [Copy to clipboard] ;

OK, so your article title supports 125 Chinese characters Got it!

Recommended study: 梦Weavingcms

The above is the detailed content of How to make the article title bar exceed 60 characters in DEDECMS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn