Phpcms comments do not have character control by default, but sometimes you must add multiple comments to the Character Control and modify the following content:
Go to the phpcms/modules/comment/directory and open the index. php file.
Modify the following function
Public Function post ()
Find the following part of the modification control characters not less than 4. If it is Chinese, you need to add the corresponding function to determine the Chinese Character
(The red font is the modified content, and the blue font is the place where the Language Pack is to be modified .)
$ Content = isset ($ _ post ['content']) & Strlen (trim ($ _ Post ['content'])> 4 ? Trim ($ _ post ['content']): $ this-> _ show_msg (L ( 'Please _ enter_content' ), Http_referer ); $ Direction = isset ($ _ post ['direction']) & intval ($ _ post ['direction'])? Intval ($ _ post ['direction']): ''; $ DATA = array ('userid' => $ userid, modify the Language Pack file again
Phpcms/ages/ZH-CN/comment. Lang. php
$ Lang ['Please _ enter_content '] =' enter a comment with at least five characters. ';