typecho 在评论时默认是没有 @ 评论人的功能,可以用代码加一下。 在 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') ->where('coid = ?', $parent)); @$author = @$arow['author']; $mail = @$arow['mail']; if(@$author && $arow['status'] == "approved"){ if (@$prow['status'] == "waiting"){ echo '(评论审核中))'; } echo '@' . $author . ''; }else{ if
...
继续阅读
(13)