From 1f79863053350f1a7d6cb654ac615123bc3b5133 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 25 Mar 2001 10:57:01 +0000 Subject: - large commit of everything else that has been queued in my backlog: it's not 100% stable yet --- modules/account.module | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/account.module') diff --git a/modules/account.module b/modules/account.module index 9823e1585..980080796 100644 --- a/modules/account.module +++ b/modules/account.module @@ -58,18 +58,18 @@ function account_blocks($id) { return $output; } -function account_stories($id) { - $result = db_query("SELECT * FROM stories WHERE author = $id ORDER BY timestamp DESC"); - while ($story = db_fetch_object($result)) { - $output .= "
  • id\">$story->subject
  • \n"; +function account_nodes($id) { + $result = db_query("SELECT * FROM nodes WHERE author = $id ORDER BY timestamp DESC"); + while ($node = db_fetch_object($result)) { + $output .= "
  • nid\">$node->title ($node->type)
  • \n"; } return $output; } function account_comments($id) { - $result = db_query("SELECT * FROM comments WHERE link = 'story' AND author = '$id' ORDER BY timestamp DESC"); + $result = db_query("SELECT * FROM comments WHERE author = '$id' ORDER BY timestamp DESC"); while ($comment = db_fetch_object($result)) { - $output .= "
  • lid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">$comment->subject
  • \n"; + $output .= "
  • lid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">$comment->subject
  • \n"; } return $output; } @@ -153,7 +153,7 @@ function account_view($name) { $output .= " Theme:". check_output($account->theme) ."\n"; $output .= " Timezone:". check_output($account->timezone / 3600) ."\n"; $output .= " Selected blocks:". check_output(account_blocks($account->id)) ."\n"; - $output .= " Submitted stories:". check_output(account_stories($account->id)) ."\n"; + $output .= " Submitted nodes:". check_output(account_nodes($account->id)) ."\n"; $output .= " Submitted comments:". check_output(account_comments($account->id)) ."\n"; $output .= " userid\">\n"; $output .= "\n"; -- cgit v1.2.3