summaryrefslogtreecommitdiff
path: root/account.php
diff options
context:
space:
mode:
authornatrak <>2001-06-04 22:09:16 +0000
committernatrak <>2001-06-04 22:09:16 +0000
commitca908eb724640883ce1cf1de1ce77599a044d54d (patch)
tree02fd3816e5875807cc6d89323b7a625c82b683b8 /account.php
parent949d4d956a7bbabd10b5b865f9d8e5cbc96bb5a1 (diff)
downloadbrdo-ca908eb724640883ce1cf1de1ce77599a044d54d.tar.gz
brdo-ca908eb724640883ce1cf1de1ce77599a044d54d.tar.bz2
- Sorted by n.nid in account_track_comments/nodes() so users can see the
status on what they recently submitted. Will try and make this a little more configurable in the near future.
Diffstat (limited to 'account.php')
-rw-r--r--account.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/account.php b/account.php
index 49f73b864..79e436f07 100644
--- a/account.php
+++ b/account.php
@@ -344,7 +344,7 @@ function account_password($min_length=6) {
function account_track_comments() {
global $theme, $user;
- $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 = '$user->id' GROUP BY n.nid DESC LIMIT 5");
+ $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 = '$user->id' GROUP BY n.nid DESC ORDER BY n.nid DESC LIMIT 5");
while ($node = db_fetch_object($sresult)) {
$output .= "<LI>". format_plural($node->count, "comment", "comments") ." ". t("attached to node") ." `<A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A>`:</LI>\n";
@@ -365,7 +365,7 @@ function account_track_comments() {
function account_track_nodes() {
global $theme, $user;
- $result = db_query("SELECT n.nid, n.type, n.title, n.timestamp, COUNT(c.cid) AS count FROM node n LEFT JOIN comments c ON c.lid = n.nid WHERE n.status = '". node_status("posted") ."' AND n.author = '$user->id' GROUP BY n.nid DESC LIMIT 25");
+ $result = db_query("SELECT n.nid, n.type, n.title, n.timestamp, COUNT(c.cid) AS count FROM node n LEFT JOIN comments c ON c.lid = n.nid WHERE n.status = '". node_status("posted") ."' AND n.author = '$user->id' GROUP BY n.nid DESC ORDER BY n.nid DESC LIMIT 25");
while ($node = db_fetch_object($result)) {
$output .= "<TABLE BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\n";