typecho comment reply ate commenter
Original link: https://zburu.com/posts/20220607 Typecho does not have the function of @ by default when commenting, you can add it with code. In functions.php : /* * 评论回复时@ 评论人*/ function get_comment_at($coid) { $db = Typecho_Db::get(); $prow = $db->fetchRow($db->select(‘parent,status’)->from(‘table.comments’) ->where(‘coid = ?’, $coid)); $mail = “”; $parent = @$prow[‘parent’]; if ($parent != “0”) { $arow = $db->fetchRow($db->select(‘author,status,mail’)->from(‘table.comments’) […]
typecho comment reply ate commenter Read More »