". t("recent comments") .""; } return $links ? $links : array(); } function tracker_comments($id = 0) { global $theme, $user; if ($id) { $sresult = db_query("SELECT n.nid, n.title, COUNT(n.nid) AS count FROM comments c LEFT JOIN node n ON c.lid = n.nid WHERE c.author = '". check_input($id) ."' GROUP BY n.nid DESC ORDER BY n.nid DESC LIMIT 5"); } else { $sresult = db_query("SELECT n.nid, n.title, COUNT(n.nid) AS count FROM comments c LEFT JOIN node n ON c.lid = n.nid GROUP BY n.nid DESC ORDER BY n.nid DESC LIMIT 5"); } while ($node = db_fetch_object($sresult)) { $output .= format_plural($node->count, "comment", "comments") ." ". t("attached to node") ." nid\">". check_output($node->title) .":\n"; if ($id) { $cresult = db_query("SELECT * FROM comments WHERE author = '". check_input($id) ."' AND lid = '$node->nid' ORDER BY cid DESC"); } else { $cresult = db_query("SELECT * FROM comments WHERE lid = '$node->nid' ORDER BY cid DESC"); } $output .= "