Home> CMS Tutorial> DEDECMS> body text

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

藏色散人
Release: 2019-12-26 10:11:03
Original
2467 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!