Three steps:
1. Modify the template JS verification file: template \ Default \ portal \ portalcp_article.htm (or your template folder)
302-309 rows
If(Title ){
VaRSlen = strlen (title. value );
If(Slen <1 | slen> 80 ){
Alert ("{Lang article_validate_title }");
Title. Focus ();
Return False;
}
}
Change
If(Title ){
VaRSlen = strlen (title. value );
If(Slen <1 | slen> 255 ){
Alert ("{Lang article_validate_title }");
Title. Focus ();
Return False;
}
}
Ii. ModificationProgramTruncated file: Source \ include \ portalcp \ portalcp_article.php
45-48 rows
$ _ Post['Title'] = getstr (Trim($ _ Post['Title']), 80, 1, 1 );
If(Strlen($ _ Post['Title']) <1 ){
Showmessage ('title _ not_too_little ');
}
Change
$ _ Post['Title'] = getstr (Trim($ _ Post['Title']), 255, 1, 1 );
If(Strlen($ _ Post['Title']) <1 ){
Showmessage ('title _ not_too_little ');
}
3. Modify the Language Pack prompt file: Source \ language \ portal \ lang_template.php
69 rows
'Article _ validate_title '=>' title length (1 ~ 80 characters) does not meet the requirements ',
Change
'Article _ validate_title '=>' title length (1 ~ 255 characters) does not meet the requirements ',
If the test fails, you must modify the following:Http://www.cnblogs.com/likebeta/archive/2011/11/14/2248966.html