caozha-comment is a powerful comment system written in native PHP and does not rely on any framework. Features: easy to use, zero threshold, clean and minimalist interface, and extremely convenient for secondary development. It can automatically adapt to different clients such as computers, tablets and mobile phones.
caozha-comment (native PHP comment system) v1.0.1 update logIt is compatible with MySQL5.6 and below databases. It was tested on MySQL5.5/5.6 and can be imported and used normally. However, in order to obtain higher performance, it is still recommended that you use a higher version of the MySQL database.
caozha-comment installation and use Quick installation
1. PHP version must be 5.0 or above. (Tested on PHP5 and PHP7)
2. Upload all source codes in the directory /Src/ to the server.
3. Import the .sql file in the /Database/ directory into the MYSQL database.
4. Modify the comment configuration file Srccaozha-commentphpconfig.php:
(a) The parameter $mysql_config is to configure your database information.
(b) The parameter $cmt_config is the basic configuration parameter of the comment system. You can set the number of comments per page, verification code, cache, whether review is required, whether to allow pictures to be posted, scrolling automatic loading, blocked words, etc.
(c) The parameter $cmt_faces is configured for the emoticon package. You can just comment out the unnecessary emoticons.
Comment introduction settings:
Reference sample file: Srcindex.php
Open this file and refer to it to add a unique ID to each article or module that needs comment:
The above data-cmtid is the comment identifier ID, and data-catid is the comment identifier classification ID. These two parameters are used to distinguish comments such as articles. Generally, using data-cmtid is enough.
Notice:
1. This is a comment system written in native PHP. If you need a thinkphp version of the comment system, please go to: caozha-tp-comment.
2. This source code does not include the backend. If you need a backend, please refer to: caozha-admin, which contains a complete backend example with comments.