summaryrefslogtreecommitdiff
path: root/modules/tracker/tracker.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-02 09:45:57 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-02 09:45:57 +0000
commit1e4308a939723529b665ac7e0e0356950a0507f7 (patch)
tree335e3af799a8e203e4a502f814868d5778cfa48f /modules/tracker/tracker.module
parent1e8c9d8192d0f8c17c64bcd09f34219f4832b368 (diff)
downloadbrdo-1e4308a939723529b665ac7e0e0356950a0507f7.tar.gz
brdo-1e4308a939723529b665ac7e0e0356950a0507f7.tar.bz2
- made the user information block into two different blocks. One for
login and one for user information. - added link to help in book module (post-patch, see below). - applied various patches: Patch by Greg Tyrelle <greg@tyrelle.net> - tracker module now shows usernames next to comments. Patch by Moshe Weitzman <moshe@wallaware.com> - book module has a more complete help. - added administrative link to export book to html - fixed non book nodes not showing up in trees. Patch by moshe weitzman <weitzman@tejasa.com> - links can be defined in the configuration file.
Diffstat (limited to 'modules/tracker/tracker.module')
-rw-r--r--modules/tracker/tracker.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module
index 5f2a9fcc6..49fceb724 100644
--- a/modules/tracker/tracker.module
+++ b/modules/tracker/tracker.module
@@ -34,12 +34,12 @@ function tracker_comments($id = 0) {
$cresult = db_query("SELECT * FROM comments WHERE timestamp > $period AND uid = '". check_input($id) ."' AND nid = '$node->nid' ORDER BY cid DESC");
}
else {
- $cresult = db_query("SELECT * FROM comments WHERE timestamp > $period AND nid = '$node->nid' ORDER BY cid DESC");
+ $cresult = db_query("SELECT c.*, u.name FROM comments c LEFT JOIN users u ON c.uid = u.uid WHERE c.timestamp > $period AND c.nid = '$node->nid' ORDER BY c.cid DESC");
}
$output .= "<ul>";
while ($comment = db_fetch_object($cresult)) {
- $output .= " <li><a href=\"node.php?id=$node->nid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">". check_output($comment->subject) ."</a> (". t("replies") .": ". comment_num_replies($comment->cid) .") ". (comment_is_new($comment) ? "<span style=\"color: red;\">*</span>" : "") ."</li>\n";
+ $output .= " <li><a href=\"node.php?id=$node->nid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">". check_output($comment->subject) ."</a> by <a href=\"module.php?mod=user&op=view&id=$comment->uid\">". check_output($comment->name) ."</a> (". t("replies") .": ". comment_num_replies($comment->cid) .") ". (comment_is_new($comment) ? "<span style=\"color: red;\">*</span>" : "") ."</li>\n";
}
$output .= " </ul>\n";
}