Bloggers need to interact with visitors frequently, and the blogger’s reply is also displayed as a comment in the latest comment. In this way, if the blogger replies to several comments at a time, all his own comments will be displayed in the latest comment, which is not good.

Take my current emlog5.3.1 version as an example:

Open the cache.php file in the include/lib directory (this is a cache function file) and find the following code in it:

Mine is on line 179, as follows

$query = $this->db->query(“SELECT * FROM " . DB_PREFIX . “comment WHERE hide=‘n’ ORDER BY date DESC LIMIT 0, $index_comnum”);

Modify it to:

$query = $this->db->query(“SELECT * FROM " . DB_PREFIX . “comment WHERE hide=‘n’ AND poster!=‘Ajue’ ORDER BY date DESC LIMIT 0, $index_comnum”);

Tip: This is a PHP code that executes a SQL statement. The condition is to detect whether the user name of the comment user is the user name of the blogger. If so, the comment will not be displayed in the latest comments list. (You can also check the poster!=‘Ajue’ in the email address. After all, I reply without email, so I can only check the user name. Of course, don’t pretend to be me)

After finally saving the file, log in to the emlog background to update the cache, and refresh the web page to see the effect.