--- forum.module        2005-04-12 13:56:02.000000000 -0500
+++ /home/cracker/public_html/modules/forum.module      2005-04-24 01:48:41.000000000 -0500
@@ -109,6 +109,18 @@ function forum_admin() {
 }
 
 /**
+ * Implementation of hook_user()
+ */
+function forum_user($op, &$edit, &$user, $category=NULL){
+  switch($op){
+    case 'load':
+      $results = db_fetch_object(db_query('SELECT COUNT(DISTINCT n.nid)+COUNT(DISTINCT c.cid) AS post_count FROM {users} AS u INNER JOIN {node} AS n ON n.uid=u.uid INNER JOIN comments AS c ON c.uid=u.uid WHERE u.uid=%u',$user->uid));
+      $user->post_count = $results->post_count;
+      break;
+  }
+}
+
+/**
  * Implementation of hook_taxonomy().
  */
 function forum_taxonomy($op, $type, $object) {
